]> git.eshelyaron.com Git - emacs.git/commitdiff
(easy-mmode-define-navigation): Put `definition-name' properties on the
authorJuri Linkov <juri@jurta.org>
Sun, 4 Dec 2005 02:34:33 +0000 (02:34 +0000)
committerJuri Linkov <juri@jurta.org>
Sun, 4 Dec 2005 02:34:33 +0000 (02:34 +0000)
constructed function names next-sym and prev-sym.

lisp/emacs-lisp/easy-mmode.el

index 710c26e0c6c97aa2dd9e821c5cc951c580c022cb..9d118cd53515b310fd2a19ff2b15a4eb614d007e 100644 (file)
@@ -515,6 +515,7 @@ found, do widen first and then call NARROWFUN with no args after moving."
                    (unless (pos-visible-in-window-p endpt nil t)
                      (recenter '(0))))))
              ,re-narrow-maybe)))
+       (put ',next-sym 'definition-name ',base)
        (defun ,prev-sym (&optional count)
         ,(format "Go to the previous COUNT'th %s" (or name base-name))
         (interactive)
@@ -524,7 +525,8 @@ found, do widen first and then call NARROWFUN with no args after moving."
              ,check-narrow-maybe
              (unless (re-search-backward ,re nil t count)
                (error "No previous %s" ,name))
-             ,re-narrow-maybe))))))
+             ,re-narrow-maybe)))
+       (put ',prev-sym 'definition-name ',base))))
 
 
 (provide 'easy-mmode)