* Disable copy to kill-ring with mouse-drag
@ 2004-06-14 22:15 Sandip Chitale
2004-06-15 15:31 ` Kevin Rodgers
0 siblings, 1 reply; 4+ messages in thread
From: Sandip Chitale @ 2004-06-14 22:15 UTC (permalink / raw)
I really really really want to disable the copy-to-kill-ring behaviour
with mouse-drag.
I tried to comment out the code in mouse.el after finding out the call
sequence using edebug. Here is the backtrace:
kill-new(#("kill-new" 0 8 (lazy-lock t face
font-lock-function-name-face)))
copy-region-as-kill(65110 65102)
mouse-drag-region((down-mouse-1 (#<window 80 on simple.el> 65102 (62
. 232) 21804553)))
* call-interactively(mouse-drag-region)
I commented the code in mouse.el. Byte compiled it and somehow the
behaviour is still there.
Anyone has any ideas?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disable copy to kill-ring with mouse-drag
2004-06-14 22:15 Disable copy to kill-ring with mouse-drag Sandip Chitale
@ 2004-06-15 15:31 ` Kevin Rodgers
2004-06-15 22:39 ` Sandip Chitale
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Rodgers @ 2004-06-15 15:31 UTC (permalink / raw)
Sandip Chitale wrote:
> I really really really want to disable the copy-to-kill-ring behaviour
> with mouse-drag.
>
> I tried to comment out the code in mouse.el after finding out the call
> sequence using edebug. Here is the backtrace:
>
> kill-new(#("kill-new" 0 8 (lazy-lock t face
> font-lock-function-name-face)))
> copy-region-as-kill(65110 65102)
> mouse-drag-region((down-mouse-1 (#<window 80 on simple.el> 65102 (62
> . 232) 21804553)))
> * call-interactively(mouse-drag-region)
>
> I commented the code in mouse.el. Byte compiled it and somehow the
> behaviour is still there.
>
> Anyone has any ideas?
mouse.el[c] is dumped into the emacs executable (see loadup.el).
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disable copy to kill-ring with mouse-drag
2004-06-15 15:31 ` Kevin Rodgers
@ 2004-06-15 22:39 ` Sandip Chitale
2004-06-17 14:44 ` Kevin Rodgers
0 siblings, 1 reply; 4+ messages in thread
From: Sandip Chitale @ 2004-06-15 22:39 UTC (permalink / raw)
Kevin Rodgers <ihs_4664@yahoo.com> wrote in message news:<40CF1655.2070200@yahoo.com>...
> Sandip Chitale wrote:
> > I really really really want to disable the copy-to-kill-ring behaviour
> > with mouse-drag.
> >
> > I tried to comment out the code in mouse.el after finding out the call
> > sequence using edebug. Here is the backtrace:
> >
> > kill-new(#("kill-new" 0 8 (lazy-lock t face
> > font-lock-function-name-face)))
> > copy-region-as-kill(65110 65102)
> > mouse-drag-region((down-mouse-1 (#<window 80 on simple.el> 65102 (62
> > . 232) 21804553)))
> > * call-interactively(mouse-drag-region)
> >
> > I commented the code in mouse.el. Byte compiled it and somehow the
> > behaviour is still there.
> >
> > Anyone has any ideas?
>
> mouse.el[c] is dumped into the emacs executable (see loadup.el).
Thanks for the info Kevin. I did figure it out by looking at the
emacs.exe and then looking at the makefiles and some google searches.
Now I am reloading the my version of mouse.elc at the very top of my
.emacs. That does the trick. Is that the bet way? I was uanable to
dump the emacs on Windows XP.
Thansk anyway,
sandip
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disable copy to kill-ring with mouse-drag
2004-06-15 22:39 ` Sandip Chitale
@ 2004-06-17 14:44 ` Kevin Rodgers
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2004-06-17 14:44 UTC (permalink / raw)
Sandip Chitale wrote:
> Now I am reloading the my version of mouse.elc at the very top of my
> .emacs. That does the trick. Is that the bet way? I was uanable to
> dump the emacs on Windows XP.
I would put just your modified version of mouse-drag-region in its own
mouse-drag-region.el file, with (require 'mouse) at the top just to be
macro-safe; compile it into a .elc; and load it like this:
(eval-after-load "mouse" '(load "mouse-drag-region"))
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-17 14:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-14 22:15 Disable copy to kill-ring with mouse-drag Sandip Chitale
2004-06-15 15:31 ` Kevin Rodgers
2004-06-15 22:39 ` Sandip Chitale
2004-06-17 14:44 ` Kevin Rodgers
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).