Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f28f04cc
Commit
f28f04cc
authored
Oct 03, 1992
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fprimitive_undo): When undoing an insert, move point and then delete.
parent
45288343
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/undo.c
src/undo.c
+3
-1
No files found.
src/undo.c
View file @
f28f04cc
...
...
@@ -306,8 +306,10 @@ Return what remains of the list.")
if
(
XINT
(
car
)
<
BEGV
||
XINT
(
cdr
)
>
ZV
)
error
(
"Changes to be undone are outside visible portion of buffer"
);
Fdelete_region
(
car
,
cdr
);
/* Set point first thing, so that undoing this undo
does not send point back to where it is now. */
Fgoto_char
(
car
);
Fdelete_region
(
car
,
cdr
);
}
else
if
(
XTYPE
(
car
)
==
Lisp_String
&&
XTYPE
(
cdr
)
==
Lisp_Int
)
{
...
...
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