unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Echo overriding messages
@ 2015-09-15 16:54 Jay Belanger
  2015-09-15 17:53 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Belanger @ 2015-09-15 16:54 UTC (permalink / raw)
  To: emacs-devel; +Cc: jay.p.belanger


Emacs used to not always cover up messages with keystroke
echoing.  For example, in Emacs 24.5, setting

(local-set-key "ab"
	       (lambda ()
		 (interactive)
		 (message "Hello")
                 (let ((echo-keystrokes 0))
                   (push ?a unread-command-events))))

and then keying in "ab" would display
  Hello
in the minibuffer.  In the git master, it will display
  a-
Even setting `echo-keystrokes' to 0, the message is overwritten
and the echo area is blank (although the message does show up in the
*Messages* buffer). 

Parts of the Calc help mechanism rely on the old behavior.
Is the new behavior intended, or is there a simple way of
reproducing the old behavior?

Jay



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Echo overriding messages
  2015-09-15 16:54 Echo overriding messages Jay Belanger
@ 2015-09-15 17:53 ` Stefan Monnier
  2015-09-15 18:28   ` Jay Belanger
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2015-09-15 17:53 UTC (permalink / raw)
  To: Jay Belanger; +Cc: emacs-devel

> Emacs used to not always cover up messages with keystroke
> echoing.  For example, in Emacs 24.5, setting

> (local-set-key "ab"
> 	       (lambda ()
> 		 (interactive)
> 		 (message "Hello")
>                  (let ((echo-keystrokes 0))
>                    (push ?a unread-command-events))))

The let-binding has no effect since the echo doesn't take place during
the `push', but after the command finished execution.

> and then keying in "ab" would display
>   Hello
> in the minibuffer.  In the git master, it will display
>   a-

Hmm... This is not an intended change.  Both behaviors look
acceptable/reasonable, but can you make a bug report for it?

> Even setting `echo-keystrokes' to 0, the message is overwritten
> and the echo area is blank (although the message does show up in the
> *Messages* buffer). 

Hmm.. indeed, it shouldn't be blank.


        Stefan



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Echo overriding messages
  2015-09-15 17:53 ` Stefan Monnier
@ 2015-09-15 18:28   ` Jay Belanger
  0 siblings, 0 replies; 3+ messages in thread
From: Jay Belanger @ 2015-09-15 18:28 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: jay.p.belanger, emacs-devel

>> Emacs used to not always cover up messages with keystroke
>> echoing.  For example, in Emacs 24.5, setting
>
>> (local-set-key "ab"
>> 	       (lambda ()
>> 		 (interactive)
>> 		 (message "Hello")
>>                  (let ((echo-keystrokes 0))
>>                    (push ?a unread-command-events))))
>
> The let-binding has no effect since the echo doesn't take place during
> the `push', but after the command finished execution.

Oh; the let part was just me trying something out; I forgot to remove
it.  The behavior I described was from the same thing without that
binding. 

> Hmm... This is not an intended change.  Both behaviors look
> acceptable/reasonable, but can you make a bug report for it?

Done; thanks.

Jay



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-15 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-15 16:54 Echo overriding messages Jay Belanger
2015-09-15 17:53 ` Stefan Monnier
2015-09-15 18:28   ` Jay Belanger

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).