comparison lisp/ediff-util.el @ 43220:69c91aaa067a

2002-02-10 Michael Kifer <kifer@cs.stonybrook.edu> * viper-util.el (viper-read-key-sequence): fixed so it'll read fast key sequences in emacs native mode (viper-events-to-keys): deleted * viper.el (describe-key, describe-key-briefly): get rid of viper-events-to-keys. * ediff-init.el (ediff-has-gutter-support): Steven Turnbull's patch. * ediff-wind.el (ediff-setup-control-frame): Use ediff-has-gutter-support. * ediff-util.el (ediff-dispose-of-variant-according-to-user): check if buff is alive. * ediff.el: typo in comment.
author Michael Kifer <kifer@cs.stonybrook.edu>
date Sun, 10 Feb 2002 06:46:12 +0000
parents 633233bf2bbf
children 1c34b0b56515
comparison
equal deleted inserted replaced
43219:1e589b2b35e9 43220:69c91aaa067a
2626 ;; Kill the variant buffer, according to user directives (ask, kill 2626 ;; Kill the variant buffer, according to user directives (ask, kill
2627 ;; unconditionaly, keep) 2627 ;; unconditionaly, keep)
2628 ;; BUFF is the buffer, BUFF-TYPE is either 'A, or 'B, 'C, 'Ancestor 2628 ;; BUFF is the buffer, BUFF-TYPE is either 'A, or 'B, 'C, 'Ancestor
2629 (defun ediff-dispose-of-variant-according-to-user (buff bufftype ask keep-variants) 2629 (defun ediff-dispose-of-variant-according-to-user (buff bufftype ask keep-variants)
2630 ;; if this is indirect buffer, kill it and substitute with direct buf 2630 ;; if this is indirect buffer, kill it and substitute with direct buf
2631 (if (ediff-with-current-buffer buff ediff-temp-indirect-buffer) 2631 (if (and (ediff-buffer-live-p buff)
2632 (ediff-with-current-buffer buff ediff-temp-indirect-buffer))
2632 (let ((wind (ediff-get-visible-buffer-window buff)) 2633 (let ((wind (ediff-get-visible-buffer-window buff))
2633 (base (buffer-base-buffer buff)) 2634 (base (buffer-base-buffer buff))
2634 (modified-p (buffer-modified-p buff))) 2635 (modified-p (buffer-modified-p buff)))
2635 (if (and (window-live-p wind) (ediff-buffer-live-p base)) 2636 (if (and (window-live-p wind) (ediff-buffer-live-p base))
2636 (set-window-buffer wind base)) 2637 (set-window-buffer wind base))