Article View: gnu.emacs.bug
Article #87774indent-rigidly can unexpectedly move markers
From: boris
Date: Wed, 31 Aug 1994 15:48
Date: Wed, 31 Aug 1994 15:48
19 lines
1500 bytes
1500 bytes
In GNU Emacs 19.25.94.2 (sparc-sun-sunos4shr, X toolkit) of Mon Aug 22 1994 on moose.cs.rochester.edu
In a -q emacs, make a buffer containing some spaces and then some text:
foo
Set a marker between the last space and the f.
C-u 0 M-x indent-rigidly
The marker has unexpectedly moved to the beginning of the line,
although nothing else has changed.
This happens with any argument for indent-rigidly, and appears to be
because indent-rigidly deletes any indentation and then reinserts it
with indent-to, and indent-to apparently does the equivalent of an
insert-before-markers (though that is undocumented).
It is a problem because I specifically wanted a marker to keep track
of the text part of the line, knowing that it might be moved by the
indent.
Bng
Technical Details
Message-ID:
<199408261849.OAA08964@cheetah.cs.rochester.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!yeshua.marcam.com!usc!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.rochester.edu!borisShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,4e0a4b6640d56460,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-08-31 09:04:32 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!yeshua.marcam.com!usc!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.rochester.edu!boris From: boris@cs.rochester.edu Newsgroups: gnu.emacs.bug Subject: indent-rigidly can unexpectedly move markers Date: 31 Aug 1994 11:48:14 -0400 Organization: GNUs Not Usenet Lines: 19 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <199408261849.OAA08964@cheetah.cs.rochester.edu>