diff options
| -rw-r--r-- | lisp/calc/calc-ext.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el index 8474f61fc0e..e26906bd608 100644 --- a/lisp/calc/calc-ext.el +++ b/lisp/calc/calc-ext.el | |||
| @@ -1303,14 +1303,16 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1303 | (select-window swin))))))) | 1303 | (select-window swin))))))) |
| 1304 | (message "(Calculator reset)")) | 1304 | (message "(Calculator reset)")) |
| 1305 | 1305 | ||
| 1306 | 1306 | ;; What a pain; scroll-left behaves differently when called non-interactively. | |
| 1307 | (defun calc-scroll-left (n) | 1307 | (defun calc-scroll-left (n) |
| 1308 | (interactive "P") | 1308 | (interactive "P") |
| 1309 | (scroll-left (or n (/ (window-width) 2)))) | 1309 | (setq prefix-arg (or n (/ (window-width) 2))) |
| 1310 | (call-interactively #'scroll-left)) | ||
| 1310 | 1311 | ||
| 1311 | (defun calc-scroll-right (n) | 1312 | (defun calc-scroll-right (n) |
| 1312 | (interactive "P") | 1313 | (interactive "P") |
| 1313 | (scroll-right (or n (/ (window-width) 2)))) | 1314 | (setq prefix-arg (or n (/ (window-width) 2))) |
| 1315 | (call-interactively #'scroll-right)) | ||
| 1314 | 1316 | ||
| 1315 | (defun calc-scroll-up (n) | 1317 | (defun calc-scroll-up (n) |
| 1316 | (interactive "P") | 1318 | (interactive "P") |