From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#48254: 28.0.50; minibuffer does not show the prompt of a command on first invocation Date: Fri, 07 May 2021 15:28:17 +0000 Message-ID: <9d2af8183134a906cbe8@heytings.org> References: <87h7jg7z53.fsf@gmail.com> <531453ddd6cc9bc89ad2@heytings.org> <878s4q1u2e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35135"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48254@debbugs.gnu.org To: max.brieiev@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 07 17:29:46 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 1lf2QE-00090K-8I for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 May 2021 17:29:46 +0200 Original-Received: from localhost ([::1]:37612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lf2QD-0003Xm-AO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 May 2021 11:29:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lf2PY-0003RD-7h for bug-gnu-emacs@gnu.org; Fri, 07 May 2021 11:29:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lf2PW-0003Xs-Dl for bug-gnu-emacs@gnu.org; Fri, 07 May 2021 11:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lf2PW-0007zR-As for bug-gnu-emacs@gnu.org; Fri, 07 May 2021 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 May 2021 15:29:02 +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.162040130130702 (code B ref 48254); Fri, 07 May 2021 15:29:02 +0000 Original-Received: (at 48254) by debbugs.gnu.org; 7 May 2021 15:28:21 +0000 Original-Received: from localhost ([127.0.0.1]:44523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lf2Or-0007z8-2O for submit@debbugs.gnu.org; Fri, 07 May 2021 11:28:21 -0400 Original-Received: from heytings.org ([95.142.160.155]:41710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lf2Op-0007z2-5m for 48254@debbugs.gnu.org; Fri, 07 May 2021 11:28:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1620401298; bh=RJ6jbQIlpbphF0tIfs/lU0UqSCFcVV6KqGS5razekk4=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=M7siXrXzDTrSSVHDzPyvmvjbd3SUxoNS4p+P4wdBe0TRGd7B7+GT67kHdV5zKIgAW 7y0OZzeMznFAVg53vuZrAefJacDNtaAlyJH1WMAUnFUk/GyRDFxYqp5CjarY9Db7cP 5aPLMKgib9tayX6wHVQ7AS/BB1C7zsTSKxtiTmBdaq/qdlu4MarViQSJlAA1/tAAMB IJ73lEFdITiVWmwNGenA2/fLxkjZMjyHGeFRxaVGO3xlT2g1V37+9i6qbVzbEqOwK7 0MX9gDk9GLANOZ7QCDajTmSVfC9t/Cy2bjrSUDn02i7rbm4GPxm0xYENTykBGkNP7d 2E7yTIafyqDzw== In-Reply-To: <878s4q1u2e.fsf@gmail.com> 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:205950 Archived-At: >> (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"))) >> ... >> Does that solve the problem you have? > > Thanks, this solves the issue. > Okay. > > But I have some other issues related to input methods, which I don't > know how to reproduce reliably. Maybe you can give me some hints and I > will report them as separate bugs. > > One issue is related to the prompts, where the input is a single key > like "y" or "!", like the prompt shown when you have some modified > buffers while exiting Emacs. Sometimes I have to press the key as it is > laid on qwerty layout, but sometimes it is as on dvorak layout. This is > quite annoying, since I always have to guess, which layout is active for > the shown yes-no prompt. > I don't use a global input method myself, so I cannot give you a general advice alas. In my tests, with the two above lines, everything that is read in the minibuffer (yes-or-no-p, y-or-n-p, read-answer, ...) uses the Dvorak layout. Without a recipe, I cannot do more. > > The other issue is probably somehow related to Edebug. I am learning > elisp, so I often run Edebug just to learn how some functionality works. > Once in a while, when some breakpoint is hit, something bad happens to > Emacs in a way that each keymap that defines just basic characters (I > mean without modifier bits), like Info buffer, or Edebug, or Gnus is > turned to think that underlying layout is dvorak. So pressing "l" inside > Info buffer runs actually 'Info-next' command, which is bound to "n", > istead of going back in history. So to make keybindings operate normally > again I have to press "C-\" in every buffer to reset input method. The > other side effect of this is that read-only edebug buffer suddenly > becomes editable and I can enter text there, though mode line still > shows '%%'. > Again, in my tests this doesn't happen, so alas I cannot give you an advice without a recipe.