Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

emacs set marker behavior

13 views
Skip to first unread message

Yuan Luo

unread,
May 1, 2012, 9:06:03 AM5/1/12
to help-gnu-emacs
Hi,
I am annoyed by the behavior that out of a sudden emacs set marker on current cursor point and if I go to the end of line or go to the end of buffer, it selects the regions and by the time I type, that region is cut & gone! 

I want to change its behavior so unless I press Ctrl+@, emacs never sets marker itself, how do I do that?

Best,
Yuan

Bastien

unread,
May 1, 2012, 9:14:18 AM5/1/12
to Yuan Luo, help-gnu-emacs
(setq delete-active-region nil) so that it doesn't delete the active
region.

--
Bastien

XeCycle

unread,
May 1, 2012, 9:18:43 AM5/1/12
to help-gn...@gnu.org
Yuan Luo <yuan.hy...@gmail.com> writes:

> Hi,
>
> I am annoyed by the behavior that out of a sudden emacs set
> marker on current cursor point and if I go to the end of line or
> go to the end of buffer, it selects the regions and by the time I
> type, that region is cut & gone! 
>
> I want to change its behavior so unless I press Ctrl+@, emacs
> never sets marker itself, how do I do that?

These markers are useful, but you have probably configured
something else so that these markers become active. Figure out
what's that, and disable that.

--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591

B. T. Raven

unread,
May 19, 2012, 3:44:58 PM5/19/12
to
Die Tue May 01 2012 08:06:03 GMT-0500 (Central Daylight Time) Yuan Luo
<yuan.hy...@gmail.com> scripsit:
You mean mark instead of marker, right?
Is this using mouse in console? See gpm-mouse-mode. Also
delete-selection-mode.
Then, you could substitute the "nomark" flavors of many functions for
their "mark" varieties where appropriate.

0 new messages