bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

weirdness with mouse-sel-mode, mouse-save-then-kill, kill-ring


From: Stephen Berman
Subject: weirdness with mouse-sel-mode, mouse-save-then-kill, kill-ring
Date: 07 Jun 2002 16:00:10 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-19 on steve
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  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: de_DE
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Mouse-sel-mode seems to interact weirdly with mouse-3
(mouse-save-then-kill) and the kill-ring:
 
(i) Start emacs -q --no-site-file and open a nonempty writeable file
(or just use the text in *scratch*).  Carry out some sanity checks:
Select a region with the mouse: as described in the manual, a region
is selected (and highlighted) and put in the kill-ring by first
clicking somewhere on the text with mouse-1 and then clicking
elsewhere on the text with mouse-3.  The region is killed by clicking
mouse-3 again at either end; you can also simultaneously select and
kill a region by clicking mouse-1 and then double-clicking mouse-3.
The selected/killed text can be yanked to another position in the
window, to another window in the same frame, to another frame, or to
the window of another desktop application.  So far so good.

(ii) Now enable mouse-sel-mode by typing `M-x mouse-sel-mode'.  Now
selecting a region works as above, but killing it is possible only by
double-clicking mouse-3, not by clicking it a second time after having
selected the region.  Yanking works as above.  However, selecting the
region by clicking with mouse-1 and mouse-3 does not put it in the
kill-ring, though the region is nevertheless yankable everywhere.

(iii) Now disable mouse-sel-mode by again typing `M-x mouse-sel-mode'.

(a) Now clicking first with mouse-1 and then with mouse-3 fails to
select a region: the clicked area of text is neither highlighted, nor
can it be killed either by clicking mouse-3 again or by
double-clicking it, nor can it be yanked.  Instead, and unlike before
enabling mouse-sel-mode, a region can now be selected (and
highlighted) by clicking only mouse-3 at both ends, and killed by then
double-clicking mouse-3 (but not by clicking it just once again).
However, a region selected in this way but not killed is not inserted
into the kill ring and, unlike the behavior described in (ii) above,
cannot be yanked within the current Emacs, though it can be pasted to
another desktop application (including another Emacs session).

(b) If now mouse-1 is clicked and then held and dragged, a region of
text is highlighted and put into the kill ring, but it is still not
killable with mouse-3 (whether single-clicked again or
double-clicked); however, it can be killed with `C-w' and also yanked
-- but only within the same Emacs session, not to another desktop
application (including another Emacs session).

(c) If now transient-mark-mode is enabled (disabled by default in
Emacs 21), then a region is again selected by clicking with mouse-1
and mouse-3, and killing and yanking it now functions as in (a) above.


Recent input:
<next> <next> <next> <next> <end> M H q <up> <up> <up> 
M-g SPC 1 2 <return> <down> <down> <down> <down> <down> 
SPC ^ <help-echo> <down> SPC <down> <down> <down> <down> 
<down> <down> <down> <up> SPC q <home> s C-h i m e 
m <tab> <return> m m o u <tab> <tab> C <tab> <return> 
<next> <next> <next> <prior> <prior> <prior> <next> 
<next> <f2> <f11> * C-g <f1> <prior> <prior> <down-mouse-1> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <next> 
<next> <next> <prior> <prior> <prior> M-x r e p o r 
t <tab> <return>

Recent messages:
Saving /home/steve/.newsrc.eld...done
Loading info...done
Composing main Info directory...
Mark set
Composing main Info directory...done
Making completion list...
Loading view...done
Quit
Wrote /home/steve/.w3/history
Loading emacsbug...done



reply via email to

[Prev in Thread] Current Thread [Next in Thread]