* bug#31855: 27.0.50; Async shell command finished message not visible any more
@ 2018-06-16 5:12 Michael Heerdegen
2018-06-16 8:48 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Michael Heerdegen @ 2018-06-16 5:12 UTC (permalink / raw)
To: 31855
Hi,
I'm not sure if this issue has any other relation to `shell-command'
than it's where the problem occurs to me - anyway:
In emacs25 -Q, I type, for example, M-! t r u e SPC & <return>, and the
echo area displays "true: finished".
In master emacs -Q, doing the same gives you no visible feedback any
more. A message is logged in *Messages*, but it seems to be dismissed
immediately.
TIA;
Michael.
In GNU Emacs 27.0.50 (build 13, x86_64-pc-linux-gnu, GTK+ Version 3.22.29)
of 2018-06-16 built on drachen
Repository revision: aa0f4760996d82610ea0010919436729f08b2883
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#31855: 27.0.50; Async shell command finished message not visible any more
2018-06-16 5:12 bug#31855: 27.0.50; Async shell command finished message not visible any more Michael Heerdegen
@ 2018-06-16 8:48 ` Eli Zaretskii
2018-06-16 21:17 ` Daniel Colascione
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2018-06-16 8:48 UTC (permalink / raw)
To: Daniel Colascione; +Cc: Michael Heerdegen, 31855
> From: Michael Heerdegen <michael_heerdegen@web.de>
> Date: Sat, 16 Jun 2018 07:12:50 +0200
>
> In emacs25 -Q, I type, for example, M-! t r u e SPC & <return>, and the
> echo area displays "true: finished".
>
> In master emacs -Q, doing the same gives you no visible feedback any
> more. A message is logged in *Messages*, but it seems to be dismissed
> immediately.
Daniel, this seems to be due to your recent changes in keyboard.c. If
I make the change below, which reverts a small part of your changes,
the problem is gone:
diff --git a/src/keyboard.c b/src/keyboard.c
index 5409918..76097e8 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -8999,7 +8999,7 @@ read_key_sequence (Lisp_Object *keybuf, Lisp_Object prompt,
/* These are no-ops the first time through, but if we restart, they
revert the echo area and this_command_keys to their original state. */
this_command_key_count = keys_start;
- if (INTERACTIVE && is_replay)
+ if (INTERACTIVE && t < mock_input)
echo_truncate (echo_start);
is_replay = true;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#31855: 27.0.50; Async shell command finished message not visible any more
2018-06-16 8:48 ` Eli Zaretskii
@ 2018-06-16 21:17 ` Daniel Colascione
2018-06-17 4:48 ` Michael Heerdegen
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Colascione @ 2018-06-16 21:17 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Michael Heerdegen, 31855
On 06/16/2018 01:48 AM, Eli Zaretskii wrote:
>> From: Michael Heerdegen <michael_heerdegen@web.de>
>> Date: Sat, 16 Jun 2018 07:12:50 +0200
>>
>> In emacs25 -Q, I type, for example, M-! t r u e SPC & <return>, and the
>> echo area displays "true: finished".
>>
>> In master emacs -Q, doing the same gives you no visible feedback any
>> more. A message is logged in *Messages*, but it seems to be dismissed
>> immediately.
>
> Daniel, this seems to be due to your recent changes in keyboard.c. If
> I make the change below, which reverts a small part of your changes,
> the problem is gone:
>
> diff --git a/src/keyboard.c b/src/keyboard.c
> index 5409918..76097e8 100644
> --- a/src/keyboard.c
> +++ b/src/keyboard.c
> @@ -8999,7 +8999,7 @@ read_key_sequence (Lisp_Object *keybuf, Lisp_Object prompt,
> /* These are no-ops the first time through, but if we restart, they
> revert the echo area and this_command_keys to their original state. */
> this_command_key_count = keys_start;
> - if (INTERACTIVE && is_replay)
> + if (INTERACTIVE && t < mock_input)
> echo_truncate (echo_start);
> is_replay = true;
Yep. You're right. I'll bring us back to the old logic here.
I just worry that the "t < mock_input" condition is wrong in the case
where we use a function key map to rewrite an input to nothing, but
maybe the improved last_nonmenu_event tracking will fix that class of
problem by itself.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#31855: 27.0.50; Async shell command finished message not visible any more
2018-06-16 21:17 ` Daniel Colascione
@ 2018-06-17 4:48 ` Michael Heerdegen
0 siblings, 0 replies; 4+ messages in thread
From: Michael Heerdegen @ 2018-06-17 4:48 UTC (permalink / raw)
To: Daniel Colascione; +Cc: 31855
Daniel Colascione <dancol@dancol.org> writes:
> > Daniel, this seems to be due to your recent changes in keyboard.c.
> > If I make the change below, which reverts a small part of your
> > changes, the problem is gone: [...]
> Yep. You're right. I'll bring us back to the old logic here.
Works for me, thanks.
Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-06-17 4:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-16 5:12 bug#31855: 27.0.50; Async shell command finished message not visible any more Michael Heerdegen
2018-06-16 8:48 ` Eli Zaretskii
2018-06-16 21:17 ` Daniel Colascione
2018-06-17 4:48 ` Michael Heerdegen
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).