[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] scratch/gnus-decoded 548c778: Don't add encoding cooki
Re: [Emacs-diffs] scratch/gnus-decoded 548c778: Don't add encoding cookie in Gnus' active files
Wed, 01 May 2019 09:27:06 -0700
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Stefan Monnier <address@hidden> writes:
>> * lisp/gnus/gnus-util.el (gnus-write-active-file): This doesn't do
>> what I thought it would do.
>> - (insert (format ";; -*- encoding: %s; -*-\n\n"
> Not sure what you expect it to do, but the above cookie indeed likely
> doesn't do anything at all. If you change `encoding` to `coding` then
> it should have the effect of telling Emacs which encoding to use when
> reading the file.
Well that's embarrassing! I was wrong on two levels. It was later
pointed out to me (this is in the later discussion on #35383) that the
cookie wouldn't even influence how Emacs read the file in this case, so
there wasn't much point. Right now the code assumes that it will be able
to read files written as 'raw-text using 'utf-8-emacs.