From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: How to stop emacs from moving marks I set Date: Thu, 30 Aug 2012 04:49:46 -0400 Organization: A noiseless patient Spider Message-ID: References: <05c8263f-b9e7-4782-ac8a-4a47e64df00c@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1346316626 32290 80.91.229.3 (30 Aug 2012 08:50:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2012 08:50:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 30 10:50:28 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T70SJ-0005dk-Pm for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2012 10:50:27 +0200 Original-Received: from localhost ([::1]:60644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T70SH-0004sm-Jk for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2012 04:50:25 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.stack.nl!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Injection-Info: barmar.motzarella.org; posting-host="78fb7125a45724f15e21604c94a7d968"; logging-data="660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mmZ6zkf6pNjc8eNrihNTN" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:gqizXMMJxa8oTXLOuQ4LkJGNFLI= Original-Xref: usenet.stanford.edu gnu.emacs.help:194241 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86587 Archived-At: 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 ***