unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: Gautier Ponsinet <gautier@gautierponsinet.xyz>
Cc: emacs-devel@gnu.org
Subject: Re: Postfix input methods and read-char
Date: Tue, 7 Jan 2025 14:13:40 +0100	[thread overview]
Message-ID: <Z30ohGeAk57bPdyE@tuxteam.de> (raw)
In-Reply-To: <87r05elrd7.fsf@gautierponsinet.xyz>

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

On Tue, Jan 07, 2025 at 01:51:00PM +0100, Gautier Ponsinet wrote:
> Hello everyone,
> 
> The following question is motivated by the avy package
> (https://github.com/abo-abo/avy) which relies on read-char. How to
> select a character without accent via read-char with an active "postfix"
> input method?
> 
> An example, in emacs -Q:
> - C-u C-\ french-postfix <Enter>
> - M-: (read-char "Prompt: " t) <Enter>
> - a
> 
> Here, the minibuffer waits for a possible accent (^ or `). How can I
> enter a simple "a" without accent?

It seems that just entering the next character (whenever it isn't one
of the possible postfixes) does the trick (the echo area tells you which
postfix chars, if any, are possible).

Or perhaps I misunderstood your question?

Cheers
-- 
tomás

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2025-01-07 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-07 12:51 Postfix input methods and read-char Gautier Ponsinet
2025-01-07 13:13 ` tomas [this message]
2025-01-07 13:29   ` Gautier Ponsinet
2025-01-07 13:35 ` Eli Zaretskii
2025-01-07 14:02   ` Gautier Ponsinet
2025-01-07 14:21     ` Eli Zaretskii

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=Z30ohGeAk57bPdyE@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=emacs-devel@gnu.org \
    --cc=gautier@gautierponsinet.xyz \
    /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).