(select-safe-coding-system):
Don't ask for confirmation of mismatch if find-file-literally was used.
This commit is contained in:
parent
49c24f48f2
commit
9e7638c33d
1 changed files with 3 additions and 1 deletions
|
@ -721,7 +721,9 @@ and TO is ignored."
|
|||
(setq coding-system buffer-file-coding-system))
|
||||
;; Check we're not inconsistent with what `coding:' spec &c would
|
||||
;; give when file is re-read.
|
||||
(unless (stringp from)
|
||||
;; But don't do this if we explicitly ignored the cookie
|
||||
;; by using `find-file-literally'.
|
||||
(unless (or (stringp from) find-file-literally)
|
||||
(let ((auto-cs (save-excursion
|
||||
(save-restriction
|
||||
(widen)
|
||||
|
|
Loading…
Add table
Reference in a new issue