unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
@ 2011-12-05 20:27 Stephen Berman
  2011-12-06  1:53 ` Chong Yidong
  2020-08-25 12:58 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 11+ messages in thread
From: Stephen Berman @ 2011-12-05 20:27 UTC (permalink / raw)
  To: 10224

1. emacs -Q
2. Type `C-u' => in the echo area you see "C-u-"
3. Set the mark (e.g. by typing `C-SPC') and then type `M-w'.
4. Type `C-u' => in the echo area you see nothing, for this and
subsequent prefix arguments.  `M-x' is, however, echoed.

The above recipe did not work in my previous build from 2011-12-03,
which may implicate this change:

2011-12-05  Chong Yidong  <cyd@gnu.org>

	* keyboard.c (process_special_events): New function.
	(swallow_events, Finput_pending_p): Use it (Bug#10195).

However, in my build from 2011-12-03, if I disabled transient-mark-mode
before step 3 above, then `M-w' has the same inhibiting effect on prefix
arguments, so if the above change is involved, then only to expose the
bug in transient-mark-mode.  Yet this is a recent bug, since I did not
observe it in builds prior to 2011-12-03.


In GNU Emacs 24.0.92.2 (i686-suse-linux-gnu, GTK+ Version 2.24.7)
 of 2011-12-05 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.11004000
configured using `configure  '--without-toolkit-scroll-bars' 'CFLAGS=-g''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2011-12-05 20:27 bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments Stephen Berman
@ 2011-12-06  1:53 ` Chong Yidong
  2011-12-06  7:30   ` Stephen Berman
  2020-08-25 12:58 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 11+ messages in thread
From: Chong Yidong @ 2011-12-06  1:53 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 10224

Stephen Berman <stephen.berman@gmx.net> writes:

> 1. emacs -Q
> 2. Type `C-u' => in the echo area you see "C-u-"
> 3. Set the mark (e.g. by typing `C-SPC') and then type `M-w'.

I don't understand what you are trying to say.

After typing C-u, if I immediately type C-SPC, Emacs says "No mark set
in this buffer".  That is to be expected, since C-u C-SPC is supposed to
move point to the mark.

Could you repeat with the *exact* recipe?





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2011-12-06  1:53 ` Chong Yidong
@ 2011-12-06  7:30   ` Stephen Berman
  2011-12-06  8:17     ` Chong Yidong
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Berman @ 2011-12-06  7:30 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 10224

On Tue, 06 Dec 2011 09:53:52 +0800 Chong Yidong <cyd@gnu.org> wrote:

> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> 1. emacs -Q
>> 2. Type `C-u' => in the echo area you see "C-u-"
>> 3. Set the mark (e.g. by typing `C-SPC') and then type `M-w'.
>
> I don't understand what you are trying to say.
>
> After typing C-u, if I immediately type C-SPC, Emacs says "No mark set
> in this buffer".  That is to be expected, since C-u C-SPC is supposed to
> move point to the mark.
>
> Could you repeat with the *exact* recipe?

Sorry for the confusion.  Step 2 was only meant to demonstrate the usual
echoing of prefix arguments; it's not a necessary step to get the bug.
Step 3 is really the entire recipe: after setting the mark (in any way)
and then typing M-w, all subsequent interactively typed prefix arguments
are no longer echoed.  (Under conditions I haven't yet been able to
determine, the echoing sometimes returns after a while, but immediately
vanishes again upon typing M-w (if the mark is set).)

Steve Berman





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2011-12-06  7:30   ` Stephen Berman
@ 2011-12-06  8:17     ` Chong Yidong
  2011-12-06  9:00       ` Stephen Berman
  0 siblings, 1 reply; 11+ messages in thread
From: Chong Yidong @ 2011-12-06  8:17 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 10224

Stephen Berman <stephen.berman@gmx.net> writes:

> Sorry for the confusion.  Step 2 was only meant to demonstrate the usual
> echoing of prefix arguments; it's not a necessary step to get the bug.
> Step 3 is really the entire recipe: after setting the mark (in any way)
> and then typing M-w, all subsequent interactively typed prefix arguments
> are no longer echoed.  (Under conditions I haven't yet been able to
> determine, the echoing sometimes returns after a while, but immediately
> vanishes again upon typing M-w (if the mark is set).)

I can't reproduce any unexpected behavior.  Are you sure you're not just
seeing the usual effect of echo-keystrokes (which specifies a 1 second
pause before echoing)?





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2011-12-06  8:17     ` Chong Yidong
@ 2011-12-06  9:00       ` Stephen Berman
  2011-12-09  5:52         ` Chong Yidong
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Berman @ 2011-12-06  9:00 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 10224

On Tue, 06 Dec 2011 16:17:53 +0800 Chong Yidong <cyd@gnu.org> wrote:

> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> Sorry for the confusion.  Step 2 was only meant to demonstrate the usual
>> echoing of prefix arguments; it's not a necessary step to get the bug.
>> Step 3 is really the entire recipe: after setting the mark (in any way)
>> and then typing M-w, all subsequent interactively typed prefix arguments
>> are no longer echoed.  (Under conditions I haven't yet been able to
>> determine, the echoing sometimes returns after a while, but immediately
>> vanishes again upon typing M-w (if the mark is set).)
>
> I can't reproduce any unexpected behavior.  Are you sure you're not just
> seeing the usual effect of echo-keystrokes (which specifies a 1 second
> pause before echoing)?

It's definitely not a normal delay.  But your failure to reproduce it
(it's 100% reproducible for me) made me suspicious, so I switched to
another desktop environment, and sure enough, the echoing behavior after
M-w was normal.  So this appears to be a problem just with LXDE, which I
used for the first time a few days ago.  I have no idea what is causing
it: M-w has no desktop function in LXDE AFAICT and aside from the
no-echo problem works as usual in Emacs; moreover, I just determined
that the no-echo problem does not happen with emacs -q -nw started from
the LXTerminal.  Anyway, I guess this is not an Emacs bug (and I guess
I'll have to switch desktop environments again...).  Sorry for the
noise.

Steve Berman





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2011-12-06  9:00       ` Stephen Berman
@ 2011-12-09  5:52         ` Chong Yidong
  2011-12-11 17:52           ` Stephen Berman
  0 siblings, 1 reply; 11+ messages in thread
From: Chong Yidong @ 2011-12-09  5:52 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 10224

Stephen Berman <stephen.berman@gmx.net> writes:

> It's definitely not a normal delay.  But your failure to reproduce it
> (it's 100% reproducible for me) made me suspicious, so I switched to
> another desktop environment, and sure enough, the echoing behavior after
> M-w was normal.  So this appears to be a problem just with LXDE, which I
> used for the first time a few days ago.  I have no idea what is causing
> it: M-w has no desktop function in LXDE AFAICT and aside from the
> no-echo problem works as usual in Emacs; moreover, I just determined
> that the no-echo problem does not happen with emacs -q -nw started from
> the LXTerminal.

I have no idea what LXDE could be doing that could cause this.  If you
add the (redisplay t) line discussed earlier in this thread, does the
problem go away on LXDE?





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2011-12-09  5:52         ` Chong Yidong
@ 2011-12-11 17:52           ` Stephen Berman
  2012-02-26 10:00             ` Chong Yidong
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Berman @ 2011-12-11 17:52 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 10224

On Fri, 09 Dec 2011 13:52:29 +0800 Chong Yidong <cyd@gnu.org> wrote:

> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> It's definitely not a normal delay.  But your failure to reproduce it
>> (it's 100% reproducible for me) made me suspicious, so I switched to
>> another desktop environment, and sure enough, the echoing behavior after
>> M-w was normal.  So this appears to be a problem just with LXDE, which I
>> used for the first time a few days ago.  I have no idea what is causing
>> it: M-w has no desktop function in LXDE AFAICT and aside from the
>> no-echo problem works as usual in Emacs; moreover, I just determined
>> that the no-echo problem does not happen with emacs -q -nw started from
>> the LXTerminal.
>
> I have no idea what LXDE could be doing that could cause this.  If you
> add the (redisplay t) line discussed earlier in this thread, does the
> problem go away on LXDE?

Do you mean this (from Bug#10195)?

=== modified file 'lisp/simple.el'
*** lisp/simple.el	2011-11-19 19:49:56 +0000
--- lisp/simple.el	2011-12-04 02:25:33 +0000
***************
*** 3251,3256 ****
--- 3251,3257 ----
  	      ;; Swap point and mark.
  	      (set-marker (mark-marker) (point) (current-buffer))
  	      (goto-char other-end)
+ 	      (redisplay t)
  	      (sit-for blink-matching-delay)
  	      ;; Swap back.
  	      (set-marker (mark-marker) other-end (current-buffer))

If so, then no, adding the redisplay line does not prevent inhibiting
echoing of prefix arguments after setting the mark and then typing M-w.
(I tested by starting Emacs with -Q, copying the source code of
kill-ring-save into *scratch*, adding the redisplay line, evalling, then
setting the mark and typing M-w.)

Steve Berman





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2011-12-11 17:52           ` Stephen Berman
@ 2012-02-26 10:00             ` Chong Yidong
  2012-02-26 21:27               ` Stephen Berman
  0 siblings, 1 reply; 11+ messages in thread
From: Chong Yidong @ 2012-02-26 10:00 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 10224

> I switched to another desktop environment, and sure enough, the
> echoing behavior after M-w was normal.  So this appears to be a
> problem just with LXDE, which I used for the first time a few days
> ago.  I have no idea what is causing it

I recently made a change to the way X selections requests are processed
by Emacs, which might have fixed this problem if LXDE has a clipboard
manager.  If you still have LXDE installed, could you see if the problem
is still there, or gone?





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2012-02-26 10:00             ` Chong Yidong
@ 2012-02-26 21:27               ` Stephen Berman
  0 siblings, 0 replies; 11+ messages in thread
From: Stephen Berman @ 2012-02-26 21:27 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 10224

On Sun, 26 Feb 2012 18:00:40 +0800 Chong Yidong <cyd@gnu.org> wrote:

>> I switched to another desktop environment, and sure enough, the
>> echoing behavior after M-w was normal.  So this appears to be a
>> problem just with LXDE, which I used for the first time a few days
>> ago.  I have no idea what is causing it
>
> I recently made a change to the way X selections requests are processed
> by Emacs, which might have fixed this problem if LXDE has a clipboard
> manager.  If you still have LXDE installed, could you see if the problem
> is still there, or gone?

I don't know whether LXDE has a clipboard manager, but I just updated
from the trunk and rebuilt, switched to LXDE, started a fresh Emacs
session and carried out the recipe of my OP: the problem stills occurs,
just as before.

Steve Berman





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2011-12-05 20:27 bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments Stephen Berman
  2011-12-06  1:53 ` Chong Yidong
@ 2020-08-25 12:58 ` Lars Ingebrigtsen
  2020-08-25 18:02   ` Stephen Berman
  1 sibling, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-25 12:58 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 10224

Stephen Berman <stephen.berman@gmx.net> writes:

> 1. emacs -Q
> 2. Type `C-u' => in the echo area you see "C-u-"
> 3. Set the mark (e.g. by typing `C-SPC') and then type `M-w'.
> 4. Type `C-u' => in the echo area you see nothing, for this and
> subsequent prefix arguments.  `M-x' is, however, echoed.

I tried reproducing this in Emacs 28, and I was unable to -- M-w doesn't
stop C-u happening in the echo area.

Are you still seeing this problem in recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments
  2020-08-25 12:58 ` Lars Ingebrigtsen
@ 2020-08-25 18:02   ` Stephen Berman
  0 siblings, 0 replies; 11+ messages in thread
From: Stephen Berman @ 2020-08-25 18:02 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 10224-done

On Tue, 25 Aug 2020 14:58:17 +0200 Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> 1. emacs -Q
>> 2. Type `C-u' => in the echo area you see "C-u-"
>> 3. Set the mark (e.g. by typing `C-SPC') and then type `M-w'.
>> 4. Type `C-u' => in the echo area you see nothing, for this and
>> subsequent prefix arguments.  `M-x' is, however, echoed.
>
> I tried reproducing this in Emacs 28, and I was unable to -- M-w doesn't
> stop C-u happening in the echo area.
>
> Are you still seeing this problem in recent Emacs versions?

No, I can't reproduce it in Emacs 27 or 28, so closing.  Thanks for
taking a look.

Steve Berman





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

end of thread, other threads:[~2020-08-25 18:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-05 20:27 bug#10224: 24.0.92; M-w inhibits echoing of prefix arguments Stephen Berman
2011-12-06  1:53 ` Chong Yidong
2011-12-06  7:30   ` Stephen Berman
2011-12-06  8:17     ` Chong Yidong
2011-12-06  9:00       ` Stephen Berman
2011-12-09  5:52         ` Chong Yidong
2011-12-11 17:52           ` Stephen Berman
2012-02-26 10:00             ` Chong Yidong
2012-02-26 21:27               ` Stephen Berman
2020-08-25 12:58 ` Lars Ingebrigtsen
2020-08-25 18:02   ` Stephen Berman

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