diff options
| author | Karoly Lorentey | 2004-01-03 16:53:54 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-03 16:53:54 +0000 |
| commit | 6121cb80f0869e7fbf257acda0831cbcdb2d7b18 (patch) | |
| tree | 0a111024c3ea3e2bc7f911c2308b0df4ba9bb602 /lisp | |
| parent | f0e2c284732f28a4ab09fbc8a7eaeebc81f72d18 (diff) | |
| parent | 15502042230fbf94c50ac8a046c367948c66dc66 (diff) | |
| download | emacs-6121cb80f0869e7fbf257acda0831cbcdb2d7b18.tar.gz emacs-6121cb80f0869e7fbf257acda0831cbcdb2d7b18.zip | |
Merged in changes from CVS HEAD
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-16
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-42
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 4 | ||||
| -rw-r--r-- | lisp/ediff-diff.el | 4 | ||||
| -rw-r--r-- | lisp/ediff-ptch.el | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/shadow.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/viper-util.el | 22 | ||||
| -rw-r--r-- | lisp/files.el | 38 | ||||
| -rw-r--r-- | lisp/jka-compr.el | 2 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 2 | ||||
| -rw-r--r-- | lisp/man.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/idlwave.el | 11 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/flyspell.el | 2 |
13 files changed, 66 insertions, 47 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ed4f3a8433e..de4f72cc020 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2004-01-03 Jesper Harder <harder@ifa.au.dk> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/idlwave.el (idlwave-make-tags): | ||
| 4 | * textmodes/flyspell.el (flyspell-large-region):. | ||
| 5 | * progmodes/make-mode.el (makefile-query-by-make-minus-q): | ||
| 6 | * emulation/viper-util.el (viper-glob-unix-files): | ||
| 7 | * emacs-lisp/shadow.el (shadow-same-file-or-nonexistent): | ||
| 8 | * man.el (Man-init-defvars): | ||
| 9 | * jka-compr.el (jka-compr-call-process): | ||
| 10 | * files.el (get-free-disk-space,insert-directory): | ||
| 11 | * ediff-ptch.el (ediff-test-patch-utility): | ||
| 12 | * ediff-diff.el (ediff-test-utility): | ||
| 13 | * dired-aux.el (dired-check-process): | ||
| 14 | * mail/sendmail.el (sendmail-send-it): Don't use = or zerop to | ||
| 15 | test the return value of call-process, because it can be a string. | ||
| 16 | |||
| 1 | 2003-12-31 John Paul Wallington <jpw@gnu.org> | 17 | 2003-12-31 John Paul Wallington <jpw@gnu.org> |
| 2 | 18 | ||
| 3 | * bindings.el (completion-ignored-extensions): Add .pfsl. | 19 | * bindings.el (completion-ignored-extensions): Add .pfsl. |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index d12410afae5..0a3fa220248 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -561,8 +561,8 @@ the list of file names explicitly with the FILE-LIST argument." | |||
| 561 | (set-buffer err-buffer) | 561 | (set-buffer err-buffer) |
| 562 | (erase-buffer) | 562 | (erase-buffer) |
| 563 | (setq default-directory dir ; caller's default-directory | 563 | (setq default-directory dir ; caller's default-directory |
| 564 | err (/= 0 | 564 | err (not (eq 0 |
| 565 | (apply (function dired-call-process) program nil arguments))) | 565 | (apply (function dired-call-process) program nil arguments)))) |
| 566 | (if err | 566 | (if err |
| 567 | (progn | 567 | (progn |
| 568 | (dired-log (concat program " " (prin1-to-string arguments) "\n")) | 568 | (dired-log (concat program " " (prin1-to-string arguments) "\n")) |
diff --git a/lisp/ediff-diff.el b/lisp/ediff-diff.el index e7dcd6f16c5..4ba4ab316f8 100644 --- a/lisp/ediff-diff.el +++ b/lisp/ediff-diff.el | |||
| @@ -64,8 +64,8 @@ Must produce output compatible with Unix's diff3 program." | |||
| 64 | ;; The following functions needed for setting diff/diff3 options | 64 | ;; The following functions needed for setting diff/diff3 options |
| 65 | ;; test if diff supports the --binary option | 65 | ;; test if diff supports the --binary option |
| 66 | (defsubst ediff-test-utility (diff-util option &optional files) | 66 | (defsubst ediff-test-utility (diff-util option &optional files) |
| 67 | (zerop (apply 'call-process | 67 | (eq 0 (apply 'call-process |
| 68 | (append (list diff-util nil nil nil option) files)))) | 68 | (append (list diff-util nil nil nil option) files)))) |
| 69 | 69 | ||
| 70 | (defun ediff-diff-mandatory-option (diff-util) | 70 | (defun ediff-diff-mandatory-option (diff-util) |
| 71 | (let ((file (if (boundp 'null-device) null-device "/dev/null"))) | 71 | (let ((file (if (boundp 'null-device) null-device "/dev/null"))) |
diff --git a/lisp/ediff-ptch.el b/lisp/ediff-ptch.el index 8b69bc686df..342f75fd1e0 100644 --- a/lisp/ediff-ptch.el +++ b/lisp/ediff-ptch.el | |||
| @@ -86,10 +86,10 @@ See also `ediff-backup-specs'." | |||
| 86 | 86 | ||
| 87 | (defun ediff-test-patch-utility () | 87 | (defun ediff-test-patch-utility () |
| 88 | (condition-case nil | 88 | (condition-case nil |
| 89 | (cond ((zerop (call-process ediff-patch-program nil nil nil "-z." "-b")) | 89 | (cond ((eq 0 (call-process ediff-patch-program nil nil nil "-z." "-b")) |
| 90 | ;; GNU `patch' v. >= 2.2 | 90 | ;; GNU `patch' v. >= 2.2 |
| 91 | 'gnu) | 91 | 'gnu) |
| 92 | ((zerop (call-process ediff-patch-program nil nil nil "-b")) | 92 | ((eq 0 (call-process ediff-patch-program nil nil nil "-b")) |
| 93 | 'posix) | 93 | 'posix) |
| 94 | (t 'traditional)) | 94 | (t 'traditional)) |
| 95 | (file-error nil))) | 95 | (file-error nil))) |
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el index 571ee7ee1c9..eeaaa7ffc0a 100644 --- a/lisp/emacs-lisp/shadow.el +++ b/lisp/emacs-lisp/shadow.el | |||
| @@ -161,7 +161,7 @@ See the documentation for `list-load-path-shadows' for further information." | |||
| 161 | ;; sizes. | 161 | ;; sizes. |
| 162 | (and (= (nth 7 (file-attributes f1)) | 162 | (and (= (nth 7 (file-attributes f1)) |
| 163 | (nth 7 (file-attributes f2))) | 163 | (nth 7 (file-attributes f2))) |
| 164 | (zerop (call-process "cmp" nil nil nil "-s" f1 f2)))))))) | 164 | (eq 0 (call-process "cmp" nil nil nil "-s" f1 f2)))))))) |
| 165 | 165 | ||
| 166 | ;;;###autoload | 166 | ;;;###autoload |
| 167 | (defun list-load-path-shadows () | 167 | (defun list-load-path-shadows () |
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index 8e913e90599..5e533e5f545 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el | |||
| @@ -394,17 +394,17 @@ | |||
| 394 | command))) | 394 | command))) |
| 395 | (goto-char (point-min)) | 395 | (goto-char (point-min)) |
| 396 | ;; Issue an error, if no match. | 396 | ;; Issue an error, if no match. |
| 397 | (if (> status 0) | 397 | (unless (eq 0 status) |
| 398 | (save-excursion | 398 | (save-excursion |
| 399 | (skip-chars-forward " \t\n\j") | 399 | (skip-chars-forward " \t\n\j") |
| 400 | (if (looking-at "ls:") | 400 | (if (looking-at "ls:") |
| 401 | (viper-forward-Word 1)) | 401 | (viper-forward-Word 1)) |
| 402 | (error "%s: %s" | 402 | (error "%s: %s" |
| 403 | (if (stringp gshell) | 403 | (if (stringp gshell) |
| 404 | gshell | 404 | gshell |
| 405 | "shell") | 405 | "shell") |
| 406 | (buffer-substring (point) (viper-line-pos 'end))) | 406 | (buffer-substring (point) (viper-line-pos 'end))) |
| 407 | )) | 407 | )) |
| 408 | (goto-char (point-min)) | 408 | (goto-char (point-min)) |
| 409 | (viper-get-filenames-from-buffer 'one-per-line)) | 409 | (viper-get-filenames-from-buffer 'one-per-line)) |
| 410 | )) | 410 | )) |
diff --git a/lisp/files.el b/lisp/files.el index 4983b1287e8..ec58906e485 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4137,10 +4137,10 @@ program specified by `directory-free-space-program' if that is non-nil." | |||
| 4137 | (save-match-data | 4137 | (save-match-data |
| 4138 | (with-temp-buffer | 4138 | (with-temp-buffer |
| 4139 | (when (and directory-free-space-program | 4139 | (when (and directory-free-space-program |
| 4140 | (zerop (call-process directory-free-space-program | 4140 | (eq 0 (call-process directory-free-space-program |
| 4141 | nil t nil | 4141 | nil t nil |
| 4142 | directory-free-space-args | 4142 | directory-free-space-args |
| 4143 | dir))) | 4143 | dir))) |
| 4144 | ;; Usual format is a header line followed by a line of | 4144 | ;; Usual format is a header line followed by a line of |
| 4145 | ;; numbers. | 4145 | ;; numbers. |
| 4146 | (goto-char (point-min)) | 4146 | (goto-char (point-min)) |
| @@ -4260,21 +4260,21 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'." | |||
| 4260 | file)))))))) | 4260 | file)))))))) |
| 4261 | 4261 | ||
| 4262 | ;; If `insert-directory-program' failed, signal an error. | 4262 | ;; If `insert-directory-program' failed, signal an error. |
| 4263 | (if (/= result 0) | 4263 | (unless (eq 0 result) |
| 4264 | ;; On non-Posix systems, we cannot open a directory, so | 4264 | ;; On non-Posix systems, we cannot open a directory, so |
| 4265 | ;; don't even try, because that will always result in | 4265 | ;; don't even try, because that will always result in |
| 4266 | ;; the ubiquitous "Access denied". Instead, show the | 4266 | ;; the ubiquitous "Access denied". Instead, show the |
| 4267 | ;; command line so the user can try to guess what went wrong. | 4267 | ;; command line so the user can try to guess what went wrong. |
| 4268 | (if (and (file-directory-p file) | 4268 | (if (and (file-directory-p file) |
| 4269 | (memq system-type '(ms-dos windows-nt))) | 4269 | (memq system-type '(ms-dos windows-nt))) |
| 4270 | (error | 4270 | (error |
| 4271 | "Reading directory: \"%s %s -- %s\" exited with status %s" | 4271 | "Reading directory: \"%s %s -- %s\" exited with status %s" |
| 4272 | insert-directory-program | 4272 | insert-directory-program |
| 4273 | (if (listp switches) (concat switches) switches) | 4273 | (if (listp switches) (concat switches) switches) |
| 4274 | file result) | 4274 | file result) |
| 4275 | ;; Unix. Access the file to get a suitable error. | 4275 | ;; Unix. Access the file to get a suitable error. |
| 4276 | (access-file file "Reading directory") | 4276 | (access-file file "Reading directory") |
| 4277 | (error "Listing directory failed but `access-file' worked"))) | 4277 | (error "Listing directory failed but `access-file' worked"))) |
| 4278 | 4278 | ||
| 4279 | (when (string-match "--dired\\>" switches) | 4279 | (when (string-match "--dired\\>" switches) |
| 4280 | (forward-line -2) | 4280 | (forward-line -2) |
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index aae0f0f85c1..7a0f39d89ee 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el | |||
| @@ -356,7 +356,7 @@ to keep: LEN chars starting BEG chars from the beginning." | |||
| 356 | 356 | ||
| 357 | (jka-compr-delete-temp-file err-file))) | 357 | (jka-compr-delete-temp-file err-file))) |
| 358 | 358 | ||
| 359 | (or (zerop | 359 | (or (eq 0 |
| 360 | (apply 'call-process | 360 | (apply 'call-process |
| 361 | prog | 361 | prog |
| 362 | infile | 362 | infile |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index e2ce10db3fc..c44ea46243a 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1029,7 +1029,7 @@ external program defined by `sendmail-program'." | |||
| 1029 | ) | 1029 | ) |
| 1030 | ) | 1030 | ) |
| 1031 | (exit-value (apply 'call-process-region args))) | 1031 | (exit-value (apply 'call-process-region args))) |
| 1032 | (or (null exit-value) (zerop exit-value) | 1032 | (or (null exit-value) (eq 0 exit-value) |
| 1033 | (error "Sending...failed with exit value %d" exit-value))) | 1033 | (error "Sending...failed with exit value %d" exit-value))) |
| 1034 | (or fcc-was-found | 1034 | (or fcc-was-found |
| 1035 | (error "No recipients"))) | 1035 | (error "No recipients"))) |
diff --git a/lisp/man.el b/lisp/man.el index 4a768e1effb..61131db20be 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -425,9 +425,9 @@ This is necessary if one wants to dump man.el with Emacs." | |||
| 425 | (cond | 425 | (cond |
| 426 | (Man-fontify-manpage-flag | 426 | (Man-fontify-manpage-flag |
| 427 | nil) | 427 | nil) |
| 428 | ((= 0 (call-process Man-sed-command nil nil nil Man-sysv-sed-script)) | 428 | ((eq 0 (call-process Man-sed-command nil nil nil Man-sysv-sed-script)) |
| 429 | Man-sysv-sed-script) | 429 | Man-sysv-sed-script) |
| 430 | ((= 0 (call-process Man-sed-command nil nil nil Man-berkeley-sed-script)) | 430 | ((eq 0 (call-process Man-sed-command nil nil nil Man-berkeley-sed-script)) |
| 431 | Man-berkeley-sed-script) | 431 | Man-berkeley-sed-script) |
| 432 | (t | 432 | (t |
| 433 | nil)))) | 433 | nil)))) |
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index 4277364bb34..5850dad2988 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Chris Chase <chase@att.com> | 5 | ;; Chris Chase <chase@att.com> |
| 6 | ;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu> | 6 | ;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu> |
| 7 | ;; Version: 4.15 | 7 | ;; Version: 4.15 |
| 8 | ;; Date: $Date: 2003/09/01 15:45:35 $ | 8 | ;; Date: $Date: 2004/01/03 12:09:15 $ |
| 9 | ;; Keywords: languages | 9 | ;; Keywords: languages |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| @@ -3889,9 +3889,12 @@ you specify /." | |||
| 3889 | (progn | 3889 | (progn |
| 3890 | (message (concat "Tagging " item "...")) | 3890 | (message (concat "Tagging " item "...")) |
| 3891 | (setq errbuf (get-buffer-create "*idltags-error*")) | 3891 | (setq errbuf (get-buffer-create "*idltags-error*")) |
| 3892 | (setq status (+ status | 3892 | (setq status |
| 3893 | (call-process "sh" nil errbuf nil "-c" | 3893 | (+ status |
| 3894 | (concat cmd append item)))) | 3894 | (if (eq 0 (call-process "sh" nil errbuf nil "-c" |
| 3895 | (concat cmd append item))) | ||
| 3896 | 0 | ||
| 3897 | 1))) | ||
| 3895 | ;; | 3898 | ;; |
| 3896 | ;; Append additional tags | 3899 | ;; Append additional tags |
| 3897 | (setq append " --append ") | 3900 | (setq append " --append ") |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index f56d08a76b7..5130ca9bfef 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -1374,7 +1374,7 @@ and generates the overview, one line per target name." | |||
| 1374 | (delete-file filename)) ; remove the tmpfile | 1374 | (delete-file filename)) ; remove the tmpfile |
| 1375 | 1375 | ||
| 1376 | (defun makefile-query-by-make-minus-q (target &optional filename) | 1376 | (defun makefile-query-by-make-minus-q (target &optional filename) |
| 1377 | (not (zerop | 1377 | (not (eq 0 |
| 1378 | (call-process makefile-brave-make nil nil nil | 1378 | (call-process makefile-brave-make nil nil nil |
| 1379 | "-f" filename "-q" target)))) | 1379 | "-f" filename "-q" target)))) |
| 1380 | 1380 | ||
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index e71eb440c12..3d41042e8d7 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -1351,7 +1351,7 @@ Word syntax described by `ispell-dictionary-alist' (which see)." | |||
| 1351 | ispell-personal-dictionary))))) | 1351 | ispell-personal-dictionary))))) |
| 1352 | (setq args (append args ispell-extra-args)) | 1352 | (setq args (append args ispell-extra-args)) |
| 1353 | args)))) | 1353 | args)))) |
| 1354 | (if (= c 0) | 1354 | (if (eq c 0) |
| 1355 | (flyspell-external-point-words) | 1355 | (flyspell-external-point-words) |
| 1356 | (error "Can't check region..."))))) | 1356 | (error "Can't check region..."))))) |
| 1357 | 1357 | ||