Mercurial > emacs
comparison lisp/ediff-mult.el @ 42288:3ce98f3e0608
2001-12-24 Michael Kifer <kifer@cs.sunysb.edu>
* viper-cmd.el (viper-change-state): Got rid of make-local-hook.
(viper-special-read-and-insert-char): Make C-m work right in the r
comand.
(viper-buffer-search-enable): Fixed format string.
* viper-ex.el (ex-token-alist): Use ex-set-visited-file-name
instead of viper-info-on-file.
(ex-set-visited-file-name): New function.
* viper.el (viper-emacs-state-mode-list): Added mail-mode.
* ediff-mult.el (ediff-meta-mark-equal-files): Added optional
action argument.
* ediff-init.el: Fixed some doc strings.
* ediff-util.el (ediff-after-quit-hook-internal): New variable.
Got rid of make-local-hook.
* ediff-wind.el (ediff-setup-control-frame): Got rid of
make-local-hook.
author | Michael Kifer <kifer@cs.stonybrook.edu> |
---|---|
date | Mon, 24 Dec 2001 05:50:31 +0000 |
parents | 3856a43ac2bb |
children | 633233bf2bbf |
comparison
equal
deleted
inserted
replaced
42287:c95e74201401 | 42288:3ce98f3e0608 |
---|---|
2108 (ediff-mark-session-for-hiding elt 'unmark) | 2108 (ediff-mark-session-for-hiding elt 'unmark) |
2109 (setq list (cdr list)))) | 2109 (setq list (cdr list)))) |
2110 (ediff-update-meta-buffer (current-buffer) 'must-redraw)) | 2110 (ediff-update-meta-buffer (current-buffer) 'must-redraw)) |
2111 | 2111 |
2112 | 2112 |
2113 (defun ediff-meta-mark-equal-files () | 2113 ;; ACTION is ?h, ?m, ?=: to mark for hiding, mark for operation, or simply |
2114 "Run though the session list and mark identical files. | 2114 ;; indicate which are equal files |
2115 This is used only for sessions that involve 2 or 3 files at the same time." | 2115 (defun ediff-meta-mark-equal-files (&optional action) |
2116 "Run through the session list and mark identical files. | |
2117 This is used only for sessions that involve 2 or 3 files at the same time. | |
2118 ACTION is an optional argument that can be ?h, ?m, ?=, to mark for hiding, mark | |
2119 for operation, or simply indicate which are equal files. If it is nil, then | |
2120 last-command-char is used to decide which action to take." | |
2116 (interactive) | 2121 (interactive) |
2122 (if (null action) | |
2123 (setq action last-command-char)) | |
2117 (let ((list (cdr ediff-meta-list)) | 2124 (let ((list (cdr ediff-meta-list)) |
2118 marked1 marked2 marked3 | 2125 marked1 marked2 marked3 |
2119 fileinfo1 fileinfo2 fileinfo3 elt) | 2126 fileinfo1 fileinfo2 fileinfo3 elt) |
2120 (message "Comparing files ...") | 2127 (message "Comparing files ...") |
2121 (while (setq elt (car list)) | 2128 (while (setq elt (car list)) |
2136 (or (ediff-mark-if-equal fileinfo1 fileinfo3) | 2143 (or (ediff-mark-if-equal fileinfo1 fileinfo3) |
2137 (setq marked2 nil)) | 2144 (setq marked2 nil)) |
2138 (or (ediff-mark-if-equal fileinfo2 fileinfo3) | 2145 (or (ediff-mark-if-equal fileinfo2 fileinfo3) |
2139 (setq marked3 nil)))) | 2146 (setq marked3 nil)))) |
2140 (if (and marked1 marked2 marked3) | 2147 (if (and marked1 marked2 marked3) |
2141 (cond ((eq last-command-char ?h) | 2148 (cond ((eq action ?h) |
2142 (ediff-mark-session-for-hiding elt 'mark)) | 2149 (ediff-mark-session-for-hiding elt 'mark)) |
2143 ((eq last-command-char ?m) | 2150 ((eq action ?m) |
2144 (ediff-mark-session-for-operation elt 'mark)) | 2151 (ediff-mark-session-for-operation elt 'mark)) |
2145 )) | 2152 )) |
2146 (setq list (cdr list))) | 2153 (setq list (cdr list))) |
2147 (message "Comparing files ... Done")) | 2154 (message "Comparing files ... Done")) |
2148 (ediff-update-meta-buffer (current-buffer) 'must-redraw)) | 2155 (ediff-update-meta-buffer (current-buffer) 'must-redraw)) |