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
e90c4fe6
Commit
e90c4fe6
authored
Jan 30, 1999
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fset_window_point): If WINDOW is selected but the
current buffer is not its buffer, don't use Fgoto_char.
parent
aa7b87b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/window.c
src/window.c
+2
-1
No files found.
src/window.c
View file @
e90c4fe6
...
...
@@ -620,7 +620,8 @@ DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0,
register
struct
window
*
w
=
decode_window
(
window
);
CHECK_NUMBER_COERCE_MARKER
(
pos
,
1
);
if
(
w
==
XWINDOW
(
selected_window
))
if
(
w
==
XWINDOW
(
selected_window
)
&&
XBUFFER
(
w
->
buffer
)
==
current_buffer
)
Fgoto_char
(
pos
);
else
set_marker_restricted
(
w
->
pointm
,
pos
,
w
->
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