diff options
| author | Stefan Monnier | 2015-04-02 09:59:47 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-04-02 09:59:47 -0400 |
| commit | 5e41a51e5cc45ca7289fc120f26ad90f45eb2682 (patch) | |
| tree | ba73d8ef7ef260cb1806a87fe46d4ecfdfa4b069 | |
| parent | 23bb07e05de2266d02f2f47e2de99e5c96e995f9 (diff) | |
| download | emacs-5e41a51e5cc45ca7289fc120f26ad90f45eb2682.tar.gz emacs-5e41a51e5cc45ca7289fc120f26ad90f45eb2682.zip | |
* lisp/emacs-lisp/lisp-mnt.el (lm-version): Don't burp in a non-file buffer.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mnt.el | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2092447fbcc..96732ec37ef 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,9 +1,13 @@ | |||
| 1 | 2015-04-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/lisp-mnt.el (lm-version): Don't burp in a non-file buffer. | ||
| 4 | |||
| 1 | 2015-04-01 Alan Mackenzie <acm@muc.de> | 5 | 2015-04-01 Alan Mackenzie <acm@muc.de> |
| 2 | 6 | ||
| 3 | Fix the CC Mode fixes from 2015-03-30. Fixes debbugs#20240. | 7 | Fix the CC Mode fixes from 2015-03-30. Fixes debbugs#20240. |
| 4 | 8 | ||
| 5 | * progmodes/cc-mode.el (c-extend-after-change-region): Widen | 9 | * progmodes/cc-mode.el (c-extend-after-change-region): |
| 6 | before applying text properties. | 10 | Widen before applying text properties. |
| 7 | * progmodes/cc-langs.el (c-before-font-lock-functions): Update an | 11 | * progmodes/cc-langs.el (c-before-font-lock-functions): Update an |
| 8 | entry to a new function name. | 12 | entry to a new function name. |
| 9 | 13 | ||
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." | |||
| 436 | ;; Look for an SCCS header | 436 | ;; Look for an SCCS header |
| 437 | ((re-search-forward | 437 | ((re-search-forward |
| 438 | (concat | 438 | (concat |
| 439 | (regexp-quote "@(#)") | 439 | "@(#)" |
| 440 | (regexp-quote (file-name-nondirectory (buffer-file-name))) | 440 | (if buffer-file-name |
| 441 | (regexp-quote (file-name-nondirectory buffer-file-name)) | ||
| 442 | "[^\t\n]*") | ||
| 441 | "\t\\([012345679.]*\\)") | 443 | "\t\\([012345679.]*\\)") |
| 442 | header-max t) | 444 | header-max t) |
| 443 | (match-string-no-properties 1))))))) | 445 | (match-string-no-properties 1))))))) |