changeset 105811:18865054beee

(top-level): Don't require dired when compiling. (comint-last-output-start, comint-last-input-start) (comint-last-input-end): Don't defvar when compiling. (ange-ftp-process-file): Use bound-and-true-p.
author Glenn Morris <rgm@gnu.org>
date Sat, 31 Oct 2009 02:19:41 +0000
parents 9381dbed5719
children 68937a278ce7
files lisp/ChangeLog lisp/net/ange-ftp.el
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Oct 31 02:17:41 2009 +0000
+++ b/lisp/ChangeLog	Sat Oct 31 02:19:41 2009 +0000
@@ -1,5 +1,10 @@
 2009-10-31  Glenn Morris  <rgm@gnu.org>
 
+	* net/ange-ftp.el (top-level): Don't require dired when compiling.
+	(comint-last-output-start, comint-last-input-start)
+	(comint-last-input-end): Don't defvar when compiling.
+	(ange-ftp-process-file): Use bound-and-true-p.
+
 	* pcmpl-rpm.el (top-level): Move provide statement to end.
 	(pcmpl-rpm): Remove unused custom group.
 
--- a/lisp/net/ange-ftp.el	Sat Oct 31 02:17:41 2009 +0000
+++ b/lisp/net/ange-ftp.el	Sat Oct 31 02:19:41 2009 +0000
@@ -667,12 +667,6 @@
 ;;; Code:
 
 (require 'comint)
-;; Silence compiler:
-(eval-when-compile
-  (require 'dired)
-  (defvar comint-last-output-start nil)
-  (defvar comint-last-input-start nil)
-  (defvar comint-last-input-end nil))
 
 ;;;; ------------------------------------------------------------
 ;;;; User customization variables.
@@ -4580,7 +4574,8 @@
       ;; Can't use ange-ftp-dired-host-type here because the current
       ;; buffer is *dired-check-process output*
       (condition-case oops
-	  (cond ((equal dired-chmod-program program)
+	  (cond ((equal (or (bound-and-true-p dired-chmod-program) "chmod")
+			program)
 		 (ange-ftp-call-chmod arguments))
 		;; ((equal "chgrp" program))
 		;; ((equal dired-chown-program program))