aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-18 16:28:22 +0000
committerRichard M. Stallman1996-06-18 16:28:22 +0000
commita0341d132be82cf82c74258655c0d81c86a88b4c (patch)
treedcb7234355ab50f1e271bfbbb37108c45c288796 /lisp
parentf0d21379316bba09f4dfdf520f57c14762042b6a (diff)
downloademacs-a0341d132be82cf82c74258655c0d81c86a88b4c.tar.gz
emacs-a0341d132be82cf82c74258655c0d81c86a88b4c.zip
(he-concat-directory-file-name): Directory part may be nil.
(he-file-name-nondirectory): Referenced external variable.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/hippie-exp.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/hippie-exp.el b/lisp/hippie-exp.el
index bb59ac68382..ddb896befdb 100644
--- a/lisp/hippie-exp.el
+++ b/lisp/hippie-exp.el
@@ -483,11 +483,12 @@ otherwise."
483 (if (memq system-type '(vax-vms axp-vms)) 483 (if (memq system-type '(vax-vms axp-vms))
484 (or (file-directory-p file) 484 (or (file-directory-p file)
485 (file-directory-p (concat file "[000000]"))) 485 (file-directory-p (concat file "[000000]")))
486 (file-directory-p dir-part))) 486 (file-directory-p file)))
487 487
488(defun he-concat-directory-file-name (dir-part name-part) 488(defun he-concat-directory-file-name (dir-part name-part)
489 "Try to slam together two parts of a file specification, system dependently." 489 "Try to slam together two parts of a file specification, system dependently."
490 (cond ((memq system-type '(axp-vms vax-vms)) 490 (cond ((null dir-part) name-part)
491 ((memq system-type '(axp-vms vax-vms))
491 (if (and (string= (substring dir-part -1) "]") 492 (if (and (string= (substring dir-part -1) "]")
492 (string= (substring name-part 0 2) "[.")) 493 (string= (substring name-part 0 2) "[."))
493 (concat (substring dir-part 0 -1) (substring name-part 1)) 494 (concat (substring dir-part 0 -1) (substring name-part 1))