+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>
(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))
(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
(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)