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 /lisp/emulation | |
| 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.
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 3 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 52 |
2 files changed, 24 insertions, 31 deletions
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) |