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: Re: Invisible colons in Emacs Info. Date: Mon, 07 Jul 2003 10:47:54 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200307071447.h67ElsGB015781@rum.cs.yale.edu> References: <200307062243.h66MhY609551@f7.net> <200307062258.h66MwJo07540@raven.dms.auburn.edu> <200307062307.h66N7Cen013533@rum.cs.yale.edu> <200307062342.h66Ngvs08232@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057601373 8940 80.91.224.249 (7 Jul 2003 18:09:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 7 Jul 2003 18:09:33 +0000 (UTC) Cc: karl@freefriends.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jul 07 20:09:30 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ZaQc-0002Jp-00 for ; Mon, 07 Jul 2003 20:09:30 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Zaaa-0000E5-00 for ; Mon, 07 Jul 2003 20:19:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZaEH-0002I1-PG for emacs-devel@quimby.gnus.org; Mon, 07 Jul 2003 13:56:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19ZZqr-0005Is-Si for emacs-devel@gnu.org; Mon, 07 Jul 2003 13:32:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ZZaC-0001qo-CW for emacs-devel@gnu.org; Mon, 07 Jul 2003 13:15:21 -0400 Original-Received: from gnuftp.gnu.org ([199.232.41.6]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZXj8-00038z-CQ for emacs-devel@gnu.org; Mon, 07 Jul 2003 11:16:26 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by gnuftp.gnu.org with esmtp (Exim 4.20) id 19ZXNf-0005Ku-Lq for emacs-devel@gnu.org; Mon, 07 Jul 2003 10:54:15 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h67ElsHl015783; Mon, 7 Jul 2003 10:47:54 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h67ElsGB015781; Mon, 7 Jul 2003 10:47:54 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Luc Teirlinck Original-cc: monnier+gnu/emacs@cs.yale.edu Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15461 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15461 > So, in other words, the importance of putting a space after the first > Mtools is really to make clear that this is where the real subtopic > name ends. The reason why Karl and me would like to insist on the > space after the final colon is not: "Because we tell so!", but to make > clear that the final colon is really the final colon and to avoid > confusion in cases like this one. I don't know what makes you think that this hasn't been clear, but just in case: yes we all agree about that (including the regexp, AFAIK). > Actually, let us take a look at the actual menu entry which does have > the space we want: > > * Mtools: (mtools). Mtools: utilities to access DOS disks in Unix. > > I do not know whether you have this entry and hence can check the > following: > > Put the cursor on that line and do `m'. > > Look at the echo area: Nitpick: this is not the echo area but the minibuffer. The reason why I'm nitpicking here is because you also referred to the echo area in the other email and I thought you were referring the help-echo property (which is the only thing appearing in the echo area). > Menu item (default Mtools: (mtools). Mtools): It looks like a bug due to the fact that this part of the code had its own idea of what is a valid menu entry name. The bug was introduced several months ago along with the patch that allowed `:' in menu entries. See patch below. Stefan --- info.el.~1.364.~ Sun Jul 6 13:01:11 2003 +++ info.el Mon Jul 7 10:44:54 2003 @@ -1652,7 +1652,9 @@ (save-excursion (goto-char p) (end-of-line) - (if (re-search-backward "\n\\* +\\([^\t\n]*\\):" beg t) + (if (re-search-backward (concat "\n\\* +\\(" + Info-menu-entry-name-re + "\\):") beg t) (setq default (match-string-no-properties 1)))))) (let ((item nil)) (while (null item)