GNU bug report logs - #22581
Strange minibuffer prompt on exiting Emacs

Previous Next

Package: emacs;

Reported by: Richard Copley <rcopley <at> gmail.com>

Date: Sun, 7 Feb 2016 11:34:02 UTC

Severity: normal

Merged with 21797, 22688

Found in versions 25.0.50, 25.0.91

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22581 in the body.
You can then email your comments to 22581 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#22581; Package emacs. (Sun, 07 Feb 2016 11:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Richard Copley <rcopley <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 07 Feb 2016 11:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Richard Copley <rcopley <at> gmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Strange minibuffer prompt on exiting Emacs
Date: Sun, 7 Feb 2016 11:33:15 +0000
The prompt to confirm exiting Ediff has gone a bit strange. To
reproduce in "emacs -Q" (assuming files "x" and "y" exist in the
working directory):

M-x ediff RET x RET y RET q

The expected prompt is
"Quit this Ediff session? (y or n)  ".

The actual text shown in the minibuffer is
"Quit this Ediff session? (y or n)  switch-frame-".

(The frame switch event occurred because the little Ediff control
panel frame went away and the main frame got activated.)

The "switch-frame-" is of course not really part of the prompt. It is
rendered like what you get when you enter an incomplete key sequence,
like "C-x-". It seems as though switch-frame is being treated as a
prefix key, but it's not treated as such in most circumstances. Try
this for example:

C-x 5 2 ;; make-frame-command
C-h k ;; describe-key
;; Use the window manager to activate the other frame.
;; Minibuffer prompt is "Describe key (or click or menu item):  switch-frame-")
RET
;; *Help* buffer describes "RET", not "switch-frame RET".

In GNU Emacs 25.0.90.1 (x86_64-w64-mingw32)
 of 2016-02-06 built on MACHINE
Repository revision: 87ae21858adc173c129ff8dfec8ce74cd82e77be
Windowing system distributor 'Microsoft Corp.', version 10.0.10586
Configured using:
 'configure --prefix /c/emacs/emacs-20160206-090820
 --without-imagemagick --disable-dependency-tracking
 --enable-locallisppath=%emacs_dir%/../site-lisp 'CFLAGS=-Og -g -ggdb''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: ENG
  locale-coding-system: cp1252

Major mode: Text

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Reading file c:/temp/xxx.txt ...
Reading file c:/temp/yyy.txt ...
Computing differences between xxx.txt and yyy.txt ...
Processing difference regions ... done
Quit this Ediff session? (y or n) y

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec epg epg-config gnus-util mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util help-fns help-mode easymenu mail-prsvr
mail-utils jka-compr ediff-merg ediff-wind ediff-diff ediff-mult
ediff-help ediff-init cl-loaddefs pcase cl-lib ediff-util ediff
time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
w32notify dbusbind w32 multi-tty make-network-process emacs)

Memory information:
((conses 16 98162 11732)
 (symbols 56 20948 0)
 (miscs 48 47 181)
 (strings 32 18962 3451)
 (string-bytes 1 551173)
 (vectors 16 13332)
 (vector-slots 8 428898 4688)
 (floats 8 173 116)
 (intervals 56 244 12)
 (buffers 976 15))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22581; Package emacs. (Sun, 07 Feb 2016 17:45:01 GMT) Full text and rfc822 format available.

Message #8 received at 22581 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Richard Copley <rcopley <at> gmail.com>, 22581 <at> debbugs.gnu.org
Subject: Re: bug#22581: Strange minibuffer prompt on exiting Emacs
Date: Sun, 07 Feb 2016 18:43:55 +0100
> The prompt to confirm exiting Ediff has gone a bit strange. To
> reproduce in "emacs -Q" (assuming files "x" and "y" exist in the
> working directory):
>
> M-x ediff RET x RET y RET q
>
> The expected prompt is
> "Quit this Ediff session? (y or n)  ".
>
> The actual text shown in the minibuffer is
> "Quit this Ediff session? (y or n)  switch-frame-".
>
> (The frame switch event occurred because the little Ediff control
> panel frame went away and the main frame got activated.)
>
> The "switch-frame-" is of course not really part of the prompt. It is
> rendered like what you get when you enter an incomplete key sequence,
> like "C-x-". It seems as though switch-frame is being treated as a
> prefix key, but it's not treated as such in most circumstances. Try
> this for example:
>
> C-x 5 2 ;; make-frame-command
> C-h k ;; describe-key
> ;; Use the window manager to activate the other frame.
> ;; Minibuffer prompt is "Describe key (or click or menu item):  switch-frame-")
> RET
> ;; *Help* buffer describes "RET", not "switch-frame RET".

Thanks for the report.  This is the same as bug#21797.

Bug#22068 is another instance of this.

martin




