* extending mouse selection?
@ 2008-10-03 21:11 Neal Becker
2008-10-03 22:40 ` Peter Dyballa
2008-10-04 15:00 ` Nikolaj Schumacher
0 siblings, 2 replies; 3+ messages in thread
From: Neal Becker @ 2008-10-03 21:11 UTC (permalink / raw)
To: help-gnu-emacs
I noticed in 23.0.60.1 (cvs) that using the usual X convention:
1.Start mouse selection
2.Move to new position
3. Shift-mouse1 to extend
Doesn't work. Shift mouse1 brings up a menu. Should this work? Is there an alternative key binding?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: extending mouse selection?
2008-10-03 21:11 extending mouse selection? Neal Becker
@ 2008-10-03 22:40 ` Peter Dyballa
2008-10-04 15:00 ` Nikolaj Schumacher
1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2008-10-03 22:40 UTC (permalink / raw)
To: Neal Becker; +Cc: help-gnu-emacs
Am 03.10.2008 um 23:11 schrieb Neal Becker:
> Shift mouse1 brings up a menu.
Since last millennium this pops up the font selection menu ... Did
you use 19th century GNU Emacs until now?
--
Greetings
Pete
Our enemies are innovative and resourceful, and so are we. They never
stop thinking about new ways to harm our country and our people, and
neither do we.
– Georges W. Bush
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: extending mouse selection?
2008-10-03 21:11 extending mouse selection? Neal Becker
2008-10-03 22:40 ` Peter Dyballa
@ 2008-10-04 15:00 ` Nikolaj Schumacher
1 sibling, 0 replies; 3+ messages in thread
From: Nikolaj Schumacher @ 2008-10-04 15:00 UTC (permalink / raw)
To: Neal Becker; +Cc: help-gnu-emacs
Neal Becker <ndbecker2@gmail.com> wrote:
> Should this work?
Emacs doesn't necessarily follow such conventions.
One could argue, however, that it should work at least in cua-mode. You
could report it as a bug and see what happens.
> Is there an alternative key binding?
I don't know, but writing your own command is pretty straight-forward:
(defun mouse-extend-region (event)
(interactive "e")
(let ((pos (posn-point (event-start event))))
(set-mark (if mark-active
(if (< pos (region-beginning))
(region-end)
(region-beginning))
(point)))
(goto-char pos)))
(global-set-key (kbd "<S-mouse-1>") 'mouse-extend-region)
(global-set-key (kbd "<S-down-mouse-1>") nil)
regards,
Nikolaj Schumacher
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-04 15:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-03 21:11 extending mouse selection? Neal Becker
2008-10-03 22:40 ` Peter Dyballa
2008-10-04 15:00 ` Nikolaj Schumacher
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).