From: Martin Rudalics Date: Mon, 14 Jul 2008 08:15:59 +0000 (+0000) Subject: (change-log-goto-source): Avoid wrong-type-argument X-Git-Tag: emacs-pretest-23.0.90~4202 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=83750bb1cdaadeaea1ac99a3afb17d614eb84ad3;p=emacs.git (change-log-goto-source): Avoid wrong-type-argument error when change-log-search-file-name returns nil. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e7c29b98e7f..76626351a64 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-07-14 Martin Rudalics + + * add-log.el (change-log-goto-source): Avoid wrong-type-argument + error when change-log-search-file-name returns nil. + 2008-07-13 Martin Rudalics * add-log.el (change-log-search-file-name): Use match-string-no-properties. diff --git a/lisp/add-log.el b/lisp/add-log.el index 19a537fc0da..85293b2ec68 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el @@ -500,7 +500,7 @@ comma-separated list." (tag (car tag-at)) (file (when tag-at (change-log-search-file-name (cdr tag-at))))) - (if (not tag) + (if (or (not tag) (not file)) (error "No suitable tag near `point'") (setq change-log-find-head (list tag (concat "\\_<" (regexp-quote tag) "\\_>")