Merged 21797 22581. Request was from martin rudalics <rudalics <at> gmx.at> to control <at> debbugs.gnu.org. (Sun, 07 Feb 2016 17:45:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22581; Package emacs. (Sun, 07 Feb 2016 18:00:02 GMT) Full text and rfc822 format available.

Message #13 received at 22581 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Richard Copley <rcopley <at> gmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 22581 <at> debbugs.gnu.org
Subject: Re: bug#22581: Strange minibuffer prompt on exiting Emacs
Date: Sun, 07 Feb 2016 19:58:46 +0200
> From: Richard Copley <rcopley <at> gmail.com>
> Date: Sun, 7 Feb 2016 11:33:15 +0000
> 
> The prompt to confirm exiting Ediff has gone a bit strange. To
> reproduce in "emacs -Q" (assuming files "x" and "y" exist in the
> working directory):
> 
> M-x ediff RET x RET y RET q
> 
> The expected prompt is
> "Quit this Ediff session? (y or n)  ".
> 
> The actual text shown in the minibuffer is
> "Quit this Ediff session? (y or n)  switch-frame-".
> 
> (The frame switch event occurred because the little Ediff control
> panel frame went away and the main frame got activated.)
> 
> The "switch-frame-" is of course not really part of the prompt. It is
> rendered like what you get when you enter an incomplete key sequence,
> like "C-x-". It seems as though switch-frame is being treated as a
> prefix key, but it's not treated as such in most circumstances. Try
> this for example:
> 
> C-x 5 2 ;; make-frame-command
> C-h k ;; describe-key
> ;; Use the window manager to activate the other frame.
> ;; Minibuffer prompt is "Describe key (or click or menu item):  switch-frame-")
> RET
> ;; *Help* buffer describes "RET", not "switch-frame RET".

Stefan, could you please look into this?  AFAICS, this is caused by
your changes in 5dc644a to generalize the prefix-command machinery: a
binary built a day before that doesn't have this problem, while a
binary build 4 weeks later does.

Thanks.




Merged 21797 22581 22688. Request was from martin rudalics <rudalics <at> gmx.at> to control <at> debbugs.gnu.org. (Mon, 15 Feb 2016 22:59:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22581; Package emacs. (Wed, 24 Feb 2016 20:53:01 GMT) Full text and rfc822 format available.

Message #18 received at 22581 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Richard Copley <rcopley <at> gmail.com>
Cc: 22581 <at> debbugs.gnu.org
Subject: Re: bug#22581: Strange minibuffer prompt on exiting Emacs
Date: Wed, 24 Feb 2016 15:52:05 -0500
> The actual text shown in the minibuffer is
> "Quit this Ediff session? (y or n)  switch-frame-".

I installed a patch which should fix this case.
The echo-keystrokes code and still very messy, tho :-(


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22581; Package emacs. (Wed, 24 Feb 2016 21:11:01 GMT) Full text and rfc822 format available.

Message #21 received at 22581 <at> debbugs.gnu.org (full text, mbox):

From: Richard Copley <rcopley <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 22581 <at> debbugs.gnu.org
Subject: Re: bug#22581: Strange minibuffer prompt on exiting Emacs
Date: Wed, 24 Feb 2016 21:09:35 +0000
On 24 February 2016 at 20:52, Stefan Monnier wrote:
>> The actual text shown in the minibuffer is
>> "Quit this Ediff session? (y or n)  switch-frame-".
>
> I installed a patch which should fix this case.
> The echo-keystrokes code and still very messy, tho :-(

That case looks good to me now. Thank you.




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Thu, 25 Feb 2016 00:20:02 GMT) Full text and rfc822 format available.

Notification sent to Richard Copley <rcopley <at> gmail.com>:
bug acknowledged by developer. (Thu, 25 Feb 2016 00:20:02 GMT) Full text and rfc822 format available.

Message #26 received at 22581-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Richard Copley <rcopley <at> gmail.com>
Cc: 22581-done <at> debbugs.gnu.org
Subject: Re: bug#22581: Strange minibuffer prompt on exiting Emacs
Date: Wed, 24 Feb 2016 19:19:31 -0500
>> The echo-keystrokes code and still very messy, tho :-(
                            ^^^
                            is

> That case looks good to me now. Thank you.

Thanks for confirming,
closing,


        Stefan




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Thu, 25 Feb 2016 00:20:02 GMT) Full text and rfc822 format available.

Notification sent to Eli Zaretskii <eliz <at> gnu.org>:
bug acknowledged by developer. (Thu, 25 Feb 2016 00:20:03 GMT) Full text and rfc822 format available.

Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Thu, 25 Feb 2016 00:20:03 GMT) Full text and rfc822 format available.

Notification sent to Kevin Gallagher <kevin.gal <at> verizon.net>:
bug acknowledged by developer. (Thu, 25 Feb 2016 00:20:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 24 Mar 2016 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.