Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
b2adc409
Commit
b2adc409
authored
Apr 14, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fprimitive_undo): When inserting, always insert
after markers (the ordinary kind of insertion).
parent
9856e218
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
src/undo.c
src/undo.c
+6
-8
No files found.
src/undo.c
View file @
b2adc409
...
...
@@ -477,14 +477,12 @@ Return what remains of the list.")
error
(
"Changes to be undone are outside visible portion of buffer"
);
SET_PT
(
pos
);
/* Insert before markers so that if the mark is
currently on the boundary of this deletion, it
ends up on the other side of the now-undeleted
text from point. Since undo doesn't even keep
track of the mark, this isn't really necessary,
but it may lead to better behavior in certain
situations. */
Finsert_before_markers
(
1
,
&
membuf
);
/* Now that we record marker adjustments
(caused by deletion) for undo,
we should always insert after markers,
so that undoing the marker adjustments
put the markers back in the right place. */
Finsert
(
1
,
&
membuf
);
SET_PT
(
pos
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment