(change-log-goto-source): Avoid wrong-type-argument
authorMartin Rudalics <rudalics@gmx.at>
Mon, 14 Jul 2008 08:15:59 +0000 (08:15 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 14 Jul 2008 08:15:59 +0000 (08:15 +0000)
error when change-log-search-file-name returns nil.

lisp/ChangeLog
lisp/add-log.el

index e7c29b9..7662635 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-14  Martin Rudalics  <rudalics@gmx.at>
+
+       * 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  <rudalics@gmx.at>
 
        * add-log.el (change-log-search-file-name): Use match-string-no-properties.
index 19a537f..85293b2 100644 (file)
@@ -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) "\\_>")