]> granicus.if.org Git - neomutt/commitdiff
docs: explain binding warnings
authorRichard Russon <rich@flatcap.org>
Wed, 7 Jun 2017 15:14:24 +0000 (16:14 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 7 Jun 2017 22:00:04 +0000 (23:00 +0100)
doc/manual.xml.head

index 46b664ff884fefa67e131e3eca8f7af512801c97..6f2d7413cb311725357245f8fb1aae56724e5c77 100644 (file)
@@ -3671,6 +3671,23 @@ set alias_file=~/.mail_aliases
       brackets.</para>
       <para>The special function
       <literal>&lt;noop&gt;</literal>unbinds the specified key sequence.</para>
+
+      <sect2 id="bind-warnings">
+        <title>Warnings about Duplicated Bindings</title>
+        <para>Due to a limitation of Mutt, creating key bindings, or macros,
+        will overwrite existing mappings with similar, shorter, names.</para>
+        <screen>
+bind index g  group-reply
+bind index gg first-entry</screen>
+        <para>In this example, the <literal>g</literal> binding will be
+        overwritten and cannot be used.  Newer versions of Mutt will warn the
+        user about this.</para>
+        <para>To avoid warnings on startup, first set the shorter binding to
+        <literal>noop</literal> (no operation).</para>
+        <screen>
+bind index g  noop
+bind index gg first-entry</screen>
+      </sect2>
     </sect1>
 
     <sect1 id="charset-hook">