From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: info-look elisp matching Date: Tue, 01 Apr 2003 10:01:24 +1000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87pto7qe5n.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1049155451 20720 80.91.224.249 (1 Apr 2003 00:04:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2003 00:04:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 01 02:04:09 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 1909G5-0005O2-00 for ; Tue, 01 Apr 2003 02:04:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1909GQ-0002aa-00 for ; Tue, 01 Apr 2003 02:04:30 +0200 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 1909Ff-0005E5-03 for emacs-devel@quimby.gnus.org; Mon, 31 Mar 2003 19:03:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1909Ed-0003y3-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 19:02:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1909Dr-0002vG-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 19:01:52 -0500 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1909De-0002d3-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 19:01:38 -0500 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h3101YvO023893 for ; Tue, 1 Apr 2003 10:01:34 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h3101XoJ026794 for ; Tue, 1 Apr 2003 10:01:33 +1000 (EST) Original-Received: from localhost (ppp45.dyn228.pacific.net.au [203.143.228.45]) by wisma.pacific.net.au (8.12.8/8.12.8) with ESMTP id h3101Wqn002938 for ; Tue, 1 Apr 2003 10:01:32 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 1909DR-0003YW-00; Tue, 01 Apr 2003 10:01:25 +1000 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.2 (gnu/linux) 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:12784 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12784 --=-=-= I'd like to propose some matching for the elisp mode support, so lookups will go to an exact position. * info-look.el (emacs-lisp-mode): Add prefix/suffix matching regexps. --=-=-= Content-Disposition: attachment; filename=info-look.el.elisp-match.diff *** info-look.el.~1.30.~ Tue Apr 1 08:55:07 2003 --- info-look.el Tue Apr 1 09:56:52 2003 *************** (info-lookup-maybe-add-help *** 756,764 **** (info-lookup-maybe-add-help :mode 'emacs-lisp-mode :regexp "[^][()'\" \t\n]+" ! :doc-spec '(("(emacs)Command Index") ! ("(emacs)Variable Index") ! ("(elisp)Index"))) (info-lookup-maybe-add-help :mode 'lisp-interaction-mode --- 756,774 ---- (info-lookup-maybe-add-help :mode 'emacs-lisp-mode :regexp "[^][()'\" \t\n]+" ! :doc-spec '(;; Commands with key sequences appear in nodes as `foo' and ! ;; those without as `M-x foo'. ! ("(emacs)Command Index" nil "`\\(M-x[ \t\n]+\\)?" "'") ! ;; Variables normally appear in nodes as just `foo'. ! ("(emacs)Variable Index" nil "`" "'") ! ;; Almost all functions, variables, etc appear in nodes as ! ;; " - Function: foo" etc. A small number of aliases and ! ;; symbols appear only as `foo', and will miss out on exact ! ;; positions. Allowing `foo' would hit too many false matches ! ;; for things that should go to Function: etc, and those latter ! ;; are much more important. Perhaps this could change if some ! ;; sort of fallback match scheme existed. ! ("(elisp)Index" nil "^ - .*: " "\\( \\|$\\)"))) (info-lookup-maybe-add-help :mode 'lisp-interaction-mode --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel --=-=-=--