diff options
| author | Sam Steingold | 2004-05-25 20:51:06 +0000 |
|---|---|---|
| committer | Sam Steingold | 2004-05-25 20:51:06 +0000 |
| commit | 59de4ad0fcace2f33f2fb5101f84bce6ea29aab2 (patch) | |
| tree | e7f91bc02fc9964c09b65a749317375dba13c50f | |
| parent | 1a597f4fffe691a158dabeefa98b5c314f633f94 (diff) | |
| download | emacs-59de4ad0fcace2f33f2fb5101f84bce6ea29aab2.tar.gz emacs-59de4ad0fcace2f33f2fb5101f84bce6ea29aab2.zip | |
(lisp-find-tag-default): Strip the package prefix from the symbol name, if any.
Make it the `find-tag-default-function' for `lisp-mode'.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 8 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b319197bac8..f264c04fca3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2004-05-25 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/lisp-mode.el (lisp-find-tag-default): New function: | ||
| 4 | strip the package prefix from the symbol name, if any. | ||
| 5 | Make it the `find-tag-default-function' for `lisp-mode'. | ||
| 6 | |||
| 1 | 2004-05-25 John Paul Wallington <jpw@gnu.org> | 7 | 2004-05-25 John Paul Wallington <jpw@gnu.org> |
| 2 | 8 | ||
| 3 | * gs.el (gs-load-image): Use `set-process-query-on-exit-flag' | 9 | * gs.el (gs-load-image): Use `set-process-query-on-exit-flag' |
| @@ -2515,7 +2521,7 @@ | |||
| 2515 | 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca> | 2521 | 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2516 | 2522 | ||
| 2517 | * vc-hooks.el (vc-file-not-found-hook): Fix typo. | 2523 | * vc-hooks.el (vc-file-not-found-hook): Fix typo. |
| 2518 | From lorentey@elte.hu (L,Bu(Brentey K,Ba(Broly). | 2524 | From lorentey@elte.hu (L$,1 q(Brentey K,Aa(Broly). |
| 2519 | 2525 | ||
| 2520 | 2004-03-27 Luc Teirlinck <teirllm@auburn.edu> | 2526 | 2004-03-27 Luc Teirlinck <teirllm@auburn.edu> |
| 2521 | 2527 | ||
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 4057fe2968e..fcc6517b747 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -355,6 +355,14 @@ if that value is non-nil." | |||
| 355 | (setq imenu-case-fold-search t) | 355 | (setq imenu-case-fold-search t) |
| 356 | (set-syntax-table lisp-mode-syntax-table) | 356 | (set-syntax-table lisp-mode-syntax-table) |
| 357 | (run-mode-hooks 'lisp-mode-hook)) | 357 | (run-mode-hooks 'lisp-mode-hook)) |
| 358 | (put 'lisp-mode 'find-tag-default-function 'lisp-find-tag-default) | ||
| 359 | |||
| 360 | (defun lisp-find-tag-default () | ||
| 361 | (let ((default (find-tag-default))) | ||
| 362 | (when (stringp default) | ||
| 363 | (if (string-match ":+" default) | ||
| 364 | (substring default (match-end 0)) | ||
| 365 | default)))) | ||
| 358 | 366 | ||
| 359 | ;; Used in old LispM code. | 367 | ;; Used in old LispM code. |
| 360 | (defalias 'common-lisp-mode 'lisp-mode) | 368 | (defalias 'common-lisp-mode 'lisp-mode) |