summaryrefslogtreecommitdiff
path: root/lisp/add-log.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-01-11 15:40:41 +0000
committerGerd Moellmann <gerd@gnu.org>2000-01-11 15:40:41 +0000
commitaa705642e7a9754b1f6c954fa4e19da5b54928df (patch)
treed330f8b13967490235537947658dd71790dbbafb /lisp/add-log.el
parent57df2446ea6467f956d0de99fdae0c32fa872a7d (diff)
downloademacs-aa705642e7a9754b1f6c954fa4e19da5b54928df.tar.gz
(add-log-current-defun): Handle user-defined
add-log-current-function returning nil,
Diffstat (limited to 'lisp/add-log.el')
-rw-r--r--lisp/add-log.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el
index bb911904ad6..92ee80a4f70 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -591,8 +591,8 @@ Has a preference of looking backwards."
(condition-case nil
(save-excursion
(let ((location (point)))
- (cond ((functionp add-log-current-defun-function)
- (funcall add-log-current-defun-function))
+ (cond ((and (functionp add-log-current-defun-function)
+ (funcall add-log-current-defun-function)))
((memq major-mode add-log-lisp-like-modes)
;; If we are now precisely at the beginning of a defun,
;; make sure beginning-of-defun finds that one