From: Richard Kim Date: Sun, 3 Jul 2011 16:11:37 +0000 (+0200) Subject: * textmodes/texnfo-upd.el (texinfo-insert-menu): Don't insert X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~206^2~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9a51c6c761e8cfae9542bde51186be7c92c10db5;p=emacs.git * textmodes/texnfo-upd.el (texinfo-insert-menu): Don't insert unnecessary spaces. Fixes: debbugs:8987 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 09e0509c802..6949d776821 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-07-03 Richard Kim (tiny change) + + * textmodes/texnfo-upd.el (texinfo-insert-menu): Don't insert + unnecessary spaces (bug#8987). + 2011-07-03 Lars Magne Ingebrigtsen * net/network-stream.el (open-network-stream): Use the diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el index 12a3e2a620b..047bba72ccd 100644 --- a/lisp/textmodes/texnfo-upd.el +++ b/lisp/textmodes/texnfo-upd.el @@ -687,7 +687,7 @@ is the menu entry name, and the cdr of P is the node name." (insert (format "%s: %s." (car node-part) (cdr node-part))))) ;; Insert the description, if present. - (when (cdr menu) + (when (> (length (cdr menu)) 0) ;; Move to right place. (indent-to texinfo-column-for-description 2) ;; Insert description.