Subject: bug#4816: change of coding system without inquiry

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 27 Jun 2019 19:49:33 +0200

(Bug report about Latin-1 files becoming UTF-8.)

Stefan Monnier <[email-masked]> writes:

> +      (unless (or (local-variable-p 'buffer-file-coding-system)
> +                  (eq coding-system buffer-file-coding-system)
> +                  ;; We'd rather only bother the user if the coding-system
> +                  ;; change would cause the file's content to change, so we'd
> +                  ;; want to check whether the new coding-system is a superset
> +                  ;; of the previous one.
> +                  (memq buffer-file-coding-system '(nil undecided us-ascii))
> +                  (y-or-n-p (format "Change encoding from %s to %s? "
> +                                    buffer-file-coding-system coding-system)))
> +        (setq coding-system nil))

Eli Zaretskii <[email-masked]> writes:

> FWIW, in the past users explicitly expressed annoyance by these
> questions.  The request was to use the "native" encoding silently.  By
> introducing back this question, we are restoring that annoyance.

Perhaps it's time to make a decision now -- to not add a change like this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no