]> code.delx.au - gnu-emacs/commitdiff
(pcomplete-entries): Don't use directory-sep-char.
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Oct 2004 15:05:12 +0000 (15:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Oct 2004 15:05:12 +0000 (15:05 +0000)
lisp/pcomplete.el

index 5dff6d954f8f7b734a97fdc4f09f0db46a37604b..f4b796dd1a769c3d10b8ac6bc4d38cc770a8b2db 100644 (file)
@@ -150,7 +150,7 @@ This mirrors the optional behavior of tcsh."
   :type 'boolean
   :group 'pcomplete)
 
-(defcustom pcomplete-suffix-list (list directory-sep-char ?:)
+(defcustom pcomplete-suffix-list (list ?/ ?:)
   "*A list of characters which constitute a proper suffix."
   :type '(repeat character)
   :group 'pcomplete)
@@ -740,7 +740,7 @@ component, `default-directory' is used as the basis for completion."
                 (function
                  (lambda (file)
                    (if (eq (aref file (1- (length file)))
-                           directory-sep-char)
+                           ?/)
                        (and pcomplete-dir-ignore
                             (string-match pcomplete-dir-ignore file))
                      (and pcomplete-file-ignore
@@ -757,11 +757,11 @@ component, `default-directory' is used as the basis for completion."
               ;; since . is earlier in the ASCII alphabet than
               ;; /
               (let ((left (if (eq (aref l (1- (length l)))
-                                  directory-sep-char)
+                                  ?/)
                               (substring l 0 (1- (length l)))
                             l))
                     (right (if (eq (aref r (1- (length r)))
-                                   directory-sep-char)
+                                   ?/)
                                (substring r 0 (1- (length r)))
                              r)))
                 (if above-cutoff