diff options
| author | Richard M. Stallman | 2005-01-15 18:16:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-01-15 18:16:44 +0000 |
| commit | d4b6c2e3326c888da19e2be60899a27ef8a16f0a (patch) | |
| tree | d8b4c86a47bd49e8d45095600aa341ce3ef5e6fc | |
| parent | 5a77048aef1ab0dc4a18a02fbf852f4a509e9b93 (diff) | |
| download | emacs-d4b6c2e3326c888da19e2be60899a27ef8a16f0a.tar.gz emacs-d4b6c2e3326c888da19e2be60899a27ef8a16f0a.zip | |
(lm-with-file): Use Lisp mode in temp buffer.
In non-temp buffer, switch syntax table temporarily.
| -rw-r--r-- | lisp/ChangeLog | 27 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mnt.el | 7 |
2 files changed, 33 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ab130e2c09b..1def811c5c5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,30 @@ | |||
| 1 | 2005-01-15 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/lisp-mnt.el (lm-with-file): Use Lisp mode in temp buffer. | ||
| 4 | In non-temp buffer, switch syntax table temporarily. | ||
| 5 | |||
| 6 | * emacs-lisp/lisp-mode.el (indent-pp-sexp): Doc fix. | ||
| 7 | |||
| 8 | * replace.el (occur-accumulate-lines, occur-engine): Avoid warnings. | ||
| 9 | |||
| 10 | * tar-mode.el (tar-extract): Bind buffer-undo-list to t. | ||
| 11 | |||
| 12 | * imenu.el (imenu--split-menu): Copy menulist before sorting. | ||
| 13 | (imenu--generic-function): Use START, not BEG, as pos of definition. | ||
| 14 | |||
| 15 | * simple.el (just-one-space): Argument specifies number of spaces. | ||
| 16 | |||
| 17 | * simple.el (eval-expression-print-format): Avoid warning | ||
| 18 | about edebug-active. | ||
| 19 | |||
| 20 | 2005-01-15 "James R. Van Zandt" <jrvz@comcast.net> (Tiny change) | ||
| 21 | |||
| 22 | * progmodes/sh-script.el: Code copied from make-mode.el | ||
| 23 | with small changes, | ||
| 24 | (sh-mode-map): Bind C-c C-\. | ||
| 25 | (sh-backslash-column, sh-backslash-align): New variables. | ||
| 26 | (sh-backslash-region, sh-append-backslash): New functions. | ||
| 27 | |||
| 1 | 2005-01-15 Sergey Poznyakoff <gray@Mirddin.farlep.net> | 28 | 2005-01-15 Sergey Poznyakoff <gray@Mirddin.farlep.net> |
| 2 | 29 | ||
| 3 | * mail/rmail.el: Updated to work with movemail from GNU Mailutils | 30 | * mail/rmail.el: Updated to work with movemail from GNU Mailutils |
diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el index 671f3c8ce2a..701da1c4dec 100644 --- a/lisp/emacs-lisp/lisp-mnt.el +++ b/lisp/emacs-lisp/lisp-mnt.el | |||
| @@ -304,9 +304,14 @@ If FILE is nil, execute BODY in the current buffer." | |||
| 304 | (if ,filesym | 304 | (if ,filesym |
| 305 | (with-temp-buffer | 305 | (with-temp-buffer |
| 306 | (insert-file-contents ,filesym) | 306 | (insert-file-contents ,filesym) |
| 307 | (lisp-mode) | ||
| 307 | ,@body) | 308 | ,@body) |
| 308 | (save-excursion | 309 | (save-excursion |
| 309 | ,@body))))) | 310 | ;; Switching major modes is too drastic, so just switch |
| 311 | ;; temporarily to the Lisp mode syntax table. | ||
| 312 | (with-syntax-table lisp-mode-syntax-table | ||
| 313 | ,@body)))))) | ||
| 314 | |||
| 310 | (put 'lm-with-file 'lisp-indent-function 1) | 315 | (put 'lm-with-file 'lisp-indent-function 1) |
| 311 | (put 'lm-with-file 'edebug-form-spec t) | 316 | (put 'lm-with-file 'edebug-form-spec t) |
| 312 | 317 | ||