From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.bugs Subject: Re: [agj@alum.mit.edu: Re: ":" in Scheme names.] Date: 24 Jan 2003 20:03:06 -0500 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1043456713 31682 80.91.224.249 (25 Jan 2003 01:05:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 25 Jan 2003 01:05:13 +0000 (UTC) Cc: bug-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18cEkx-0008Es-00 for ; Sat, 25 Jan 2003 02:05:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18cEm2-0004wi-08 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 24 Jan 2003 20:06:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18cElm-0004YZ-00 for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2003 20:06:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18cEl4-0003a0-00 for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2003 20:05:32 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18cEl3-0003ZW-00 for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2003 20:05:17 -0500 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.10) id 18cEl3-0006Uc-00 for bug-emacs@gnu.org; Fri, 24 Jan 2003 20:05:17 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18cEjS-0002lU-00 for bug-emacs@gnu.org; Fri, 24 Jan 2003 20:03:39 -0500 Original-Received: from colo.agora-net.com ([207.245.84.69]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18cEj4-0002fJ-00 for bug-emacs@gnu.org; Fri, 24 Jan 2003 20:03:14 -0500 Original-Received: from ttn by colo.agora-net.com with local (Exim 3.34 #1) id 18cEiw-0005MT-00; Fri, 24 Jan 2003 20:03:06 -0500 Original-To: Aubrey Jaffer In-Reply-To: Aubrey Jaffer's message of "Tue, 21 Jan 2003 00:59:40 -0500 (EST)" Original-Lines: 65 X-Mailer: Gnus v5.7/Emacs 20.7 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4302 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4302 there are some deeper changes necessary to properly encode the ":"-in-menu-item cases, which i am looking into. for now, i have just committed the patch below, which fixes "m" handling for slib.info.gz test case: ; type ; expect i RET buffer changes to show index C-s array-indexes RET point moves to match m RET buffer changes to show array mapping funcs l back to index C-s batch: RET point moves to match m RET buffer changes to show batch funcs there are still bugs in areas: completion for index, TAB command, font locking. i will get to them shortly. thi __________________________________________________ cd /home/ttn/build/GNU/emacs/lisp/ cvs diff -w -c -b info.el Index: info.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/info.el,v retrieving revision 1.331 diff -w -c -b -r1.331 info.el *** info.el 22 Jan 2003 20:35:23 -0000 1.331 --- info.el 25 Jan 2003 00:33:45 -0000 *************** *** 27,32 **** --- 27,36 ---- ;;; Commentary: ;; Note that nowadays we expect info files to be made using makeinfo. + ;; In particular we make these assumptions: + ;; - a menu item MAY contain colons but not colon-space ": " + ;; - a menu item ending with ": " (but not ":: ") is an index entry + ;; - a node name MAY NOT contain a colon ;;; Code: *************** *** 2119,2126 **** --- 2123,2140 ---- ((setq node (Info-get-token (point) "\\*note[ \n]" "\\*note[ \n]\\([^:]*\\):")) (Info-follow-reference node)) + ;; explicit node name ((setq node (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::")) (Info-goto-node node)) + ;; index entry (Another approach is to combine this w/ the following cond + ;; branch "other menu item", but that also requires fixing + ;; Info-extract-menu-node-name -- stay tuned. --ttn) + ((Info-get-token (point) "\\* +" "\\* +\\(.*\\):[ \t]") + (save-excursion + (re-search-forward ":[ \t]") + (setq node (Info-following-node-name "^."))) + (Info-goto-node node)) + ;; other menu item ((Info-get-token (point) "\\* +" "\\* +\\([^:]*\\):") (beginning-of-line) (forward-char 2) Compilation exited abnormally with code 1 at Fri Jan 24 16:32:01