mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-04 11:40:22 +00:00
(command-line): Decode all buffer names by locale-coding-system.
This commit is contained in:
parent
dcd74c5f2c
commit
cea927edc8
@ -953,6 +953,19 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
|
||||
|
||||
(run-hooks 'after-init-hook)
|
||||
|
||||
;; Decode all buffer names.
|
||||
(if (and default-enable-multibyte-characters locale-coding-system)
|
||||
(save-excursion
|
||||
(dolist (elt (buffer-list))
|
||||
(set-buffer elt)
|
||||
(if default-directory
|
||||
(setq default-directory
|
||||
(decode-coding-string default-directory
|
||||
locale-coding-system t))))
|
||||
(setq command-line-default-directory
|
||||
(decode-coding-string command-line-default-directory
|
||||
locale-coding-system t))))
|
||||
|
||||
;; If *scratch* exists and init file didn't change its mode, initialize it.
|
||||
(if (get-buffer "*scratch*")
|
||||
(with-current-buffer "*scratch*"
|
||||
|
Loading…
Reference in New Issue
Block a user