unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* info-look elisp matching
@ 2003-04-01  0:01 Kevin Ryde
  2003-04-02  9:18 ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Ryde @ 2003-04-01  0:01 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

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.


[-- Attachment #2: info-look.el.elisp-match.diff --]
[-- Type: text/plain, Size: 1472 bytes --]

*** 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

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: info-look elisp matching
  2003-04-01  0:01 info-look elisp matching Kevin Ryde
@ 2003-04-02  9:18 ` Richard Stallman
  2003-04-03 21:20   ` Kevin Ryde
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2003-04-02  9:18 UTC (permalink / raw)
  Cc: emacs-devel

    I'd like to propose some matching for the elisp mode support, so
    lookups will go to an exact position.

I don't understand.  Could you explain what change in behavior this
is supposed to result in?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: info-look elisp matching
  2003-04-02  9:18 ` Richard Stallman
@ 2003-04-03 21:20   ` Kevin Ryde
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Ryde @ 2003-04-03 21:20 UTC (permalink / raw)


Richard Stallman <rms@gnu.org> writes:
>
> I don't understand.  Could you explain what change in behavior this
> is supposed to result in?

In an elisp mode buffer, "C-h C-i nth" opens a window with the "List
Elements" node from the elisp manual, but showing the top of that
node.  With the change instead the window position shows the
"Function: nth" part and highlights `nth'.  Similarly commands or
variables from the main emacs manual.

(This is the purpose of the prefix/suffix regexps scheme in info-look,
hence the terse changelog entry.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-03 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-01  0:01 info-look elisp matching Kevin Ryde
2003-04-02  9:18 ` Richard Stallman
2003-04-03 21:20   ` Kevin Ryde

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).