(t 32))
0))
(if (memq base lang-preferred) 8 0)
- (if (string-match "-with-esc$" (symbol-name base))
+ (if (string-match "-with-esc\\'" (symbol-name base))
0 4)
(if (eq (coding-system-type base) 2)
;; For ISO based coding systems, prefer
(if buffer-file-coding-system
(let ((base (coding-system-base buffer-file-coding-system)))
(or (eq base 'undecided)
- (assq buffer-file-coding-system default-coding-system)
(rassq base default-coding-system)
(setq default-coding-system
(append default-coding-system
(and (coding-system-p preferred)
(setq base (coding-system-base preferred))
(coding-system-get preferred 'mime-charset)
- (not (assq preferred default-coding-system))
(not (rassq base default-coding-system))
(setq default-coding-system
(append default-coding-system
(coding-system-category elt)))
(push elt l))))
+ ;; Remove raw-text, emacs-mule and no-conversion unless nothing
+ ;; else is available.
+ (setq codings
+ (or (delq 'raw-text
+ (delq 'emacs-mule
+ (delq 'no-conversion codings)))
+ '(raw-text emacs-mule no-conversion)))
+
(let ((window-configuration (current-window-configuration)))
(save-excursion
;; If some defaults are unsafe, make sure the offending