summaryrefslogtreecommitdiff
path: root/lisp/hexl.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-12-08 17:57:10 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-08 17:57:10 +0100
commitef711b1556f83c9aa841fec9927672245408fc9c (patch)
treeff35f3cca9b7afa5f06101e77a1a50aa728724ef /lisp/hexl.el
parent3440bd0d53233f6345bfa4260444c01e352834ad (diff)
downloademacs-ef711b1556f83c9aa841fec9927672245408fc9c.tar.gz
Make hexl scrolling commands work more like the normal ones
* lisp/hexl.el (hexl-scroll-down): (hexl-scroll-up): Heed `next-screen-context-lines' (bug#7031).
Diffstat (limited to 'lisp/hexl.el')
-rw-r--r--lisp/hexl.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el
index fa514a54002..1fe9aad66de 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -724,7 +724,8 @@ With prefix arg N, puts point N bytes of the way from the true beginning."
(setq arg (if (null arg)
(- (window-height)
1
- (if ruler-mode 1 0))
+ (if ruler-mode 1 0)
+ next-screen-context-lines)
(prefix-numeric-value arg)))
(hexl-scroll-up (- arg)))
@@ -735,7 +736,8 @@ If there's no byte at the target address, move to the first or last line."
(setq arg (if (null arg)
(- (window-height)
1
- (if ruler-mode 1 0))
+ (if ruler-mode 1 0)
+ next-screen-context-lines)
(prefix-numeric-value arg)))
(let* ((movement (* arg 16))
(address (hexl-current-address))