emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: paste when cursor is in the fringe


From: Klaus Zeitler
Subject: Re: paste when cursor is in the fringe
Date: Fri, 11 Aug 2006 12:05:09 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v)

>>>>> "Nick" == Nick Roberts <address@hidden> writes:
    Nick> 
    Nick> I think this feature would rarely be needed and it seems a bit

Agreed for people who rarely use the mouse for cut and paste (I've been using
emacs with fringes for quite some time and so far hadn't noticed it).
But I've seen quite a few users who do almost everything with the mouse.

    Nick> unintuitive as the fringe isn't part of the text area.  A different
    Nick> possibility is to bind mouse-1 to toggle-truncate-lines when a
    Nick> truncation/continuation fringe indicator is present.

Interesting idea, but I don't think mouse-1 would be a good choice.

    >> FYI I just bound mouse-2 on the fringe (using M-x local-set-key) to
    >> mouse-yank-at-click, and it seemed to work OK.

Nice, hadn't known that it was so easy. In emacs you learn something new
every day. Thanks for the hint. I've now defined in my .emacs.el:
(global-set-key [right-fringe mouse-2] 'mouse-yank-at-click)

    Nick> I imagine in this case it would work even if the cursor wasn't in the
    Nick> margin.

Yes, but this is consistent with mouse-1 (mouse-set-point), i.e. mouse-1
moves point to the end of the current line and mouse-2 pastes there.

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             address@hidden  |
 ------------------------------------------
---
Rap music is our punishment for neglecting music education.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]