Thread View: gnu.epoch.misc
2 messages
2 total messages
Started by Maxim Markevitch
Wed, 13 Apr 1994 15:29
double/triple clicks
Author: Maxim Markevitch
Date: Wed, 13 Apr 1994 15:29
Date: Wed, 13 Apr 1994 15:29
50 lines
2285 bytes
2285 bytes
nobody writes to gnu.epoch.misc anymore...
in the version of motion.el from gerdh@ims.com (Gerd Hoeren) on 9 Jul 1993 which supported selection
of word/line by multiple clicks, a point and a mark were not put around the selected region,
so one couldn't for example delete that selected piece. adding (exchange-point-and-mark) to these 2
functions from the package fixes that:
(defun mouse-select-word (arg)
"Select the word around the mouse cursor."
(let (b)
(mouse::set-point arg)
(setq mouse::downp t)
(forward-char 1)
(forward-word -1)
(setq b (point))
(forward-word 1)
(mouse-set-drag-position b (point) (current-buffer))
(end-mouse-drag arg)
;; Leave cursor at start of word.
;(forward-word -1) ;; MM: instead of this, do exchange-point-and-mark:
(exchange-point-and-mark)
(what-cursor-coordinates)))
(defun mouse-select-line (arg)
"Select the entire line around the mouse cursor."
(let (b)
(mouse::set-point arg)
(setq mouse::downp t)
(beginning-of-line 1)
(setq b (point))
(beginning-of-line 2)
(if (and mouse-show-position (not (eq (nth 2 arg) (minibuffer-window))))
(message "Marked 1 line (%d characters)" (- (point) b)))
(mouse-set-drag-position b (point) (current-buffer))
(end-mouse-drag arg)
;; Leave cursor at start of line.
;(forward-line -1) ;; MM: instead of this, do exchange-point-and-mark:
(exchange-point-and-mark)
))
(I'm sorry if it's something which has already been fixed.)
--
Maxim Markevitch
maxim@head-cfa.harvard.edu
Re: double/triple clicks
Author: Hamish Macdonald
Date: Thu, 14 Apr 1994 00:37
Date: Thu, 14 Apr 1994 00:37
8 lines
1011 bytes
1011 bytes
>>>>> On 13 Apr 1994 10:29:17 EST, >>>>> In message <Co7F0u.4q9@cfanews.harvard.edu>, >>>>> maxim@head-cfa.harvard.edu (Maxim Markevitch) wrote: Maxim> nobody writes to gnu.epoch.misc anymore... I'd imagine that a large proportion of the epoch users have moved to either Lucid Emacs 19 or FSF Emacs 19 by now.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads