diff options
| author | Juri Linkov | 2005-12-04 02:34:33 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-12-04 02:34:33 +0000 |
| commit | d5ba8197bb42f638ea34be66954002b1623cb46b (patch) | |
| tree | 09c421c06ef6f8fe8b2cf7ed02213317ccc7b374 | |
| parent | cc793355dc8b8b9c2d75e8554b03c0026f035ed6 (diff) | |
| download | emacs-d5ba8197bb42f638ea34be66954002b1623cb46b.tar.gz emacs-d5ba8197bb42f638ea34be66954002b1623cb46b.zip | |
(easy-mmode-define-navigation): Put `definition-name' properties on the
constructed function names next-sym and prev-sym.
| -rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index 710c26e0c6c..9d118cd5351 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el | |||
| @@ -515,6 +515,7 @@ found, do widen first and then call NARROWFUN with no args after moving." | |||
| 515 | (unless (pos-visible-in-window-p endpt nil t) | 515 | (unless (pos-visible-in-window-p endpt nil t) |
| 516 | (recenter '(0)))))) | 516 | (recenter '(0)))))) |
| 517 | ,re-narrow-maybe))) | 517 | ,re-narrow-maybe))) |
| 518 | (put ',next-sym 'definition-name ',base) | ||
| 518 | (defun ,prev-sym (&optional count) | 519 | (defun ,prev-sym (&optional count) |
| 519 | ,(format "Go to the previous COUNT'th %s" (or name base-name)) | 520 | ,(format "Go to the previous COUNT'th %s" (or name base-name)) |
| 520 | (interactive) | 521 | (interactive) |
| @@ -524,7 +525,8 @@ found, do widen first and then call NARROWFUN with no args after moving." | |||
| 524 | ,check-narrow-maybe | 525 | ,check-narrow-maybe |
| 525 | (unless (re-search-backward ,re nil t count) | 526 | (unless (re-search-backward ,re nil t count) |
| 526 | (error "No previous %s" ,name)) | 527 | (error "No previous %s" ,name)) |
| 527 | ,re-narrow-maybe)))))) | 528 | ,re-narrow-maybe))) |
| 529 | (put ',prev-sym 'definition-name ',base)))) | ||
| 528 | 530 | ||
| 529 | 531 | ||
| 530 | (provide 'easy-mmode) | 532 | (provide 'easy-mmode) |