From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Proposal: make insert-pair-alist buffer local Date: Thu, 23 Dec 2021 20:15:16 +0200 Message-ID: <83a6grur0r.fsf@gnu.org> References: <86o857e6i1.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32709"; mail-complaints-to="usenet@ciao.gmane.io" Cc: paaguti@gmail.com, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 23 19:16:23 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n0Sda-0008P4-Mq for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Dec 2021 19:16:22 +0100 Original-Received: from localhost ([::1]:37262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0SdZ-0002SP-O2 for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Dec 2021 13:16:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0Scb-0001LE-D1 for emacs-devel@gnu.org; Thu, 23 Dec 2021 13:15:21 -0500 Original-Received: from [2001:470:142:3::e] (port=35536 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0ScZ-0001sc-BI; Thu, 23 Dec 2021 13:15:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7LX93qEr9OggAGTBsetoYdVAMw0qQuagURE9oNLUhOw=; b=K3qeT1gcwWxn hOLyOsYQoBbJTK5mVAjF2kT/DysY5FzidGkyqzragR5DM9izb0Vj2KwV5WRkFlYskoOKjMfucEfnZ bhfNeywVzXJqsJc+/Y+SnQkM0+prv+88+PL5oahIx42tBVKiLMa7X+kfYpoNPKU9hfLLAxbLjctxl jKmozCjnfZiCLyaDhuqcU6V4CbtOtxKtDuLlAWcqWpRsHLdpHQi85hX2gi2ZAnC9UXJyJvP+w1Z0z zGpt0Jf4KFslcZvOGfhVT4ww3G1PRpLMx/neiqcbBuwzcQ3y8Ccjok7854ybpyZfwr7qB4NbI1sCq /UxrvcO7CLxcmASLAxJqEw==; Original-Received: from [87.69.77.57] (port=3696 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0ScQ-0001qc-6f; Thu, 23 Dec 2021 13:15:19 -0500 In-Reply-To: <86o857e6i1.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 23 Dec 2021 19:12:54 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282994 Archived-At: > From: Juri Linkov > Date: Thu, 23 Dec 2021 19:12:54 +0200 > Cc: emacs-devel > > (and (memq buffer-file-coding-system '(utf-8 utf-8-unix utf-8-emacs-unix)) You want coding-system-base here instead of an (incomplete) enumeration of possible variants. (And requiring just UTF-8 is too restrictive: those characters can be encoded by many more coding-systems. It is better to use unencodable-char-position instead.)