comparison lisp/ediff-util.el @ 36456:1474cd438ac1

(ediff-scroll-horizontally): Arrange for scroll-left and scroll-right being called interactively so that they set the window's min_hscroll.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 01 Mar 2001 14:52:03 +0000
parents 5d6b76d28b83
children f6386773ce30
comparison
equal deleted inserted replaced
36455:0f5618d75b4a 36456:1474cd438ac1
1 ;;; ediff-util.el --- the core commands and utilities of ediff 1 ;;; ediff-util.el --- the core commands and utilities of ediff
2 2
3 ;; Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. 3 ;; Copyright (C) 1994, 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
4 4
5 ;; Author: Michael Kifer <kifer@cs.sunysb.edu> 5 ;; Author: Michael Kifer <kifer@cs.sunysb.edu>
6 6
7 ;; This file is part of GNU Emacs. 7 ;; This file is part of GNU Emacs.
8 8
1514 (ediff-buffer-live-p ediff-buffer-C)) 1514 (ediff-buffer-live-p ediff-buffer-C))
1515 )) 1515 ))
1516 (error ediff-KILLED-VITAL-BUFFER)) 1516 (error ediff-KILLED-VITAL-BUFFER))
1517 1517
1518 (ediff-operate-on-windows 1518 (ediff-operate-on-windows
1519 ;; Arrange for scroll-left and scroll-right being called
1520 ;; interactively so that they set the window's min_hscroll.
1521 ;; Otherwise, automatic hscrolling will undo the effect of
1522 ;; hscrolling.
1519 (if (= last-command-char ?<) 1523 (if (= last-command-char ?<)
1520 'scroll-left 1524 (lambda (arg)
1521 'scroll-right) 1525 (let ((prefix-arg arg))
1526 (call-interactively 'scroll-left)))
1527 (lambda (arg)
1528 (let ((prefix-arg arg))
1529 (call-interactively 'scroll-right))))
1522 ;; calculate argument to scroll-left/right 1530 ;; calculate argument to scroll-left/right
1523 ;; if there is an explicit argument 1531 ;; if there is an explicit argument
1524 (if (and arg (not (equal arg '-))) 1532 (if (and arg (not (equal arg '-)))
1525 ;; use it 1533 ;; use it
1526 (prefix-numeric-value arg) 1534 (prefix-numeric-value arg)