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
6887bce5
Commit
6887bce5
authored
Jan 29, 2005
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
parent
2da637a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/undo.c
src/undo.c
+14
-2
No files found.
src/undo.c
View file @
6887bce5
...
@@ -519,7 +519,7 @@ Return what remains of the list. */)
...
@@ -519,7 +519,7 @@ Return what remains of the list. */)
}
}
else
if
(
EQ
(
car
,
Qnil
))
else
if
(
EQ
(
car
,
Qnil
))
{
{
/* Element (nil
prop val beg . end
) is property change. */
/* Element (nil
PROP VAL BEG . END
) is property change. */
Lisp_Object
beg
,
end
,
prop
,
val
;
Lisp_Object
beg
,
end
,
prop
,
val
;
prop
=
Fcar
(
cdr
);
prop
=
Fcar
(
cdr
);
...
@@ -543,6 +543,18 @@ Return what remains of the list. */)
...
@@ -543,6 +543,18 @@ Return what remains of the list. */)
Fgoto_char
(
car
);
Fgoto_char
(
car
);
Fdelete_region
(
car
,
cdr
);
Fdelete_region
(
car
,
cdr
);
}
}
else
if
(
SYMBOLP
(
car
))
{
Lisp_Object
oldlist
=
current_buffer
->
undo_list
;
/* Element (FUNNAME . ARGS) means call FUNNAME to undo. */
apply1
(
car
,
cdr
);
/* Make sure this produces at least one undo entry,
so the test in `undo' for continuing an undo series
will work right. */
if
(
EQ
(
oldlist
,
current_buffer
->
undo_list
))
current_buffer
->
undo_list
=
Fcons
(
list2
(
Qcdr
,
Qnil
),
current_buffer
->
undo_list
);
}
else
if
(
STRINGP
(
car
)
&&
INTEGERP
(
cdr
))
else
if
(
STRINGP
(
car
)
&&
INTEGERP
(
cdr
))
{
{
/* Element (STRING . POS) means STRING was deleted. */
/* Element (STRING . POS) means STRING was deleted. */
...
@@ -589,7 +601,7 @@ Return what remains of the list. */)
...
@@ -589,7 +601,7 @@ Return what remains of the list. */)
UNGCPRO
;
UNGCPRO
;
return
unbind_to
(
count
,
list
);
return
unbind_to
(
count
,
list
);
}
}
void
void
syms_of_undo
()
syms_of_undo
()
{
{
...
...
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