]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-add-entry): Call `dired-get-filename' with `verbatim' so that we
authorMiles Bader <miles@gnu.org>
Mon, 27 Nov 2000 12:11:33 +0000 (12:11 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 27 Nov 2000 12:11:33 +0000 (12:11 +0000)
don't inadvertently delete a non-existant directory name.

lisp/dired-aux.el

index dde77e3af432be6037208700a3a13a506943dd95..5097979725bd231e3d7a40648cfc0d8c64df693c 100644 (file)
@@ -850,7 +850,7 @@ a prefix arg lets you edit the `ls' switches used for the new listing."
              ;; the relative one.  That may be hard to fix since it
              ;; is probably controlled by something in ftp.
              (goto-char opoint)        
-             (let ((inserted-name (dired-get-filename)))
+             (let ((inserted-name (dired-get-filename 'verbatim)))
                (if (file-name-directory inserted-name)
                    (progn
                      (end-of-line)