mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(basic-save-buffer): Set buffer-file-coding-system to
the coding system actually used for saving.
This commit is contained in:
parent
4bb0b3adac
commit
d6e8ea6f54
1 changed files with 4 additions and 0 deletions
|
|
@ -2181,6 +2181,10 @@ After saving the buffer, run `after-save-hook'."
|
|||
;; If a hook returned t, file is already "written".
|
||||
;; Otherwise, write it the usual way now.
|
||||
(setq setmodes (basic-save-buffer-1)))
|
||||
;; Now we have saved the current buffer. Let's make sure
|
||||
;; that buffer-file-coding-system is fixed to what
|
||||
;; actually used for saving by binding it locally.
|
||||
(setq buffer-file-coding-system last-coding-system-used)
|
||||
(setq buffer-file-number
|
||||
(nthcdr 10 (file-attributes buffer-file-name)))
|
||||
(if setmodes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue