emacs-devel
[Top][All Lists]
Advanced

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

Info menu entries' highlighted every 3


From: Stefan Monnier
Subject: Info menu entries' highlighted every 3
Date: Thu, 10 Oct 2002 18:33:51 -0400

What was the reason for the change from highlighting the 5th and 9th
menu entries to highlighting every third entry ?
The question is not really about the change in the distance, but
about the fact that there's no upper-limit any more: we happily
highlight the entry number 45, although I doubt anybody will be able
to use this "visual cue" in any way (especially since the only
command that can use the numbering is Info-nth-menu-item which
is only meaningful when bound to keys 0-9).
Why not only highlight '(3 6 9) ?


        Stefan


revision 1.282
date: 2001/11/07 04:35:20;  author: rms;  state: Exp;  lines: +1 -1
(Info-fontify-node): Highlight every third menu item.
----------------------------
Index: info.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/info.el,v
retrieving revision 1.281
retrieving revision 1.282
diff -u -r1.281 -r1.282
--- info.el     23 Oct 2001 16:24:16 -0000      1.281
+++ info.el     7 Nov 2001 04:35:20 -0000       1.282
@@ -2622,7 +2622,7 @@
            (let ((n 0))
              (while (re-search-forward "^\\* +\\([^:\t\n]*\\):" nil t)
                (setq n (1+ n))
-               (if (memq n '(5 9))     ; visual aids to help with 1-9 keys
+               (if (zerop (% n 3)) ; visual aids to help with 1-9 keys
                    (put-text-property (match-beginning 0)
                                       (1+ (match-beginning 0))
                                       'face 'info-menu-5))





reply via email to

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