unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: paaguti@gmail.com, emacs-devel@gnu.org
Subject: Re: Proposal: make insert-pair-alist buffer local
Date: Thu, 23 Dec 2021 20:15:16 +0200	[thread overview]
Message-ID: <83a6grur0r.fsf@gnu.org> (raw)
In-Reply-To: <86o857e6i1.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 23 Dec 2021 19:12:54 +0200)

> From: Juri Linkov <juri@linkov.net>
> Date: Thu, 23 Dec 2021 19:12:54 +0200
> Cc: emacs-devel <emacs-devel@gnu.org>
> 
>   (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.)



  reply	other threads:[~2021-12-23 18:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-23 12:11 Proposal: make insert-pair-alist buffer local Pedro Andres Aranda Gutierrez
2021-12-23 12:41 ` Po Lu
2021-12-23 13:11   ` Óscar Fuentes
2021-12-23 13:28     ` Po Lu
2021-12-23 17:12 ` Juri Linkov
2021-12-23 18:15   ` Eli Zaretskii [this message]
2021-12-23 19:33 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a6grur0r.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=paaguti@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).