]> git.eshelyaron.com Git - emacs.git/commitdiff
(load-with-code-conversion, with-category-table): Use with-current-buffer.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 24 Nov 2006 18:43:58 +0000 (18:43 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 24 Nov 2006 18:43:58 +0000 (18:43 +0000)
(after-insert-file-set-coding): Use restore-buffer-modified-p.

lisp/ChangeLog
lisp/international/mule.el

index b3e84443940c709f67cf4d87fd091a76da16e721..1ed2f1bea43af1f0e7026f384fac615099877c41 100644 (file)
@@ -1,10 +1,16 @@
+2006-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * international/mule.el (load-with-code-conversion)
+       (with-category-table): Use with-current-buffer.
+       (after-insert-file-set-coding): Use restore-buffer-modified-p.
+
 2006-11-24  Eli Zaretskii  <eliz@gnu.org>
 
-       * mail/smtpmail.el (smtpmail-send-it): Copy
-       buffer-file-coding-system from the mail buffer.  Possibly add a
-       MIME header for the message encoding.  Bind
-       coding-system-for-write around the call to mail-do-fcc.  Use
-       smtpmail-code-conv-from to encode queued mail messages.
+       * mail/smtpmail.el (smtpmail-send-it):
+       Copy buffer-file-coding-system from the mail buffer.  Possibly add a
+       MIME header for the message encoding.
+       Bind coding-system-for-write around the call to mail-do-fcc.
+       Use smtpmail-code-conv-from to encode queued mail messages.
 
 2006-11-24  Juanma Barranquero  <lekktu@gmail.com>
 
index fe01f0b7e9cba19e1854e05ffa278ccf5053ec0b..468b8678da4cf525d8ba969a90b97512d3fe4d2c 100644 (file)
@@ -71,8 +71,7 @@ Return t if file exists."
          (let ((load-file-name fullname)
                (set-auto-coding-for-load t)
                (inhibit-file-name-operation nil))
-           (save-excursion
-             (set-buffer buffer)
+           (with-current-buffer buffer
              ;; Don't let deactivate-mark remain set.
              (let (deactivate-mark)
                (insert-file-contents fullname))
@@ -1871,7 +1870,7 @@ The optional second arg VISIT non-nil means that we are visiting a file."
                      (set-buffer-multibyte nil))
                  (set-buffer-multibyte nil))
                (setq inserted (- pos-marker (point)))))
-         (set-buffer-modified-p modified-p))))
+         (restore-buffer-modified-p modified-p))))
   inserted)
 
 ;; The coding-spec and eol-type of coding-system returned is decided
@@ -2223,8 +2222,7 @@ Value is what BODY returns."
           (progn
             (set-category-table ,table)
             ,@body)
-        (save-current-buffer
-          (set-buffer ,old-buffer)
+        (with-current-buffer ,old-buffer
           (set-category-table ,old-table))))))
 
 (defun define-translation-hash-table (symbol table)