* info-look libc constants positioning [patch]
@ 2004-12-27 23:36 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2004-12-27 23:36 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 574 bytes --]
In the glibc manual various constants are given with @table, but
info-look doesn't recognise that when positioning point within the
node it goes to. Eg. in a c-mode buffer,
M-x info-lookup-symbol DBL_MAX Ret
brings up the Floating Point Parameters node, but positioned only at
the top, not where DBL_MAX is described.
2004-12-25 Kevin Ryde <user42@zip.com.au>
* info-look.el (c-mode (libc)Variable Index): Add ^` to prefix, and
change suffix to space, $ or '$, to correctly position point when
going to @table style constants like DBL_MAX.
[-- Attachment #2: info-look.el.libc-constants.diff --]
[-- Type: text/plain, Size: 1263 bytes --]
*** info-look.el.~1.45.~ Thu Dec 23 08:11:50 2004
--- info-look.el Mon Dec 27 07:58:57 2004
***************
*** 634,641 ****
:regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*"
:doc-spec '(("(libc)Function Index" nil
"^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>")
("(libc)Variable Index" nil
! "^[ \t]+-+ \\(Variable\\|Macro\\): .*\\<" "\\>")
("(libc)Type Index" nil
"^[ \t]+-+ Data Type: \\<" "\\>")
("(termcap)Var Index" nil
--- 634,648 ----
:regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*"
:doc-spec '(("(libc)Function Index" nil
"^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>")
+ ;; prefix/suffix has to match things like
+ ;; " -- Macro: int F_DUPFD"
+ ;; " -- Variable: char * tzname [2]"
+ ;; "`DBL_MAX'" (texinfo @table)
+ ;; suffix "\\>" is not used because that sends DBL_MAX to
+ ;; DBL_MAX_EXP ("_" is a non-word char)
("(libc)Variable Index" nil
! "^\\([ \t]+-+ \\(Variable\\|Macro\\): .*\\<\\|`\\)"
! "\\( \\|'?$\\)")
("(libc)Type Index" nil
"^[ \t]+-+ Data Type: \\<" "\\>")
("(termcap)Var Index" nil
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-27 23:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-27 23:36 info-look libc constants positioning [patch] 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).