diff options
| author | Thien-Thi Nguyen | 2008-07-30 20:29:54 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2008-07-30 20:29:54 +0000 |
| commit | 00fade45540b2f21c3bfc040621909da1601cfe5 (patch) | |
| tree | c2af2ef406083d837884d30904aaf36b1498b17c | |
| parent | 88e1d519f02d7a54ec7f00b53dbff255325c3b30 (diff) | |
| download | emacs-00fade45540b2f21c3bfc040621909da1601cfe5.tar.gz emacs-00fade45540b2f21c3bfc040621909da1601cfe5.zip | |
Handle AS_* in Autoconf 2.62's index for `info-lookup-symbol'.
* lisp/info-look.el (autoconf-mode :doc-spec): For
"(autoconf)M4 Macro Index", if the item already
begins with "AS_", don't prefix that string again.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/info-look.el | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3ff09a26e67..8a90db4c6d9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-07-30 Thien-Thi Nguyen <ttn@gnuvola.org> | ||
| 2 | |||
| 3 | * info-look.el (autoconf-mode :doc-spec): For | ||
| 4 | "(autoconf)M4 Macro Index", if the item already | ||
| 5 | begins with "AS_", don't prefix that string again. | ||
| 6 | |||
| 1 | 2008-07-30 Juri Linkov <juri@jurta.org> | 7 | 2008-07-30 Juri Linkov <juri@jurta.org> |
| 2 | 8 | ||
| 3 | * info.el (info, Info-mode): Doc fix. | 9 | * info.el (info, Info-mode): Doc fix. |
diff --git a/lisp/info-look.el b/lisp/info-look.el index e7ac5bd0d54..fc8ff1e578b 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el | |||
| @@ -755,12 +755,15 @@ Return nil if there is nothing appropriate in the buffer near point." | |||
| 755 | ;; M4 Macro Index entries are without "AS_" prefixes, and | 755 | ;; M4 Macro Index entries are without "AS_" prefixes, and |
| 756 | ;; mostly without "m4_" prefixes. "dnl" is an exception, not | 756 | ;; mostly without "m4_" prefixes. "dnl" is an exception, not |
| 757 | ;; wanting any prefix. So AS_ is added back to upper-case | 757 | ;; wanting any prefix. So AS_ is added back to upper-case |
| 758 | ;; names, m4_ to others which don't already an m4_. | 758 | ;; names (if needed), m4_ to others which don't already an m4_. |
| 759 | ("(autoconf)M4 Macro Index" | 759 | ("(autoconf)M4 Macro Index" |
| 760 | (lambda (item) | 760 | (lambda (item) |
| 761 | (let ((case-fold-search nil)) | 761 | (let ((case-fold-search nil)) |
| 762 | (cond ((or (string-equal item "dnl") | 762 | (cond ((or (string-equal item "dnl") |
| 763 | (string-match "^m4_" item)) | 763 | (string-match "^m4_" item) |
| 764 | ;; Autoconf 2.62 index includes some macros | ||
| 765 | ;; (e.g., AS_HELP_STRING), so avoid prefixing. | ||
| 766 | (string-match "^AS_" item)) | ||
| 764 | item) | 767 | item) |
| 765 | ((string-match "^[A-Z0-9_]+$" item) | 768 | ((string-match "^[A-Z0-9_]+$" item) |
| 766 | (concat "AS_" item)) | 769 | (concat "AS_" item)) |