From 83750bb1cdaadeaea1ac99a3afb17d614eb84ad3 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Mon, 14 Jul 2008 08:15:59 +0000 Subject: [PATCH] (change-log-goto-source): Avoid wrong-type-argument error when change-log-search-file-name returns nil. --- lisp/ChangeLog | 5 +++++ lisp/add-log.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) "\\_>") -- 2.39.2