]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve prefix arg support in 'ediff-scroll-horizontally'
authorKyle Hubert <khubert@gmail.com>
Fri, 31 Jan 2020 14:29:43 +0000 (09:29 -0500)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Feb 2020 10:00:55 +0000 (12:00 +0200)
* lisp/vc/ediff-util.el (ediff-scroll-horizontally): Use
'current-prefix-arg' to pass the value of prefix argument to
scrolling commands.  (Bug#39353)

Copyright-paperwork-exempt: yes

lisp/vc/ediff-util.el

index a8af9ba37a2b6b69d1295a7c38b348c0a3981fa6..5f8a4a86b156d9a394face14ecf105048eaf8179 100644 (file)
@@ -1540,10 +1540,10 @@ the width of the A/B/C windows."
    ;; hscrolling.
    (if (= last-command-event ?<)
        (lambda (arg)
-        (let ((prefix-arg arg))
+        (let ((current-prefix-arg arg))
           (call-interactively #'scroll-left)))
      (lambda (arg)
-       (let ((prefix-arg arg))
+       (let ((current-prefix-arg arg))
         (call-interactively #'scroll-right))))
    ;; calculate argument to scroll-left/right
    ;; if there is an explicit argument