all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Subject: Info menu entries' highlighted every 3
Date: Thu, 10 Oct 2002 18:33:51 -0400	[thread overview]
Message-ID: <200210102233.g9AMXqO11906@rum.cs.yale.edu> (raw)
In-Reply-To: 87bs62rq4e.wl@eken.phys.nagoya-u.ac.jp


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	other threads:[~2002-10-10 22:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-30 16:55 x-popup-menu disappears instantly Yoichi NAKAYAMA
2002-10-10 17:52 ` Stefan Monnier
2002-10-10 20:33   ` Yoichi NAKAYAMA
2002-10-10 22:33     ` Stefan Monnier [this message]
2002-10-11 12:44       ` Info menu entries' highlighted every 3 Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210102233.g9AMXqO11906@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.