# HG changeset patch # User Sam Steingold # Date 1085518266 0 # Node ID 6010b740e1d061900a55b3345cafbc063b9f0752 # Parent 73fe3355e195eece2f5976ecce1c71b529137409 (lisp-find-tag-default): Strip the package prefix from the symbol name, if any. Make it the `find-tag-default-function' for `lisp-mode'. diff -r 73fe3355e195 -r 6010b740e1d0 lisp/ChangeLog --- a/lisp/ChangeLog Tue May 25 20:12:00 2004 +0000 +++ b/lisp/ChangeLog Tue May 25 20:51:06 2004 +0000 @@ -1,3 +1,9 @@ +2004-05-25 Sam Steingold + + * emacs-lisp/lisp-mode.el (lisp-find-tag-default): New function: + strip the package prefix from the symbol name, if any. + Make it the `find-tag-default-function' for `lisp-mode'. + 2004-05-25 John Paul Wallington * gs.el (gs-load-image): Use `set-process-query-on-exit-flag' @@ -2515,7 +2521,7 @@ 2004-03-28 Stefan Monnier * vc-hooks.el (vc-file-not-found-hook): Fix typo. - From lorentey@elte.hu (L,Bu(Brentey K,Ba(Broly). + From lorentey@elte.hu (L$,1 q(Brentey K,Aa(Broly). 2004-03-27 Luc Teirlinck diff -r 73fe3355e195 -r 6010b740e1d0 lisp/emacs-lisp/lisp-mode.el --- a/lisp/emacs-lisp/lisp-mode.el Tue May 25 20:12:00 2004 +0000 +++ b/lisp/emacs-lisp/lisp-mode.el Tue May 25 20:51:06 2004 +0000 @@ -355,6 +355,14 @@ (setq imenu-case-fold-search t) (set-syntax-table lisp-mode-syntax-table) (run-mode-hooks 'lisp-mode-hook)) +(put 'lisp-mode 'find-tag-default-function 'lisp-find-tag-default) + +(defun lisp-find-tag-default () + (let ((default (find-tag-default))) + (when (stringp default) + (if (string-match ":+" default) + (substring default (match-end 0)) + default)))) ;; Used in old LispM code. (defalias 'common-lisp-mode 'lisp-mode)