From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Info menu entries' highlighted every 3 Date: Thu, 10 Oct 2002 18:33:51 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200210102233.g9AMXqO11906@rum.cs.yale.edu> References: <87ofaf1kpb.wl@eken.phys.nagoya-u.ac.jp> <200210101752.g9AHqIe09352@rum.cs.yale.edu> <87bs62rq4e.wl@eken.phys.nagoya-u.ac.jp> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034289330 7507 127.0.0.1 (10 Oct 2002 22:35:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2002 22:35:30 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17zltx-0001wk-00 for ; Fri, 11 Oct 2002 00:35:29 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17zmig-0006D6-00 for ; Fri, 11 Oct 2002 01:27:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zlse-0008EN-00; Thu, 10 Oct 2002 18:34:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17zlsS-000890-00 for emacs-devel@gnu.org; Thu, 10 Oct 2002 18:33:56 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17zlsO-00088l-00 for emacs-devel@gnu.org; Thu, 10 Oct 2002 18:33:55 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zlsO-00088b-00 for emacs-devel@gnu.org; Thu, 10 Oct 2002 18:33:52 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g9AMXqO11906; Thu, 10 Oct 2002 18:33:52 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8514 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8514 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))