my-log-mode.el
changeset 570 53f62308c963
parent 569 7d7bb0a92f2a
child 571 012f4c694435
--- a/my-log-mode.el	Wed Feb 09 15:02:41 2011 +0200
+++ b/my-log-mode.el	Wed Feb 09 15:17:21 2011 +0200
@@ -32,10 +32,15 @@
         (setq fline (string-to-int (match-string 2 line)))
         )
       )
-    (when (and fname (file-exists-p fname))
-      (find-file-other-window fname)
-      (goto-line fline)
+    (cond 
+     ( (and fname (file-exists-p fname))
+       (find-file-other-window fname)
+       (goto-line fline)
       )
+     ( t
+       (message "File '%s' is not found (default directory is '%s')." fname default-directory)
+       )
+     )
     ))
 
 (setq my-log-mode-map (make-sparse-keymap))