aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/files.el20
1 files changed, 7 insertions, 13 deletions
diff --git a/lisp/files.el b/lisp/files.el
index a9ebe2bb8e4..aefc4fa4e88 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1852,7 +1852,7 @@ and `list-directory-verbose-switches'."
1852;; dired-after-subdir-garbage (defines what a "total" line is) 1852;; dired-after-subdir-garbage (defines what a "total" line is)
1853;; - variable dired-subdir-regexp 1853;; - variable dired-subdir-regexp
1854(defun insert-directory (file switches &optional wildcard full-directory-p) 1854(defun insert-directory (file switches &optional wildcard full-directory-p)
1855 "Insert directory listing for of FILE, formatted according to SWITCHES. 1855 "Insert directory listing for FILE, formatted according to SWITCHES.
1856Leaves point after the inserted text. 1856Leaves point after the inserted text.
1857Optional third arg WILDCARD means treat FILE as shell wildcard. 1857Optional third arg WILDCARD means treat FILE as shell wildcard.
1858Optional fourth arg FULL-DIRECTORY-P means file is a directory and 1858Optional fourth arg FULL-DIRECTORY-P means file is a directory and
@@ -1873,18 +1873,12 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'."
1873 "-c" (concat insert-directory-program 1873 "-c" (concat insert-directory-program
1874 " -d " switches " " 1874 " -d " switches " "
1875 (file-name-nondirectory file)))) 1875 (file-name-nondirectory file))))
1876 ;; Barry Margolin says: "SunOS 4.1.3 (and SV and POSIX?) 1876 ;; SunOS 4.1.3, SVr4 and others need the "." to list the
1877 ;; lists the link if we give a link to a directory - yuck!" 1877 ;; directory if FILE is a symbolic link.
1878 ;; That's why we used to chase symlinks. But we don't want 1878 (call-process insert-directory-program nil t nil switches
1879 ;; to chase links before passing the filename to ls; that 1879 (if full-directory-p
1880 ;; would mean that our line of output would not display 1880 (concat (file-name-as-directory file) ".")
1881 ;; FILE's name as given. To really address the problem that 1881 file)))))))
1882 ;; SunOS 4.1.3 has, we need to find the right switch to get
1883 ;; a description of the link itself.
1884 ;; (let (symlink)
1885 ;; (while (setq symlink (file-symlink-p file))
1886 ;; (setq file symlink)))
1887 (call-process insert-directory-program nil t nil switches file))))))
1888 1882
1889(defun save-buffers-kill-emacs (&optional arg) 1883(defun save-buffers-kill-emacs (&optional arg)
1890 "Offer to save each buffer, then kill this Emacs process. 1884 "Offer to save each buffer, then kill this Emacs process.