From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: max.brieiev@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#48254: 28.0.50; minibuffer does not show the prompt of a command on first invocation Date: Tue, 11 May 2021 12:15:46 +0300 Message-ID: <87wns51vi5.fsf@gmail.com> References: <87h7jg7z53.fsf@gmail.com> <531453ddd6cc9bc89ad2@heytings.org> <878s4q1u2e.fsf@gmail.com> <9d2af8183134a906cbe8@heytings.org> <87h7jdocl7.fsf@gmail.com> <618a480bbebbc24aa804@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34856"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48254@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 11:28:47 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lgOh5-0008vv-8M for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 11:28:47 +0200 Original-Received: from localhost ([::1]:42522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgOh4-00060u-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 05:28:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgOUk-0001cR-KY for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 05:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgOUk-0001yc-2A for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 05:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgOUj-0003Ck-T7 for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 05:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: max.brieiev@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 May 2021 09:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48254 X-GNU-PR-Package: emacs Original-Received: via spool by 48254-submit@debbugs.gnu.org id=B48254.162072455712308 (code B ref 48254); Tue, 11 May 2021 09:16:01 +0000 Original-Received: (at 48254) by debbugs.gnu.org; 11 May 2021 09:15:57 +0000 Original-Received: from localhost ([127.0.0.1]:34936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgOUf-0003CS-1O for submit@debbugs.gnu.org; Tue, 11 May 2021 05:15:57 -0400 Original-Received: from mail-lf1-f43.google.com ([209.85.167.43]:46027) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgOUd-0003CD-Ju for 48254@debbugs.gnu.org; Tue, 11 May 2021 05:15:56 -0400 Original-Received: by mail-lf1-f43.google.com with SMTP id j10so27569304lfb.12 for <48254@debbugs.gnu.org>; Tue, 11 May 2021 02:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=iTN+DBtZPlHoGlwBvUZcL/CLopbBj2wpbMySDHbXIfQ=; b=XHpzF1cVbAHo6xLxIX25Pnbyzi/mr7+yuUstoCEvnL14sQ557TUY8R56ABLwtCnDZM ZZ1ebpzf4/1k2bJ4b/AZJkZ1Vs0cubGaqQM/KZPXDNzP88enWd7uWcpmHuPTFqVTSgS2 fo3Xs/v1pTAEzF6A9gtrt2+TTZh2I3X153k2eg2Iek/oq8Jn2ZfTwQF3goJQYh5/Gj6u YwmvzDIQpuOzIY6IGdqW8KVbPe/ELrQRX9pmZGStRfaeg3n8oLByBH1t1mE4fpU0MZVi +3S/twixAlbx7gdbkG+gPLEOFr/8rsvCq1YAYqww8f/QNu+0CWyEdwwa5/hHrLdCmlfw 6bIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=iTN+DBtZPlHoGlwBvUZcL/CLopbBj2wpbMySDHbXIfQ=; b=ME1B9jrqcqv/52IFAaPpOQ0yDHALu8OBfqB/pqCMIhYb1RV6wassHwUjgSwOzxOCbP WMl+6fDt0nkl4cDZkXADMprsTuKM0RtCwxdlbbEdg7i+yQ82HfOmC1Mq+zT5LoUiYGjs BYlm10aoILPWxx7QdUOZsHIfY1fJwvlZkEBOvveeG4E/3EIwukwU94DT63HGnpDOVr3C fWlW9iAyLwoszoqXEUE9feWKIJL03xaeZlMZeoa2ZFj29AjU1lL/g7SU9leWHjM7e/DT Pxeb2aR2jV/g/9zFOEUoBmnLzD1SNOzUJsYAy+aAER4iM6Nd/smhSzfFUO8Ezg4Z8Wyw 4y8Q== X-Gm-Message-State: AOAM530Hnib/oMdBnYyhIjJktjdhuYQa9Ci9I01foVaTHowKMYn/MvjD +idabcyiWjtBMhtceZn2IFPpA4yuQ/SHxg== X-Google-Smtp-Source: ABdhPJyzFBa1q1tU4bhzxlQBRoSr9EJVXNOIxECKHvPVc11T3qmx9ud0amccckjyQrR88FPN6+uROw== X-Received: by 2002:ac2:47f3:: with SMTP id b19mr19986374lfp.516.1620724549121; Tue, 11 May 2021 02:15:49 -0700 (PDT) Original-Received: from arch-max (host-176-37-1-68.b025.la.net.ua. [176.37.1.68]) by smtp.gmail.com with ESMTPSA id s17sm3661860ljo.117.2021.05.11.02.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 02:15:48 -0700 (PDT) In-Reply-To: <618a480bbebbc24aa804@heytings.org> (Gregory Heytings's message of "Sun, 09 May 2021 22:37:32 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206210 Archived-At: Gregory Heytings writes: > I'm not sure I understand what you want. Where do you want the Dvorak > input method to be active, and where do you want it to be disabled? My preference here would be to enter text (longer than a single key press) with dvorak, but to answer one-key-press prompts with dvorak disabled. But no matter what my preference is, things should remain consistent. As you see from previous message, confirmation prompt after 'C-x C-c' (seems to be `map-y-or-n-p`) must be completed with qwerty, but regular `y-or-n-p` prompts must be completed with dvorak. Is this expected? > As I said earlier, if you don't want to enable english-dvorak in the > minibuffer, all you have to do is to remove the line: > > (add-hook 'minibuffer-setup-hook (lambda () (set-input-method "english-dvorak"))) I want to enter text into minibuffer with dvorak, so I keep this line. In overall, this works good, the issue is when you have to press just a single key to complete the prompt. > Then you'll have a consistent behavior: the Dvorak input method will > be active in buffers you edit, and for everything else (key bindings, > minibuffer interaction, help buffers, ...) it will be disabled. Key bindings for any major mode ignore active input method, as far as I can tell, input method is respected only for self insert commad. So plain keys in dired or help window are always qwerty layout no matter what input method is enabled, which I think is the right thing. Hence my preference is that when I am expected to complete the prompt with a single key in minibuffer I would like to do it with current inputh method disabled. But by default this holds true only for some prompts. > (defun enable-english-dvorak () > (if (memq this-command '(find-file execute-extended-command switch-to-buffer)) > (set-input-method "english-dvorak"))) > (add-hook 'minibuffer-setup-hook #'enable-english-dvorak) > > and adapt the command list to suit your needs. > > Does that solve the problem you have? Thanks. For me this should probably be something like this: (defun enable-english-dvorak () (if (or (not (memq this-command '(y-or-n-p map-y-or-n-p))) (and read-answer-short (equal this-command 'read-answer))) (set-input-method "english-dvorak"))) (add-hook 'minibuffer-setup-hook #'enable-english-dvorak) Thanks again for taking your time to answer my concerns.