diff options
| author | Michael Kifer | 2001-02-12 08:47:13 +0000 |
|---|---|---|
| committer | Michael Kifer | 2001-02-12 08:47:13 +0000 |
| commit | 513bea4565326a6b68e580dd3dc215bfe0bcde98 (patch) | |
| tree | 05e9081d0c4e53903a5cbc448bc725cf47400f7e /lisp/ediff-diff.el | |
| parent | 36fd8e1761464aa3a557cf9cc70bf91f8331c4db (diff) | |
| download | emacs-513bea4565326a6b68e580dd3dc215bfe0bcde98.tar.gz emacs-513bea4565326a6b68e580dd3dc215bfe0bcde98.zip | |
2001-02-12 Michael Kifer <kifer@cs.sunysb.edu>
* ediff-diff.el (ediff-make-diff2-buffer): Removed bogus checks
for remote files.
(ediff-coding-system-for-read): replaced the no-conversion default
with raw-text.
* ediff-init.el: Removed :version from defcustom vars.
* ediff-util.el (ediff-compute-custom-diffs-maybe): Better
handling of the diff mode
* ediff.texi: Added ediff-coding-system-for-read.
* viper.texi: typos
Diffstat (limited to 'lisp/ediff-diff.el')
| -rw-r--r-- | lisp/ediff-diff.el | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/lisp/ediff-diff.el b/lisp/ediff-diff.el index 1ba2b8df803..3bf2277d6be 100644 --- a/lisp/ediff-diff.el +++ b/lisp/ediff-diff.el | |||
| @@ -55,6 +55,16 @@ Must produce output compatible with Unix's diff3 program." | |||
| 55 | :type 'string | 55 | :type 'string |
| 56 | :group 'ediff-diff) | 56 | :group 'ediff-diff) |
| 57 | 57 | ||
| 58 | (defcustom ediff-coding-system-for-read 'raw-text | ||
| 59 | "*The coding system for read to use when running the diff program as a subprocess. | ||
| 60 | In most cases, the default will do. However, under certain circumstances in | ||
| 61 | Windows NT/98/95 you might need to use something like 'raw-text-dos here. | ||
| 62 | So, if the output that your diff program sends to Emacs contains extra ^M's, | ||
| 63 | you might need to experiment here, if the default or 'raw-text-dos doesn't | ||
| 64 | work." | ||
| 65 | :type 'symbol | ||
| 66 | :group 'ediff-diff) | ||
| 67 | |||
| 58 | ;; The following functions must precede all defcustom-defined variables. | 68 | ;; The following functions must precede all defcustom-defined variables. |
| 59 | 69 | ||
| 60 | ;; The following functions needed for setting diff/diff3 options | 70 | ;; The following functions needed for setting diff/diff3 options |
| @@ -235,6 +245,7 @@ one optional arguments, diff-number to refine.") | |||
| 235 | 245 | ||
| 236 | ;; Run the diff program on FILE1 and FILE2 and put the output in DIFF-BUFFER | 246 | ;; Run the diff program on FILE1 and FILE2 and put the output in DIFF-BUFFER |
| 237 | ;; Return the size of DIFF-BUFFER | 247 | ;; Return the size of DIFF-BUFFER |
| 248 | ;; The return code isn't used in the program at present. | ||
| 238 | (defun ediff-make-diff2-buffer (diff-buffer file1 file2) | 249 | (defun ediff-make-diff2-buffer (diff-buffer file1 file2) |
| 239 | (let ((file1-size (ediff-file-size file1)) | 250 | (let ((file1-size (ediff-file-size file1)) |
| 240 | (file2-size (ediff-file-size file2))) | 251 | (file2-size (ediff-file-size file2))) |
| @@ -250,19 +261,6 @@ one optional arguments, diff-number to refine.") | |||
| 250 | (sit-for 2) | 261 | (sit-for 2) |
| 251 | ;; 1 is an error exit code | 262 | ;; 1 is an error exit code |
| 252 | 1) | 263 | 1) |
| 253 | ((< file1-size 0) | ||
| 254 | (message "Can't diff remote files: %s" | ||
| 255 | (ediff-abbreviate-file-name file1)) | ||
| 256 | (sit-for 2) | ||
| 257 | ;; 1 is an error exit code | ||
| 258 | 1) | ||
| 259 | ((< file2-size 0) | ||
| 260 | (message "Can't diff remote file: %s" | ||
| 261 | (ediff-abbreviate-file-name file2)) | ||
| 262 | (sit-for 2) | ||
| 263 | (message "") | ||
| 264 | ;; 1 is an error exit code | ||
| 265 | 1) | ||
| 266 | (t (message "Computing differences between %s and %s ..." | 264 | (t (message "Computing differences between %s and %s ..." |
| 267 | (file-name-nondirectory file1) | 265 | (file-name-nondirectory file1) |
| 268 | (file-name-nondirectory file2)) | 266 | (file-name-nondirectory file2)) |
| @@ -1133,7 +1131,7 @@ delimiter regions")) | |||
| 1133 | ;; args. | 1131 | ;; args. |
| 1134 | (defun ediff-exec-process (program buffer synch options &rest files) | 1132 | (defun ediff-exec-process (program buffer synch options &rest files) |
| 1135 | (let ((data (match-data)) | 1133 | (let ((data (match-data)) |
| 1136 | (coding-system-for-read 'no-conversion) | 1134 | (coding-system-for-read ediff-coding-system-for-read) |
| 1137 | args) | 1135 | args) |
| 1138 | (setq args (append (split-string options) files)) | 1136 | (setq args (append (split-string options) files)) |
| 1139 | (setq args (delete "" (delq nil args))) ; delete nil and "" from arguments | 1137 | (setq args (delete "" (delq nil args))) ; delete nil and "" from arguments |