(add-log-current-defun): Deal with lisp-interaction-mode like lisp-mode.
authorRichard M. Stallman <rms@gnu.org>
Tue, 20 Sep 1994 05:38:59 +0000 (05:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 20 Sep 1994 05:38:59 +0000 (05:38 +0000)
lisp/add-log.el

index 3c570fa..db16929 100644 (file)
@@ -300,7 +300,8 @@ Has a preference of looking backwards."
   (condition-case nil
       (save-excursion
        (let ((location (point)))
-         (cond ((memq major-mode '(emacs-lisp-mode lisp-mode scheme-mode))
+         (cond ((memq major-mode '(emacs-lisp-mode lisp-mode scheme-mode
+                                                   lisp-interaction-mode))
                 ;; If we are now precisely a the beginning of a defun,
                 ;; make sure beginning-of-defun finds that one
                 ;; rather than the previous one.