[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: numbers instead of accented letters...
From: |
Jean-Christophe Helary |
Subject: |
Re: numbers instead of accented letters... |
Date: |
Mon, 26 Nov 2018 23:09:48 +0900 |
> On Nov 26, 2018, at 22:20, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>>> If this works without complaint, check the "U" in the mode-line: is it
>>> still there?
>> Everything worked as you said and indeed the U is still there.
>
> And if you now try `emacs -Q ~/.emacs.el` anew, you again see the \NNN
> and the "=" in the modeline?
That's correct.
> Does the file have file-local variables as in
>
> -*- ... -*-
>
> on the first line or
I have the blurb added by Package.el at the top:
; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
> Local Variables:
> ...
> End:
>
> on the last few lines?
And custom-set-faces at the end.
>> So, should I interpret that as Emacs is, for some reason, not using
>> UTF-8 to read the file ?
>
> Yes, the `=` means that Emacs decided that this file should be treated
> as binary data rather than utf-8 text, basically.
>
> Could you also try to search for a 0-byte? E.g. with
>
> C-s C-q 0 C-s C-s
>
> ?
I have one. I created a keyboard macro the other day to have Cmd+A do a (home
made) select all, because I did not know that emacs had a select-all command
already. The macro is:
;;; Select All : Cmd+A (Meta+A)
(fset 'selectAll
(lambda (&optional arg) "Keyboard macro." (interactive "p")
(kmacro-exec-ring-item '("\274^@ \276" 0 "%d") arg)))
(global-set-key (kbd "M-a") 'selectAll)
If I remove that code, the file behaves properly...
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune