* Re: cut, copy, & paste with scroll mouse [not found] <mailman.2809.1067522773.21628.help-gnu-emacs@gnu.org> @ 2003-10-30 19:44 ` Micah Cowan 2003-10-31 0:13 ` Ian Zimmerman 2003-10-31 13:34 ` Kevin Dziulko 0 siblings, 2 replies; 6+ messages in thread From: Micah Cowan @ 2003-10-30 19:44 UTC (permalink / raw) Kevin Dziulko <dziulko@klaatu.canisius.edu> writes: > Hello > > I have a Microsoft IntelliMouse with a scroll wheel in the middle. I am > using GNU Emacs 21.2.1 on MS Windows 2000. > > I have (global-unset-key [mouse-2]) in my .emacs so that wheel does only > scrolling and nothing else. (Otherwise it would paste when clicked) Personally, I leave it set and just scroll the weel if I want to scroll, and click it if I want to paste. > I am not familiar with X windows methods and operations. So, how do I cut, > copy, and paste using the mouse? Do I have to configure scroll mouse in a > certain way? Does it matter that I have pc-selection-mode turned on? Well, the mouse-based copy/paste is standard for X, but the other techniques are pretty much unique to Emacs. You obviously should still be able to place a region of text in the kill-buffer simply by selecting it with the mouse. You can do this either by clicking-and-dragging mouse-1, or you can click with mouse-1, and then click at the end of the region to be copied with mouse-2. Without using the mouse, you can also use C-SPC to set the "mark" to the current "point" (where the text cursor is), and then once you have "point" where you want it, you can use C-w to "cut" (in Emacs it's "kill") the region, or if you only want to "copy" it, use M-w. Pasting can be done without the mouse with C-y, which inserts the last-killed thing at point. There are other very interesting things about how the kill-ring works: I'm pretty sure they're covered in the Emacs Tutorial (type "C-h t"). HTH. -- Micah J. Cowan micah@cowan.name ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cut, copy, & paste with scroll mouse 2003-10-30 19:44 ` cut, copy, & paste with scroll mouse Micah Cowan @ 2003-10-31 0:13 ` Ian Zimmerman 2003-10-31 7:36 ` Micah Cowan 2003-10-31 13:34 ` Kevin Dziulko 1 sibling, 1 reply; 6+ messages in thread From: Ian Zimmerman @ 2003-10-31 0:13 UTC (permalink / raw) Kevin> I have (global-unset-key [mouse-2]) in my .emacs so that wheel Kevin> does only scrolling and nothing else. (Otherwise it would paste Kevin> when clicked) Micah> Personally, I leave it set and just scroll the weel if I want to Micah> scroll, and click it if I want to paste. Kevin> I am not familiar with X windows methods and operations. So, how Kevin> do I cut, copy, and paste using the mouse? Do I have to Kevin> configure scroll mouse in a certain way? Does it matter that I Kevin> have pc-selection-mode turned on? man xmodmap(1) for how you can change the meaning of the mouse buttons from the shell. Then bind a short script doing that to a key in your window manager configuration, and another one to change the mapping back. Then you'll be able to paste with the right button (for example) as long as you're in that mode. This is what I do on my laptop with only 2 buttons. -- "Rap music is our punishment for neglecting music education." An anonymous teacher ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cut, copy, & paste with scroll mouse 2003-10-31 0:13 ` Ian Zimmerman @ 2003-10-31 7:36 ` Micah Cowan 2003-10-31 19:56 ` Jason Rumney 0 siblings, 1 reply; 6+ messages in thread From: Micah Cowan @ 2003-10-31 7:36 UTC (permalink / raw) Ian Zimmerman <bayard@newsguy.com> writes: > Kevin> I have (global-unset-key [mouse-2]) in my .emacs so that wheel > Kevin> does only scrolling and nothing else. (Otherwise it would paste > Kevin> when clicked) > > Micah> Personally, I leave it set and just scroll the weel if I want to > Micah> scroll, and click it if I want to paste. > > Kevin> I am not familiar with X windows methods and operations. So, how > Kevin> do I cut, copy, and paste using the mouse? Do I have to > Kevin> configure scroll mouse in a certain way? Does it matter that I > Kevin> have pc-selection-mode turned on? > > man xmodmap(1) for how you can change the meaning of the mouse buttons > from the shell. Then bind a short script doing that to a key in your > window manager configuration, and another one to change the mapping > back. Then you'll be able to paste with the right button (for example) > as long as you're in that mode. This won't help the OP, who (IIRC) indicated a Windows environ. Cheers, -- Micah J. Cowan micah@cowan.name ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cut, copy, & paste with scroll mouse 2003-10-31 7:36 ` Micah Cowan @ 2003-10-31 19:56 ` Jason Rumney 0 siblings, 0 replies; 6+ messages in thread From: Jason Rumney @ 2003-10-31 19:56 UTC (permalink / raw) Micah Cowan <micah@cowan.name> writes: > Ian Zimmerman <bayard@newsguy.com> writes: > > > man xmodmap(1) for how you can change the meaning of the mouse buttons > > from the shell. Then bind a short script doing that to a key in your > > window manager configuration, and another one to change the mapping > > back. Then you'll be able to paste with the right button (for example) > > as long as you're in that mode. > > This won't help the OP, who (IIRC) indicated a Windows environ. Indeed. The Windows version of Emacs has w32-swap-mouse-buttons to cover the most common case of swapping buttons 2 and 3. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cut, copy, & paste with scroll mouse 2003-10-30 19:44 ` cut, copy, & paste with scroll mouse Micah Cowan 2003-10-31 0:13 ` Ian Zimmerman @ 2003-10-31 13:34 ` Kevin Dziulko 1 sibling, 0 replies; 6+ messages in thread From: Kevin Dziulko @ 2003-10-31 13:34 UTC (permalink / raw) On 30 Oct 2003, Micah Cowan wrote: > Kevin Dziulko <dziulko@klaatu.canisius.edu> writes: > > > Hello > > > > I have a Microsoft IntelliMouse with a scroll wheel in the middle. I am > > using GNU Emacs 21.2.1 on MS Windows 2000. > > > > I have (global-unset-key [mouse-2]) in my .emacs so that wheel does only > > scrolling and nothing else. (Otherwise it would paste when clicked) > > Personally, I leave it set and just scroll the weel if I want to > scroll, and click it if I want to paste. > > > I am not familiar with X windows methods and operations. So, how do I cut, > > copy, and paste using the mouse? Do I have to configure scroll mouse in a > > certain way? Does it matter that I have pc-selection-mode turned on? > > Well, the mouse-based copy/paste is standard for X, but the other > techniques are pretty much unique to Emacs. > > You obviously should still be able to place a region of text in > the kill-buffer simply by selecting it with the mouse. You can do > this either by clicking-and-dragging mouse-1, or you can click > with mouse-1, and then click at the end of the region to be > copied with mouse-2. Without using the mouse, you can also use > C-SPC to set the "mark" to the current "point" (where the text > cursor is), and then once you have "point" where you want it, you > can use C-w to "cut" (in Emacs it's "kill") the region, or if you > only want to "copy" it, use M-w. Pasting can be done without the > mouse with C-y, which inserts the last-killed thing at point. > There are other very interesting things about how the kill-ring > works: I'm pretty sure they're covered in the Emacs Tutorial > (type "C-h t"). > > HTH. > > Ideally, I would like the left button to be mouse-1, the right button to be mouse-3, simultanous left and right click to be mouse-2, and for the scroll wheel to be left undefined. So far the closest I've come is with (setq w32-num-mouse-buttons 2), but that still has scroll wheel and simultanous left and right click both set to mouse-2. Any ideas? Thanks! ^ permalink raw reply [flat|nested] 6+ messages in thread
* cut, copy, & paste with scroll mouse @ 2003-10-30 13:56 Kevin Dziulko 0 siblings, 0 replies; 6+ messages in thread From: Kevin Dziulko @ 2003-10-30 13:56 UTC (permalink / raw) Hello I have a Microsoft IntelliMouse with a scroll wheel in the middle. I am using GNU Emacs 21.2.1 on MS Windows 2000. I have (global-unset-key [mouse-2]) in my .emacs so that wheel does only scrolling and nothing else. (Otherwise it would paste when clicked) I am not familiar with X windows methods and operations. So, how do I cut, copy, and paste using the mouse? Do I have to configure scroll mouse in a certain way? Does it matter that I have pc-selection-mode turned on? Thanks!! Kevin ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-10-31 19:56 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <mailman.2809.1067522773.21628.help-gnu-emacs@gnu.org> 2003-10-30 19:44 ` cut, copy, & paste with scroll mouse Micah Cowan 2003-10-31 0:13 ` Ian Zimmerman 2003-10-31 7:36 ` Micah Cowan 2003-10-31 19:56 ` Jason Rumney 2003-10-31 13:34 ` Kevin Dziulko 2003-10-30 13:56 Kevin Dziulko
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).