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
2f33f38a
Commit
2f33f38a
authored
Aug 19, 2000
by
Gerd Moellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(record_first_change, record_marker_adjustment): Don'use
XBUFFER on last_undo_buffer which might not be a buffer.
parent
136b4eda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/undo.c
src/undo.c
+4
-2
No files found.
src/undo.c
View file @
2f33f38a
...
...
@@ -167,7 +167,8 @@ record_marker_adjustment (marker, adjustment)
if
(
NILP
(
pending_boundary
))
pending_boundary
=
Fcons
(
Qnil
,
Qnil
);
if
(
current_buffer
!=
XBUFFER
(
last_undo_buffer
))
if
(
!
BUFFERP
(
last_undo_buffer
)
||
current_buffer
!=
XBUFFER
(
last_undo_buffer
))
Fundo_boundary
();
XSETBUFFER
(
last_undo_buffer
,
current_buffer
);
...
...
@@ -201,7 +202,8 @@ record_first_change ()
if
(
EQ
(
current_buffer
->
undo_list
,
Qt
))
return
;
if
(
current_buffer
!=
XBUFFER
(
last_undo_buffer
))
if
(
!
BUFFERP
(
last_undo_buffer
)
||
current_buffer
!=
XBUFFER
(
last_undo_buffer
))
Fundo_boundary
();
XSETBUFFER
(
last_undo_buffer
,
current_buffer
);
...
...
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