unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: max.brieiev@gmail.com
To: Gregory Heytings <gregory@heytings.org>
Cc: 48254@debbugs.gnu.org
Subject: bug#48254: 28.0.50; minibuffer does not show the prompt of a command on first invocation
Date: Sat, 08 May 2021 11:26:44 +0300	[thread overview]
Message-ID: <87h7jdocl7.fsf@gmail.com> (raw)
In-Reply-To: <9d2af8183134a906cbe8@heytings.org> (Gregory Heytings's message of "Fri, 07 May 2021 15:28:17 +0000")

Ok, let's try next recipe.

The content of .emacs file:

(add-hook 'change-major-mode-hook (lambda () (or (minibufferp) (set-input-method "english-dvorak"))))
(add-hook 'minibuffer-setup-hook (lambda () (set-input-method "english-dvorak")))

Then:

- Modify some file buffer.
- Press 'C-x C-c'
- You will be prompted with: "Save file ... (y, n, ., q, ...)"
- Press "q" as in qwerty layout. This will quit the prompt, meaning that
  the actual layout is qwerty.

But:

- M-: RET (y-or-n-p "test: ") RET
- then press "y" as in dvorak layout, this is "t" letter in qwerty. This
  will  exit the prompt, meaning that the actual layout is dvorak. 

So in each case I had to guess, which layout is active to actually
answer the prompt.

Another case. I use 'project.el'. When you select the project with
`C-x p p`, you are prompted with a menu like:

[f] Find file [g] Find regexp [d] Dired ...

Previously this menu used to respect qwerty layout only. I re-build
Emacs approximately once in 1-2 weeks and since some recent build it
started to respect only dvorak keys.

I don't have strong opinion here, but I think this is wrong. I think
"one letter prompts" should ignore current input methods, because they
are essentially keybindings just with modifier key omitted. An user
with Japanese input method won't be able to answer any of the prompt
unless she explicitly resets inputh method.





  reply	other threads:[~2021-05-08  8:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-06 13:47 bug#48254: 28.0.50; minibuffer does not show the prompt of a command on first invocation max.brieiev
2021-05-06 19:23 ` Gregory Heytings
2021-05-07 14:45   ` max.brieiev
2021-05-07 15:28     ` Gregory Heytings
2021-05-08  8:26       ` max.brieiev [this message]
2021-05-09 22:37         ` Gregory Heytings
2021-05-11  9:15           ` max.brieiev
2021-05-11  9:35             ` Gregory Heytings
2021-05-11  9:47               ` max.brieiev
2021-05-11 11:01                 ` Gregory Heytings
2021-05-11  9:40             ` max.brieiev
2021-05-11 17:47             ` Juri Linkov

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=87h7jdocl7.fsf@gmail.com \
    --to=max.brieiev@gmail.com \
    --cc=48254@debbugs.gnu.org \
    --cc=gregory@heytings.org \
    /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).