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
Open sidebar
emacs
emacs
Commits
ba973f7a
Commit
ba973f7a
authored
Apr 26, 2001
by
Gerd Moellmann
Browse files
(save_excursion_restore): Don't use XBUFFER on
a non-buffer.
parent
b792ae36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/editfns.c
src/editfns.c
+5
-2
No files found.
src/ChangeLog
View file @
ba973f7a
2001-04-26 Gerd Moellmann <gerd@gnu.org>
* editfns.c (save_excursion_restore): Don't use XBUFFER on
a non-buffer.
2001-04-25 Gerd Moellmann <gerd@gnu.org>
* term.c (toggle_highlight): New function.
...
...
src/editfns.c
View file @
ba973f7a
...
...
@@ -848,8 +848,11 @@ save_excursion_restore (info)
tem
=
XCDR
(
info
);
if
(
visible_p
&&
!
EQ
(
tem
,
selected_window
)
/* This also verifies that the window is still live. */
&&
XBUFFER
(
XWINDOW
(
tem
)
->
buffer
)
==
current_buffer
)
&&
(
tem1
=
XWINDOW
(
tem
)
->
buffer
,
(
/* Window is live... */
BUFFERP
(
tem1
)
/* ...and it shows the current buffer. */
&&
XBUFFER
(
tem1
)
==
current_buffer
)))
Fset_window_point
(
tem
,
make_number
(
PT
));
UNGCPRO
;
...
...
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