help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to stop emacs from moving marks I set


From: Barry Margolin
Subject: Re: How to stop emacs from moving marks I set
Date: Thu, 30 Aug 2012 04:49:46 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <05c8263f-b9e7-4782-ac8a-4a47e64df00c@googlegroups.com>,
 larry.camilli@gmail.com wrote:

> I often like to set a mark (with C-@) and then move the cursor to another 
> location to, say, cut a section of text.
> 
> Under certain circumstances, when I use search (C-s) to move the cursor, and 
> then move the cursor a bit more (with, say arrow keys), emacs moves the mark 
> to where the search started ("Mark saved where search started").
> 
> 1. Is there a way to get emacs to leave the mark where I explicitly set it?

No. Use point-to-register to set a named mark; these will never be 
overridden.

> 
> 2. Under what circumstances does emacs decide to ignore the mark that I set 
> explicitly and set its own mark?

Many commands that move large distances set the mark to make it easy for 
you get get back to where you were.  There's no general answer, it's 
just a decision made by the designer of specific commands.  Examples are 
searching and beginning/end-of-buffer.

> 3. By what logic does this editor allow the user to set a mark and then 
> ignore that setting?

Emacs doesn't distinguish between the mark being set explicitly by the 
user and being set automatically by some command. So it doesn't know 
that some mark settings should not be overridden.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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