comparison lisp/ediff-mult.el @ 33019:6306740f6938

2000-10-29 Michael Kifer <kifer@cs.sunysb.edu> * viper-cmd.el (viper-preserve-cursor-color): new test that avoids rewrawing the screen when changing cursor color. (viper-insert-state-pre-command-sentinel, viper-replace-state-pre-command-sentinel, viper-replace-state-post-command-sentinel): use viper-preserve-cursor-color. Many functions changed to use viper= instead of = when comparing characters. * viper-util.el (viper-memq-char,viper=): new functions for working with characters. (viper-change-cursor-color): fixed buglet. Many functions changed to use viper= instead of = when comparing characters. * viper.el (viper-insert-state-mode-list): added eshell. * ediff-init.el (ediff-before-setup-hook): new hook. Several typos fixed in various docstrings. * ediff-merg.el (ediff-show-clashes-only): docstring typo fixed. * ediff-nult.el (ediff-before-session-group-setup-hooks): new hook. (ediff-show-meta-buffer): run ediff-before-session-group-setup-hooks. * ediff-util.el (ediff-setup): run ediff-before-setup-hook. (ediff-other-buffer): use selected buffers if in Buffer-menu buffer. (ediff-get-selected-buffers): new function. * ediff-vers.el (ediff-vc-internal,ediff-rcs-internal, ediff-vc-merge-internal,ediff-rcs-merge-internal): use save-window-excursion. * ediff-wind.el (ediff-skip-unsuitable-frames): more robust termination check in while loop. * ediff.el (ediff-get-default-file-name): better defaults when in dired buffer. (ediff-files,ediff-merge-files,ediff-files3, ediff-merge-files-with-ancestor): use ediff-get-default-file-name.
author Michael Kifer <kifer@cs.stonybrook.edu>
date Sun, 29 Oct 2000 04:56:45 +0000
parents 641e43bad886
children 10482dd382e7
comparison
equal deleted inserted replaced
33018:d9abb0441663 33019:6306740f6938
185 :group 'ediff-mult) 185 :group 'ediff-mult)
186 (defcustom ediff-registry-setup-hook nil 186 (defcustom ediff-registry-setup-hook nil
187 "*Hooks run just after the registry control panel is set up." 187 "*Hooks run just after the registry control panel is set up."
188 :type 'hook 188 :type 'hook
189 :group 'ediff-mult) 189 :group 'ediff-mult)
190 (defcustom ediff-session-group-setup-hook nil 190
191 (defcustom ediff-before-session-group-setup-hooks nil
192 "*Hooks to run before Ediff arranges the window for group-level operations.
193 It is used by commands such as ediff-directories.
194 This hook can be used to save the previous window config, which can be restored
195 on ediff-quit, ediff-suspend, or ediff-quit-session-group-hook."
196 :type 'hook
197 :group 'ediff-hook)
198 (defcustom ediff-after-session-group-setup-hook nil
191 "*Hooks run just after a meta-buffer controlling a session group, such as 199 "*Hooks run just after a meta-buffer controlling a session group, such as
192 ediff-directories, is run." 200 ediff-directories, is run."
193 :type 'hook 201 :type 'hook
194 :group 'ediff-mult) 202 :group 'ediff-mult)
195 (defcustom ediff-quit-session-group-hook nil 203 (defcustom ediff-quit-session-group-hook nil
704 (define-key ediff-meta-buffer-map "^" 'ediff-up-meta-hierarchy) 712 (define-key ediff-meta-buffer-map "^" 'ediff-up-meta-hierarchy)
705 (define-key ediff-meta-buffer-map "D" 'ediff-show-dir-diffs))) 713 (define-key ediff-meta-buffer-map "D" 'ediff-show-dir-diffs)))
706 714
707 (if (eq ediff-metajob-name 'ediff-registry) 715 (if (eq ediff-metajob-name 'ediff-registry)
708 (run-hooks 'ediff-registry-setup-hook) 716 (run-hooks 'ediff-registry-setup-hook)
709 (run-hooks 'ediff-session-group-setup-hook)) 717 (run-hooks 'ediff-after-session-group-setup-hook))
710 ) ; eval in meta-buffer 718 ) ; eval in meta-buffer
711 meta-buffer)) 719 meta-buffer))
712 720
713 ;; Insert the activity marker for session SESSION in the meta buffer at point 721 ;; Insert the activity marker for session SESSION in the meta buffer at point
714 ;; The activity marker is either SPC (untouched session), or + (active session, 722 ;; The activity marker is either SPC (untouched session), or + (active session,
1717 1725
1718 ;; If session number is t, means don't update meta buffer 1726 ;; If session number is t, means don't update meta buffer
1719 (defun ediff-show-meta-buffer (&optional meta-buf session-number) 1727 (defun ediff-show-meta-buffer (&optional meta-buf session-number)
1720 "Show the session group buffer." 1728 "Show the session group buffer."
1721 (interactive) 1729 (interactive)
1730 (run-hooks 'ediff-before-directory-setup-hooks)
1722 (let (wind frame silent) 1731 (let (wind frame silent)
1723 (if meta-buf (setq silent t)) 1732 (if meta-buf (setq silent t))
1724 1733
1725 (setq meta-buf (or meta-buf ediff-meta-buffer)) 1734 (setq meta-buf (or meta-buf ediff-meta-buffer))
1726 (cond ((not (bufferp meta-buf)) 1735 (cond ((not (bufferp meta-buf))