diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2015-04-02 09:59:47 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2015-04-02 09:59:47 -0400 |
commit | 5e41a51e5cc45ca7289fc120f26ad90f45eb2682 (patch) | |
tree | ba73d8ef7ef260cb1806a87fe46d4ecfdfa4b069 /lisp/emacs-lisp | |
parent | 23bb07e05de2266d02f2f47e2de99e5c96e995f9 (diff) | |
download | emacs-5e41a51e5cc45ca7289fc120f26ad90f45eb2682.tar.gz emacs-5e41a51e5cc45ca7289fc120f26ad90f45eb2682.tar.bz2 emacs-5e41a51e5cc45ca7289fc120f26ad90f45eb2682.zip |
* lisp/emacs-lisp/lisp-mnt.el (lm-version): Don't burp in a non-file buffer.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/lisp-mnt.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el index f9874d83bb3..fec172d05ca 100644 --- a/lisp/emacs-lisp/lisp-mnt.el +++ b/lisp/emacs-lisp/lisp-mnt.el @@ -436,8 +436,10 @@ This can be found in an RCS or SCCS header." ;; Look for an SCCS header ((re-search-forward (concat - (regexp-quote "@(#)") - (regexp-quote (file-name-nondirectory (buffer-file-name))) + "@(#)" + (if buffer-file-name + (regexp-quote (file-name-nondirectory buffer-file-name)) + "[^\t\n]*") "\t\\([012345679.]*\\)") header-max t) (match-string-no-properties 1))))))) |