[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1169: 23.0.60; (substitute-command-keys "\\{...}") adds extra newlin

From: Johan Bockgård
Subject: bug#1169: 23.0.60; (substitute-command-keys "\\{...}") adds extra newline
Date: Tue, 29 May 2012 19:44:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> "Drew Adams" <address@hidden> writes:
>> (substitute-command-keys "\\{minibuffer-local-map}") ; or another map
>> The returned string ends in \n\n. It should end in just \n.

> I've now made the change,

This change breaks the highlighting code in `help-make-xrefs' which
assumes that a list of key bindings produced by substitute-command-keys
(in `documentation') ends with an extra blank line:

    (while (re-search-forward "^key +binding\n\\(-+ +\\)-+\n\n"
                              nil t)
      (let ((col (- (match-end 1) (match-beginning 1))))
            (and (not (eobp))
                 ;; Stop at a pair of blank lines.
                 (not (looking-at "\n\\s-*\n")))


   emacs -Q
   C-h m
   C-x o

Note the highlighted "or"s in the last two paragraphs.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]