aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorBasil L. Contovounesios2018-05-01 13:48:30 +0100
committerNoam Postavsky2018-05-10 19:04:11 -0400
commiteabb6f6c3ee75dac1a7510e80bdd3c2fcfbbbcb5 (patch)
tree01437a50671e79777b46d11f2638ffa63790ef0b /lisp
parentae92f52c75383cf8f332db184d91f10fa8fb67cb (diff)
downloademacs-eabb6f6c3ee75dac1a7510e80bdd3c2fcfbbbcb5.tar.gz
emacs-eabb6f6c3ee75dac1a7510e80bdd3c2fcfbbbcb5.zip
Rewrite scroll-other-window-down in C (bug#30207)
* lisp/window.el (scroll-other-window-down): Move to src/window.c as Fscroll_other_window_down. * src/window.c (scroll_command): Generalise for arbitrary windows. (Fscroll_up, Fscroll_down): Use scroll_command with selected_window. (Fscroll_other_window, Fscroll_other_window_down): Rewrite in terms of scroll_command. (syms_of_window): Add Sscroll_other_window_down.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/window.el11
1 files changed, 0 insertions, 11 deletions
diff --git a/lisp/window.el b/lisp/window.el
index bc2008e1d9c..085e51646f8 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -8923,17 +8923,6 @@ This is different from `scroll-down-command' that scrolls a full screen."
8923(put 'scroll-down-line 'scroll-command t) 8923(put 'scroll-down-line 'scroll-command t)
8924 8924
8925 8925
8926(defun scroll-other-window-down (&optional lines)
8927 "Scroll the \"other window\" down.
8928For more details, see the documentation for `scroll-other-window'."
8929 (interactive "P")
8930 (scroll-other-window
8931 ;; Just invert the argument's meaning.
8932 ;; We can do that without knowing which window it will be.
8933 (if (eq lines '-) nil
8934 (if (null lines) '-
8935 (- (prefix-numeric-value lines))))))
8936
8937(defun beginning-of-buffer-other-window (arg) 8926(defun beginning-of-buffer-other-window (arg)
8938 "Move point to the beginning of the buffer in the other window. 8927 "Move point to the beginning of the buffer in the other window.
8939Leave mark at previous position. 8928Leave mark at previous position.