From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Warning and iso 8859-1 default?] Date: Sat, 20 Jul 2019 19:46:02 +0300 Message-ID: <83muh8slh1.fsf@gnu.org> References: <87zhlbtw7z.fsf@mat.ucm.es> <83blxry35u.fsf@gnu.org> <87o91rtulo.fsf@mat.ucm.es> <87sgr38rux.fsf@mouse.gnus.org> <878ssvtu47.fsf@mat.ucm.es> <8336j3y0zf.fsf@gnu.org> <87r26nscwo.fsf@mat.ucm.es> <83r26nwigy.fsf@gnu.org> <87y30sg708.fsf_-_@mat.ucm.es> <8336j0u813.fsf@gnu.org> <87r26kg65m.fsf@mat.ucm.es> <83zhl8ssqd.fsf@gnu.org> <87imrwg5a2.fsf@mat.ucm.es> <83wogcso0c.fsf@gnu.org> <87ef2kfzof.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="193400"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 20 18:46:28 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hosV7-000oBB-3T for ged-emacs-devel@m.gmane.org; Sat, 20 Jul 2019 18:46:25 +0200 Original-Received: from localhost ([::1]:52144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hosV5-0003A9-Ts for ged-emacs-devel@m.gmane.org; Sat, 20 Jul 2019 12:46:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57725) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hosUy-0003A3-7q for emacs-devel@gnu.org; Sat, 20 Jul 2019 12:46:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hosUx-0006o8-TJ; Sat, 20 Jul 2019 12:46:15 -0400 Original-Received: from [176.228.60.248] (port=1311 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hosUx-0005FJ-Cq; Sat, 20 Jul 2019 12:46:15 -0400 In-reply-to: <87ef2kfzof.fsf@mat.ucm.es> (message from Uwe Brauer on Sat, 20 Jul 2019 19:17:36 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238732 Archived-At: > From: Uwe Brauer > Cc: Uwe Brauer , emacs-devel@gnu.org > 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.