emacs-devel
[Top][All Lists]
Advanced

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

Re: select-active-regions, Emacs not X


From: Andreas Röhler
Subject: Re: select-active-regions, Emacs not X
Date: Tue, 31 Aug 2010 07:54:02 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6

Is transient-mark-mode on? Is the region highlighted after moving down?

Here the region, if transient-mark-mode is on, immediatly goes into the clipboard.
And is yanked back by default.

Maybe let's wait if someone else complains this.



Am 30.08.2010 21:27, schrieb Jan Djärv:
I still get foo.

    Jan D.


Andreas Röhler skrev 2010-08-30 20.44:
Am 30.08.2010 19:35, schrieb Chong Yidong:
Andreas Röhler<address@hidden> writes:

Doesn't meet my observations.

In the original case cursor motion followed an exchange-point-and-mark
over a string found. Afterwards, moving the cursor, any active region
went into the clipboard. Next yank got it from there. Whilst the
string found and copied has been expected, but was not returned.

Ie got some arbitrary content resp. to the move away from the match-point.
This description is too vague. Could you please provide a precise,
step-by-step recipe, starting from `emacs -Q'?

The big difference IMHO is the cursor-motion-region-setting in emacs.
In X, regions are expressingly marked, while in Emacs it just the
difference beween point and any previously set mark.
select-active-regions only takes effect when Transient Mark mode is
enabled, which means the region is explicitly marked. Again, if this is
not what you see, please provide a step-by-step recipe, starting from
`emacs -Q', to demonstrate the problem.



emacs -Q

with empty buffer, insert

foo
(kill-new (buffer-substring-no-properties 1 4)) asdf

eval before "asdf"
push-mark there --thats done in my programm exchange-point-and-mark--
move cursor down - region gets highlighted

yank

==> asdf

IMHO pure cursor move should not send the region to clipboard per default.
OTOH that seems a useful feature for mouse-regions

Thanks

Andreas







reply via email to

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