emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Warning and iso 8859-1 default?]


From: Eli Zaretskii
Subject: Re: [Warning and iso 8859-1 default?]
Date: Sat, 20 Jul 2019 19:46:02 +0300

> From: Uwe Brauer <address@hidden>
> Cc: Uwe Brauer <address@hidden>, address@hidden
> Date: Sat, 20 Jul 2019 19:17:36 +0300
> 
>    > set-coding-system-priority (but you really should learn to read the
>    > manual, so you could answer these questions yourself).
> 
> This is what I thought but it is not an interactive function. I thought
> I could do it via customize, but I cannot.
> This is the documentation
> ,----
> | 
> | set-coding-system-priority is a built-in function in ‘C source code’.
> | 
> | (set-coding-system-priority &rest coding-systems)
> | 
> | Assign higher priority to the coding systems given as arguments.
> | If multiple coding systems belong to the same category,
> | all but the first one are ignored.
> `----
> 
> And this 
> (set-coding-system-priority (utf-8 iso-2022-7bit iso-latin-1 
> iso-2022-7bit-lock iso-2022-8bit-ss2 emacs-mule raw-text iso-2022-jp 
> in-is13194-devanagari chinese-iso-8bit utf-8-auto utf-8-with-signature))
> 
> (set-coding-system-priority '(utf-8 iso-2022-7bit iso-latin-1
> iso-2022-7bit-lock iso-2022-8bit-ss2 emacs-mule raw-text iso-2022-jp
> in-is13194-devanagari chinese-iso-8bit utf-8-auto utf-8-with-signature))

The docs says

  (set-coding-system-priority &rest coding-systems)

  Assign higher priority to the coding systems given as arguments.
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
So you should call the function with coding-systems, not with a list
of coding-systems:

  (set-coding-system-priority 'utf-8 'iso-2022-7bit 'iso-latin-1 
'iso-2022-7bit-lock 'iso-2022-8bit-ss2 'emacs-mule 'raw-text 'iso-2022-jp 
'in-is13194-devanagari 'chinese-iso-8bit 'utf-8-auto 'utf-8-with-signature)

And be sure to read this part:

  If multiple coding systems belong to the same category,
  all but the first one are ignored.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]