[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that re
From: |
Eli Zaretskii |
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 |
> From: Drew Adams <drew.adams@oracle.com>
> 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.
- bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Drew Adams, 2021/02/01
- bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Drew Adams, 2021/02/01
- bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Eli Zaretskii, 2021/02/01
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Drew Adams, 2021/02/01
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo,
Eli Zaretskii <=
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Eli Zaretskii, 2021/02/03
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Stefan Monnier, 2021/02/03
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Eli Zaretskii, 2021/02/03
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Stefan Monnier, 2021/02/03
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Stefan Monnier, 2021/02/03
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Eli Zaretskii, 2021/02/04
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Stefan Monnier, 2021/02/04
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Eli Zaretskii, 2021/02/04
- bug#46243: [External] : Re: bug#46243: 26.3; If invoke menu item that reads a char, get keystrokes echo, Drew Adams, 2021/02/04