diff options
| author | Michael Kifer | 2000-06-05 00:07:02 +0000 |
|---|---|---|
| committer | Michael Kifer | 2000-06-05 00:07:02 +0000 |
| commit | 560ef11a16d6d25446e62753fe6e89d4e54f47fd (patch) | |
| tree | 36b6c909e9185968a787387b3d5263a2113ebdf1 | |
| parent | be22f4cc631ce75fe7d8459fd294d5279bdacadd (diff) | |
| download | emacs-560ef11a16d6d25446e62753fe6e89d4e54f47fd.tar.gz emacs-560ef11a16d6d25446e62753fe6e89d4e54f47fd.zip | |
2000-06-05 Michael Kifer <kifer@cs.sunysb.edu>
* ediff-init.el (ediff-has-face-support-p): make it paint faces on
tty's.
* ediff-diff.el (ediff-exec-process): use --binary for fine
differences whenever apropriate.
* viper-cmd.el (viper-smart-suffix-list): rearranged list members.
* viper.el (find-file,find-file-other-window): get viper to do
wildcards.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/ediff-diff.el | 2 | ||||
| -rw-r--r-- | lisp/ediff-init.el | 3 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 3 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 52 |
5 files changed, 38 insertions, 32 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a3baeb08f70..90c447d803f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2000-06-05 Michael Kifer <kifer@cs.sunysb.edu> | ||
| 2 | |||
| 3 | * ediff-init.el (ediff-has-face-support-p): make it paint faces on | ||
| 4 | tty's. | ||
| 5 | * ediff-diff.el (ediff-exec-process): use --binary for fine | ||
| 6 | differences whenever apropriate. | ||
| 7 | * viper-cmd.el (viper-smart-suffix-list): rearranged list members. | ||
| 8 | * viper.el (find-file,find-file-other-window): get viper to do | ||
| 9 | wildcards. | ||
| 10 | |||
| 1 | 2000-06-04 Stefan Monnier <monnier@cs.yale.edu> | 11 | 2000-06-04 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 12 | ||
| 3 | * emacs-lisp/easy-mmode.el (easy-mmode-define-toggle): | 13 | * emacs-lisp/easy-mmode.el (easy-mmode-define-toggle): |
diff --git a/lisp/ediff-diff.el b/lisp/ediff-diff.el index 845416d07d9..a7236bd1d35 100644 --- a/lisp/ediff-diff.el +++ b/lisp/ediff-diff.el | |||
| @@ -1135,7 +1135,9 @@ delimiter regions")) | |||
| 1135 | (setq args (append (split-string options) files)) | 1135 | (setq args (append (split-string options) files)) |
| 1136 | (setq args (delete "" (delq nil args))) ; delete nil and "" from arguments | 1136 | (setq args (delete "" (delq nil args))) ; delete nil and "" from arguments |
| 1137 | ;; the --binary option, if present, should be used only for buffer jobs | 1137 | ;; the --binary option, if present, should be used only for buffer jobs |
| 1138 | ;; or for refining the differences | ||
| 1138 | (or (string-match "buffer" (symbol-name ediff-job-name)) | 1139 | (or (string-match "buffer" (symbol-name ediff-job-name)) |
| 1140 | (eq buffer ediff-fine-diff-buffer) | ||
| 1139 | (setq args (delete "--binary" args))) | 1141 | (setq args (delete "--binary" args))) |
| 1140 | (unwind-protect | 1142 | (unwind-protect |
| 1141 | (let ((directory default-directory) | 1143 | (let ((directory default-directory) |
diff --git a/lisp/ediff-init.el b/lisp/ediff-init.el index 438492032ba..7cd3d3da229 100644 --- a/lisp/ediff-init.el +++ b/lisp/ediff-init.el | |||
| @@ -63,7 +63,8 @@ that Ediff doesn't know about.") | |||
| 63 | (defun ediff-has-face-support-p () | 63 | (defun ediff-has-face-support-p () |
| 64 | (cond ((ediff-window-display-p)) | 64 | (cond ((ediff-window-display-p)) |
| 65 | (ediff-force-faces) | 65 | (ediff-force-faces) |
| 66 | (ediff-emacs-p (memq (ediff-device-type) '(pc))) | 66 | (ediff-emacs-p (or (x-display-color-p) |
| 67 | (memq (ediff-device-type) '(pc)))) | ||
| 67 | (ediff-xemacs-p (memq (ediff-device-type) '(tty pc))))) | 68 | (ediff-xemacs-p (memq (ediff-device-type) '(tty pc))))) |
| 68 | 69 | ||
| 69 | (defun ediff-has-toolbar-support-p () | 70 | (defun ediff-has-toolbar-support-p () |
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index 91be4cf7765..4a0cc5ed3b3 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -1895,7 +1895,8 @@ Undo previous insertion and inserts new." | |||
| 1895 | 1895 | ||
| 1896 | 1896 | ||
| 1897 | (defcustom viper-smart-suffix-list | 1897 | (defcustom viper-smart-suffix-list |
| 1898 | '("" "tex" "c" "cc" "C" "el" "java" "html" "htm" "pl" "flr" "P" "p") | 1898 | '("" "tex" "c" "cc" "C" "java" "el" "html" "htm" "xml" |
| 1899 | "pl" "flr" "P" "p" "h" "H") | ||
| 1899 | "*List of suffixes that Viper tries to append to filenames ending with a `.'. | 1900 | "*List of suffixes that Viper tries to append to filenames ending with a `.'. |
| 1900 | This is useful when you the current directory contains files with the same | 1901 | This is useful when you the current directory contains files with the same |
| 1901 | prefix and many different suffixes. Usually, only one of the suffixes | 1902 | prefix and many different suffixes. Usually, only one of the suffixes |
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index f5094a1b8da..644bff67055 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -400,6 +400,7 @@ widget." | |||
| 400 | ps-mode | 400 | ps-mode |
| 401 | 401 | ||
| 402 | completion-list-mode | 402 | completion-list-mode |
| 403 | diff-mode | ||
| 403 | 404 | ||
| 404 | perl-mode | 405 | perl-mode |
| 405 | javascript-mode | 406 | javascript-mode |
| @@ -982,53 +983,44 @@ remains buffer-local." | |||
| 982 | (defadvice find-file (before viper-add-suffix-advice activate) | 983 | (defadvice find-file (before viper-add-suffix-advice activate) |
| 983 | "Use `read-file-name' for reading arguments." | 984 | "Use `read-file-name' for reading arguments." |
| 984 | (interactive (cons (read-file-name "Find file: " nil default-directory) | 985 | (interactive (cons (read-file-name "Find file: " nil default-directory) |
| 985 | ;; if Mule and prefix argument, ask for coding system | 986 | ;; XEmacs: if Mule & prefix arg, ask for coding system |
| 986 | (cond ((and viper-emacs-p | 987 | (cond ((and viper-xemacs-p (featurep 'mule)) |
| 987 | (boundp 'MULE)) ; Emacs 20 with MULE | ||
| 988 | nil) | ||
| 989 | ((and viper-xemacs-p | ||
| 990 | (featurep 'mule)) ; XEmacs 20 with MULE | ||
| 991 | (list | 988 | (list |
| 992 | (and current-prefix-arg | 989 | (and current-prefix-arg |
| 993 | (read-coding-system | 990 | (read-coding-system "Coding-system: ")))) |
| 994 | "Coding-system: ")))) | 991 | ;; Emacs: do wildcards |
| 995 | ) | 992 | ((and viper-emacs-p (boundp 'find-file-wildcards)) |
| 996 | ))) | 993 | (list find-file-wildcards)))) |
| 994 | )) | ||
| 997 | 995 | ||
| 998 | (defadvice find-file-other-window (before viper-add-suffix-advice activate) | 996 | (defadvice find-file-other-window (before viper-add-suffix-advice activate) |
| 999 | "Use `read-file-name' for reading arguments." | 997 | "Use `read-file-name' for reading arguments." |
| 1000 | (interactive (cons (read-file-name "Find file in other window: " | 998 | (interactive (cons (read-file-name "Find file in other window: " |
| 1001 | nil default-directory) | 999 | nil default-directory) |
| 1002 | ;; if Mule and prefix argument, ask for coding system | 1000 | ;; XEmacs: if Mule & prefix arg, ask for coding system |
| 1003 | (cond ((and viper-emacs-p | 1001 | (cond ((and viper-xemacs-p (featurep 'mule)) |
| 1004 | (boundp 'MULE)) ; Emacs 20 with MULE | ||
| 1005 | nil) | ||
| 1006 | ((and viper-xemacs-p | ||
| 1007 | (featurep 'mule)) ; XEmacs 20 with MULE | ||
| 1008 | (list | 1002 | (list |
| 1009 | (and current-prefix-arg | 1003 | (and current-prefix-arg |
| 1010 | (read-coding-system | 1004 | (read-coding-system "Coding-system: ")))) |
| 1011 | "Coding-system: ")))) | 1005 | ;; Emacs: do wildcards |
| 1012 | ) | 1006 | ((and viper-emacs-p (boundp 'find-file-wildcards)) |
| 1013 | ))) | 1007 | (list find-file-wildcards)))) |
| 1008 | )) | ||
| 1014 | 1009 | ||
| 1015 | 1010 | ||
| 1016 | (defadvice find-file-other-frame (before viper-add-suffix-advice activate) | 1011 | (defadvice find-file-other-frame (before viper-add-suffix-advice activate) |
| 1017 | "Use `read-file-name' for reading arguments." | 1012 | "Use `read-file-name' for reading arguments." |
| 1018 | (interactive (cons (read-file-name "Find file in other frame: " | 1013 | (interactive (cons (read-file-name "Find file in other frame: " |
| 1019 | nil default-directory) | 1014 | nil default-directory) |
| 1020 | ;; if Mule and prefix argument, ask for coding system | 1015 | ;; XEmacs: if Mule & prefix arg, ask for coding system |
| 1021 | (cond ((and viper-emacs-p | 1016 | (cond ((and viper-xemacs-p (featurep 'mule)) |
| 1022 | (boundp 'MULE)) ; Emacs 20 with MULE | ||
| 1023 | nil) | ||
| 1024 | ((and viper-xemacs-p | ||
| 1025 | (featurep 'mule)) ; XEmacs 20 with MULE | ||
| 1026 | (list | 1017 | (list |
| 1027 | (and current-prefix-arg | 1018 | (and current-prefix-arg |
| 1028 | (read-coding-system | 1019 | (read-coding-system "Coding-system: ")))) |
| 1029 | "Coding-system: ")))) | 1020 | ;; Emacs: do wildcards |
| 1030 | ) | 1021 | ((and viper-emacs-p (boundp 'find-file-wildcards)) |
| 1031 | ))) | 1022 | (list find-file-wildcards)))) |
| 1023 | )) | ||
| 1032 | 1024 | ||
| 1033 | 1025 | ||
| 1034 | (defadvice read-file-name (around viper-suffix-advice activate) | 1026 | (defadvice read-file-name (around viper-suffix-advice activate) |