From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo Date: Tue, 02 Feb 2021 19:04:00 +0200 Message-ID: <83a6sm5rlr.fsf@gnu.org> References: <83r1lz60so.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40422"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46243@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 02 18:19:17 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 1l6zKf-000AOX-EY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 18:19:17 +0100 Original-Received: from localhost ([::1]:52290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6zKe-0000Et-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 12:19:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6z6u-0001dI-W1 for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 12:05:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6z6r-0007za-PS for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 12:05:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6z6r-0004Dp-KD for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 12:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Feb 2021 17:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46243 X-GNU-PR-Package: emacs Original-Received: via spool by 46243-submit@debbugs.gnu.org id=B46243.161228545516172 (code B ref 46243); Tue, 02 Feb 2021 17:05:01 +0000 Original-Received: (at 46243) by debbugs.gnu.org; 2 Feb 2021 17:04:15 +0000 Original-Received: from localhost ([127.0.0.1]:36094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6z66-0004Ck-8h for submit@debbugs.gnu.org; Tue, 02 Feb 2021 12:04:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6z62-0004CW-IY for 46243@debbugs.gnu.org; Tue, 02 Feb 2021 12:04:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50125) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6z5w-0007eL-QJ; Tue, 02 Feb 2021 12:04:04 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4084 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6z5v-0001OQ-6s; Tue, 02 Feb 2021 12:04:03 -0500 In-Reply-To: (message from Drew Adams on Mon, 1 Feb 2021 22:30:54 +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:199153 Archived-At: > From: Drew Adams > CC: "46243@debbugs.gnu.org" <46243@debbugs.gnu.org> > Date: Mon, 1 Feb 2021 22:30:54 +0000 > > > I think it should, but I couldn't verify that, because > > your recipes didn't work for me. Please provide a > > recipe that would work in "emacs -Q". > > emacs -Q ; e.g. Emacs 27.1 > > (defun diredp-mark-with-char (char &optional arg) > "Mark this line with CHAR. > With numeric prefix arg N, mark the next N lines." > (interactive > (progn (message nil) > (list (read-char "Mark this line with char: ") > (prefix-numeric-value current-prefix-arg)))) > (let ((dired-marker-char char)) > (dired-mark arg))) > > (define-key dired-mode-map [menu-bar mark with-char] > '(menu-item > "Mark This with Char..." diredp-mark-with-char > :help "Mark this line with a character you type")) > > Now try the same thing but with (message nil) commented out. > > With (message nil), you see the prompt: > > Mark this line with char: > > Without (message nil), you see only this: > > menu-bar mark with-char- > > The command works OK, but a user will have no clue > about typing a char. > > Clear enough? For the record, the recipe didn't work for me until I invoked Dired before evaluating the second form. > The change was introduced in Emacs 24, AFAICT. In Emacs 24.4, to be exact. > Regression or improvement? Not clear yet, more analysis is required. Stay tuned.