aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2006-11-24 18:43:58 +0000
committerStefan Monnier2006-11-24 18:43:58 +0000
commit053f45dd627fbbf0735029272cb77e2e1f44ed0b (patch)
tree5f6eb6608a927e634bd80dac0ca31363d6977852
parent7edbb0da2b9f420ebcc5cd53ff4603cb601c6608 (diff)
downloademacs-053f45dd627fbbf0735029272cb77e2e1f44ed0b.tar.gz
emacs-053f45dd627fbbf0735029272cb77e2e1f44ed0b.zip
(load-with-code-conversion, with-category-table): Use with-current-buffer.
(after-insert-file-set-coding): Use restore-buffer-modified-p.
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/international/mule.el8
2 files changed, 14 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b3e84443940..1ed2f1bea43 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,10 +1,16 @@
12006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * international/mule.el (load-with-code-conversion)
4 (with-category-table): Use with-current-buffer.
5 (after-insert-file-set-coding): Use restore-buffer-modified-p.
6
12006-11-24 Eli Zaretskii <eliz@gnu.org> 72006-11-24 Eli Zaretskii <eliz@gnu.org>
2 8
3 * mail/smtpmail.el (smtpmail-send-it): Copy 9 * mail/smtpmail.el (smtpmail-send-it):
4 buffer-file-coding-system from the mail buffer. Possibly add a 10 Copy buffer-file-coding-system from the mail buffer. Possibly add a
5 MIME header for the message encoding. Bind 11 MIME header for the message encoding.
6 coding-system-for-write around the call to mail-do-fcc. Use 12 Bind coding-system-for-write around the call to mail-do-fcc.
7 smtpmail-code-conv-from to encode queued mail messages. 13 Use smtpmail-code-conv-from to encode queued mail messages.
8 14
92006-11-24 Juanma Barranquero <lekktu@gmail.com> 152006-11-24 Juanma Barranquero <lekktu@gmail.com>
10 16
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index fe01f0b7e9c..468b8678da4 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -71,8 +71,7 @@ Return t if file exists."
71 (let ((load-file-name fullname) 71 (let ((load-file-name fullname)
72 (set-auto-coding-for-load t) 72 (set-auto-coding-for-load t)
73 (inhibit-file-name-operation nil)) 73 (inhibit-file-name-operation nil))
74 (save-excursion 74 (with-current-buffer buffer
75 (set-buffer buffer)
76 ;; Don't let deactivate-mark remain set. 75 ;; Don't let deactivate-mark remain set.
77 (let (deactivate-mark) 76 (let (deactivate-mark)
78 (insert-file-contents fullname)) 77 (insert-file-contents fullname))
@@ -1871,7 +1870,7 @@ The optional second arg VISIT non-nil means that we are visiting a file."
1871 (set-buffer-multibyte nil)) 1870 (set-buffer-multibyte nil))
1872 (set-buffer-multibyte nil)) 1871 (set-buffer-multibyte nil))
1873 (setq inserted (- pos-marker (point))))) 1872 (setq inserted (- pos-marker (point)))))
1874 (set-buffer-modified-p modified-p)))) 1873 (restore-buffer-modified-p modified-p))))
1875 inserted) 1874 inserted)
1876 1875
1877;; The coding-spec and eol-type of coding-system returned is decided 1876;; The coding-spec and eol-type of coding-system returned is decided
@@ -2223,8 +2222,7 @@ Value is what BODY returns."
2223 (progn 2222 (progn
2224 (set-category-table ,table) 2223 (set-category-table ,table)
2225 ,@body) 2224 ,@body)
2226 (save-current-buffer 2225 (with-current-buffer ,old-buffer
2227 (set-buffer ,old-buffer)
2228 (set-category-table ,old-table)))))) 2226 (set-category-table ,old-table))))))
2229 2227
2230(defun define-translation-hash-table (symbol table) 2228(defun define-translation-hash-table (symbol table)