* Recent compilation-mode misbehavior
@ 2003-09-09 14:24 David Abrahams
2003-09-09 18:20 ` Karl Eichwalder
2003-09-09 20:38 ` Marking with the mouse Stefan Monnier
0 siblings, 2 replies; 15+ messages in thread
From: David Abrahams @ 2003-09-09 14:24 UTC (permalink / raw)
Whenever I do (delete-process "compilation") emacs insists on parsing
all the error messages in the *compilation* buffer before it will
return control to me. This behavior is relatively new in the CVS.
Any hints?
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Recent compilation-mode misbehavior
2003-09-09 14:24 Recent compilation-mode misbehavior David Abrahams
@ 2003-09-09 18:20 ` Karl Eichwalder
2003-09-09 20:38 ` Marking with the mouse Stefan Monnier
1 sibling, 0 replies; 15+ messages in thread
From: Karl Eichwalder @ 2003-09-09 18:20 UTC (permalink / raw)
Cc: emacs-devel
David Abrahams <dave@boost-consulting.com> writes:
> Whenever I do (delete-process "compilation") emacs insists on parsing
> all the error messages in the *compilation* buffer before it will
> return control to me. This behavior is relatively new in the CVS.
Approx. 2 months ago I already encountered something like (maybe the bug
is even older).
--
| ,__o
http://www.gnu.franken.de/ke/ | _-\_<,
ke@suse.de (work) / ke@gnu.franken.de (home) | (*)/'(*)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Marking with the mouse
2003-09-09 14:24 Recent compilation-mode misbehavior David Abrahams
2003-09-09 18:20 ` Karl Eichwalder
@ 2003-09-09 20:38 ` Stefan Monnier
2003-09-10 0:14 ` Miles Bader
` (2 more replies)
1 sibling, 3 replies; 15+ messages in thread
From: Stefan Monnier @ 2003-09-09 20:38 UTC (permalink / raw)
Someone in gnu.emacs.help recently complained about the weird behavior of
the highlighting when you drag the mouse while pressing mouse-1:
the selected text is highlighted during the drag but the highlighting
disappears immediately after that. I was thinking that maybe it's a good
idea to use the transient transient-mark-mode in this case, so that marking
with the mouse always behaves like transient-mark-mode. This is based on
the idea that those who dislike transient-mark-mode probably don't often use
the mouse to select the region.
Any comment ?
Stefan
--- mouse.el.~1.243.~ Mon Sep 8 19:10:04 2003
+++ mouse.el Tue Sep 9 16:34:00 2003
@@ -1,6 +1,6 @@
;;; mouse.el --- window system-independent mouse support
-;; Copyright (C) 1993, 1994, 1995, 1999, 2000, 2001
+;; Copyright (C) 1993, 1994, 1995, 1999, 2000, 2001, 2003
;; Free Software Foundation, Inc.
;; Maintainer: FSF
@@ -622,6 +622,8 @@
(mouse-set-region-1)))
(defun mouse-set-region-1 ()
+ ;; Set transient-mark-mode for a little while.
+ (setq transient-mark-mode 'lambda)
(setq mouse-last-region-beg (region-beginning))
(setq mouse-last-region-end (region-end))
(setq mouse-last-region-tick (buffer-modified-tick)))
@@ -702,8 +704,8 @@
If the click is in the echo area, display the `*Messages*' buffer."
(interactive "e")
(let ((w (posn-window (event-start start-event))))
- (if (not (or (not (window-minibuffer-p w))
- (minibuffer-window-active-p w)))
+ (if (and (window-minibuffer-p w)
+ (not (minibuffer-window-active-p w)))
(save-excursion
(read-event)
(set-buffer "*Messages*")
@@ -858,8 +860,7 @@
(or end-point
(= (window-start start-window)
start-window-start)))
- (setq unread-command-events
- (cons event unread-command-events)))))
+ (push event unread-command-events))))
(delete-overlay mouse-drag-overlay)))))
\f
;; Commands to handle xterm-style multiple clicks.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-09 20:38 ` Marking with the mouse Stefan Monnier
@ 2003-09-10 0:14 ` Miles Bader
2003-09-11 13:16 ` Richard Stallman
2003-09-10 0:24 ` Glenn Morris
2003-09-11 13:15 ` Richard Stallman
2 siblings, 1 reply; 15+ messages in thread
From: Miles Bader @ 2003-09-10 0:14 UTC (permalink / raw)
Cc: emacs-devel
On Tue, Sep 09, 2003 at 04:38:56PM -0400, Stefan Monnier wrote:
> I was thinking that maybe it's a good idea to use the transient
> transient-mark-mode in this case, so that marking with the mouse always
> behaves like transient-mark-mode. This is based on the idea that those who
> dislike transient-mark-mode probably don't often use the mouse to select
> the region.
Looks like the right thing to me.
BTW, shouldn't the documentation for the `transient-mark-mode' variable
mention this special behavior when set to `lambda' (why `lambda', anyway?)?
I was a bit confused until I did some grepping.
-Miles
--
I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over. --Ian Wolff
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-09 20:38 ` Marking with the mouse Stefan Monnier
2003-09-10 0:14 ` Miles Bader
@ 2003-09-10 0:24 ` Glenn Morris
2003-09-10 19:35 ` Alex Schroeder
2003-09-11 13:16 ` Richard Stallman
2003-09-11 13:15 ` Richard Stallman
2 siblings, 2 replies; 15+ messages in thread
From: Glenn Morris @ 2003-09-10 0:24 UTC (permalink / raw)
Cc: emacs-devel
"Stefan Monnier" wrote:
> This is based on the idea that those who dislike transient-mark-mode
> probably don't often use the mouse to select the region.
FWIW, I dislike t-m-m, and I mark text with the mouse not
infrequently. I think this new behaviour would irritate me in the same
way t-m-m does. So the usual reaction: by all means change the
default, but I would like it if there could be an option to restore
the old behaviour.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-10 0:24 ` Glenn Morris
@ 2003-09-10 19:35 ` Alex Schroeder
2003-09-10 23:33 ` Kevin Rodgers
2003-09-11 16:31 ` Stefan Monnier
2003-09-11 13:16 ` Richard Stallman
1 sibling, 2 replies; 15+ messages in thread
From: Alex Schroeder @ 2003-09-10 19:35 UTC (permalink / raw)
Glenn Morris <gmorris+emacs@ast.cam.ac.uk> writes:
> FWIW, I dislike t-m-m, and I mark text with the mouse not
> infrequently. I think this new behaviour would irritate me in the same
> way t-m-m does. So the usual reaction: by all means change the
> default, but I would like it if there could be an option to restore
> the old behaviour.
I agree with Glenn. But then again, perhaps I did not understand the
problem. Here is what I often do.
1. transient-mark-mode is nil
2. I mark a chunk of text using one of the following methods with the
mouse from time to time:
a. double click on a word
b. drag with mouse-1
c. click with mouse-1 and click with mouse-3
3. I then either
a. delete (double-click mouse-3)
b. paste (mouse-2 elsewhere)
c. click somewhere again using mouse-1 to make sure that the
position is correct, and then paste (using mouse-2 or C-y).
In the first two cases, the highlighting stays, in the third case
highlighting disappears as click around or use movement commands and
to find the correct place where I want to paste.
During that time, I don't want the area I marked in phase 2 to remain
active as in transient-mark-mode, because I heard that it might affect
searches, replacements, etc. So the highlighting -- instead of
helping me -- is worrying me. If you are suggesting that
highlighting should persist in 3c, then it should be configurable (or
not be implemented in the first place).
If you know what I mean, look at how the internal editor of the
Midnight Commander (mcedit) works. F3 to start marking, F3 to end
marking. And then the region stays active until you do some some
clicks and I always forget what it is -- two more F3? -- and the
hilighting doesn't go away. Annoying.
Alex.
--
http://www.emacswiki.org/alex/
There is no substitute for experience.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-10 19:35 ` Alex Schroeder
@ 2003-09-10 23:33 ` Kevin Rodgers
2003-09-11 1:30 ` Miles Bader
2003-09-11 16:31 ` Stefan Monnier
1 sibling, 1 reply; 15+ messages in thread
From: Kevin Rodgers @ 2003-09-10 23:33 UTC (permalink / raw)
Alex Schroeder wrote:
> 1. transient-mark-mode is nil
>
> 2. I mark a chunk of text using one of the following methods with the
> mouse from time to time:
>
> a. double click on a word
> b. drag with mouse-1
> c. click with mouse-1 and click with mouse-3
>
> 3. I then either
>
> a. delete (double-click mouse-3)
> b. paste (mouse-2 elsewhere)
> c. click somewhere again using mouse-1 to make sure that the
> position is correct, and then paste (using mouse-2 or C-y).
>
> In the first two cases, the highlighting stays, in the third case
> highlighting disappears as click around or use movement commands and
> to find the correct place where I want to paste.
I'm the original complainer Stefan mentioned, and here's my complaint:
(1) and (2) as above. Type `C-h'. Highlighting disappears. Any keyboard
input -- even a prefix key! -- removes the highlighting. Why?
If you set track-mouse (like my follow-mode.el package does), even unbound
mouse-movement events now have the same effect.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-10 23:33 ` Kevin Rodgers
@ 2003-09-11 1:30 ` Miles Bader
0 siblings, 0 replies; 15+ messages in thread
From: Miles Bader @ 2003-09-11 1:30 UTC (permalink / raw)
Cc: emacs-devel
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> I'm the original complainer Stefan mentioned, and here's my complaint:
>
> (1) and (2) as above. Type `C-h'. Highlighting disappears. Any keyboard
> input -- even a prefix key! -- removes the highlighting. Why?
>
> If you set track-mouse (like my follow-mode.el package does), even unbound
> mouse-movement events now have the same effect.
I also think it's a problem that the various special features that use
transient-mark-mode -- such as query-replace only with in the region --
are not normally available via mouse-highlighting.
I suspect many people that hate transient-mark-mode because of its
interaction with `set-mark-command' would like using those features
(especially the region-specific replace, it's extremely handy).
In general it's confusing that there are two different sorts of
highlighting in emacs that look very similar but also differ in major
ways. Stefan's suggested change would lessen this difference in a way
that I believe wouldn't be overly burdensome to non-t-m-m people.
Yeah, Alex specifically said he doesn't like it, but it's only one line
of code to add a variable to allow disabling the linkage (but the
default should be to enable it).
-Miles
--
o The existentialist, not having a pillow, goes everywhere with the book by
Sullivan, _I am going to spit on your graves_.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-09 20:38 ` Marking with the mouse Stefan Monnier
2003-09-10 0:14 ` Miles Bader
2003-09-10 0:24 ` Glenn Morris
@ 2003-09-11 13:15 ` Richard Stallman
2003-09-11 20:41 ` Stefan Monnier
2 siblings, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2003-09-11 13:15 UTC (permalink / raw)
Cc: emacs-devel
Someone in gnu.emacs.help recently complained about the weird behavior of
the highlighting when you drag the mouse while pressing mouse-1:
the selected text is highlighted during the drag but the highlighting
disappears immediately after that. I was thinking that maybe it's a good
idea to use the transient transient-mark-mode in this case, so that marking
with the mouse always behaves like transient-mark-mode.
That is an interesting idea. Could you install it with a variable to
control it, so that people could try it out, and we could decide later
on whether to make this change the default?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-10 0:14 ` Miles Bader
@ 2003-09-11 13:16 ` Richard Stallman
0 siblings, 0 replies; 15+ messages in thread
From: Richard Stallman @ 2003-09-11 13:16 UTC (permalink / raw)
Cc: monnier, emacs-devel
BTW, shouldn't the documentation for the `transient-mark-mode' variable
mention this special behavior when set to `lambda' (why `lambda', anyway?)?
`lambda' is a symbol that we know exists and has no particular other
meaning. When we want to add a third state value to some boolean
variable, we often use `lambda'.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-10 0:24 ` Glenn Morris
2003-09-10 19:35 ` Alex Schroeder
@ 2003-09-11 13:16 ` Richard Stallman
2003-09-11 13:50 ` Glenn Morris
1 sibling, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2003-09-11 13:16 UTC (permalink / raw)
Cc: monnier, emacs-devel
FWIW, I dislike t-m-m, and I mark text with the mouse not
infrequently. I think this new behaviour would irritate me in the same
way t-m-m does.
Could you say more specifically just what aspect of the new behavior
does or would irritate you? Knowing this would help me understand the
issue.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-11 13:16 ` Richard Stallman
@ 2003-09-11 13:50 ` Glenn Morris
0 siblings, 0 replies; 15+ messages in thread
From: Glenn Morris @ 2003-09-11 13:50 UTC (permalink / raw)
Cc: monnier, emacs-devel
Richard Stallman wrote:
> Could you say more specifically just what aspect of the new behavior
> does or would irritate you? Knowing this would help me understand
> the issue.
I mark a region by holding down mouse-1 and dragging. The highlighting
that appears while I'm doing this is helpful for me to see the extent
of the region change as I move the mouse. Once I let go of mouse-1, I
have decided on the extent of the region, and I don't need (or want)
to see the highlighting any more. I almost always click mouse-1 at
this point, specifically to turn OFF the highlighting of the region.
As I understand it, the proposed change would disable that.
Once I'm done with selecting the region, I don't want the visual
feedback on its extent any more. IMO, it's just clutter; in the same
way that transient-mark-mode is just a distraction to me.
So a (not really serious) counter-suggestion: make the highlighting
vanish as soon as mouse-1 is released, so I don't have to do an extra
action to get rid of it. ;)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-10 19:35 ` Alex Schroeder
2003-09-10 23:33 ` Kevin Rodgers
@ 2003-09-11 16:31 ` Stefan Monnier
1 sibling, 0 replies; 15+ messages in thread
From: Stefan Monnier @ 2003-09-11 16:31 UTC (permalink / raw)
Cc: emacs-devel
[ I'll assume below that my patch was applied. ]
> I agree with Glenn. But then again, perhaps I did not understand the
> problem. Here is what I often do.
> 1. transient-mark-mode is nil
> 2. I mark a chunk of text using one of the following methods with the
> mouse from time to time:
> a. double click on a word
> b. drag with mouse-1
> c. click with mouse-1 and click with mouse-3
At this point, the region is highlighted and transient-mark-mode
is temporarily turned on.
> 3. I then either
> a. delete (double-click mouse-3)
> b. paste (mouse-2 elsewhere)
> c. click somewhere again using mouse-1 to make sure that the
> position is correct, and then paste (using mouse-2 or C-y).
All three should turn off transient-mark-mode, so after 3 the highlighting
should be gone. If that is not what you're seeing, it's a bug.
Stefan
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-11 13:15 ` Richard Stallman
@ 2003-09-11 20:41 ` Stefan Monnier
2003-09-12 21:06 ` Richard Stallman
0 siblings, 1 reply; 15+ messages in thread
From: Stefan Monnier @ 2003-09-11 20:41 UTC (permalink / raw)
Cc: emacs-devel
> Someone in gnu.emacs.help recently complained about the weird behavior
> of the highlighting when you drag the mouse while pressing mouse-1:
> the selected text is highlighted during the drag but the highlighting
> disappears immediately after that. I was thinking that maybe it's
> a good idea to use the transient transient-mark-mode in this case, so
> that marking with the mouse always behaves like transient-mark-mode.
> That is an interesting idea. Could you install it with a variable to
> control it, so that people could try it out, and we could decide later
> on whether to make this change the default?
I'm not sure this is worth an option.
Stefan
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Marking with the mouse
2003-09-11 20:41 ` Stefan Monnier
@ 2003-09-12 21:06 ` Richard Stallman
0 siblings, 0 replies; 15+ messages in thread
From: Richard Stallman @ 2003-09-12 21:06 UTC (permalink / raw)
Cc: emacs-devel
> Someone in gnu.emacs.help recently complained about the weird behavior
> of the highlighting when you drag the mouse while pressing mouse-1:
> the selected text is highlighted during the drag but the highlighting
> disappears immediately after that. I was thinking that maybe it's
> a good idea to use the transient transient-mark-mode in this case, so
> that marking with the mouse always behaves like transient-mark-mode.
> That is an interesting idea. Could you install it with a variable to
> control it, so that people could try it out, and we could decide later
> on whether to make this change the default?
I'm not sure this is worth an option.
It's worth having an option initially, so people can try it out
and see if they like it.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2003-09-12 21:06 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-09 14:24 Recent compilation-mode misbehavior David Abrahams
2003-09-09 18:20 ` Karl Eichwalder
2003-09-09 20:38 ` Marking with the mouse Stefan Monnier
2003-09-10 0:14 ` Miles Bader
2003-09-11 13:16 ` Richard Stallman
2003-09-10 0:24 ` Glenn Morris
2003-09-10 19:35 ` Alex Schroeder
2003-09-10 23:33 ` Kevin Rodgers
2003-09-11 1:30 ` Miles Bader
2003-09-11 16:31 ` Stefan Monnier
2003-09-11 13:16 ` Richard Stallman
2003-09-11 13:50 ` Glenn Morris
2003-09-11 13:15 ` Richard Stallman
2003-09-11 20:41 ` Stefan Monnier
2003-09-12 21:06 ` Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.