aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReuben Thomas2016-11-08 22:04:52 +0000
committerReuben Thomas2016-12-02 16:04:42 +0000
commit9effa4bfebdb9d78339997253916602afbdc6b37 (patch)
treea3d7eee3963d59ed77dc913e43f1995fe16b96a3
parente22cca7d23eb9e91b2923cbdad8042e4a4c69811 (diff)
downloademacs-9effa4bfebdb9d78339997253916602afbdc6b37.tar.gz
emacs-9effa4bfebdb9d78339997253916602afbdc6b37.zip
Remove obsolete comments and commented code from dired-x.el
* lisp/dired-x.el (dired-mark-sexp): Remove a query from 1993 and its 1997 answer about whether dired-mark-sexp is used. * lisp/dired-x.el (dired-buffers-for-dir-exact): Remove this function commented out since before dired-x.el was added to RCS in 1994.
-rw-r--r--lisp/dired-x.el26
1 files changed, 0 insertions, 26 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 2bebb698413..1a844ae0f61 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -1400,29 +1400,6 @@ Considers buffers closer to the car of `buffer-list' to be more recent."
1400 (memq buffer1 (buffer-list)) 1400 (memq buffer1 (buffer-list))
1401 (not (memq buffer1 (memq buffer2 (buffer-list)))))) 1401 (not (memq buffer1 (memq buffer2 (buffer-list))))))
1402 1402
1403;; Same thing as `dired-buffers-for-dir' of dired.el? - lrd 11/23/93
1404;; (defun dired-buffers-for-dir-exact (dir)
1405;; ;; Return a list of buffers that dired DIR (a directory or wildcard)
1406;; ;; at top level, or as subdirectory.
1407;; ;; Top level matches must match the wildcard part too, if any.
1408;; ;; The list is in reverse order of buffer creation, most recent last.
1409;; ;; As a side effect, killed dired buffers for DIR are removed from
1410;; ;; dired-buffers.
1411;; (let ((alist dired-buffers) result elt)
1412;; (while alist
1413;; (setq elt (car alist)
1414;; alist (cdr alist))
1415;; (let ((buf (cdr elt)))
1416;; (if (buffer-name buf)
1417;; ;; Top level must match exactly against dired-directory in
1418;; ;; case one of them is a wildcard.
1419;; (if (or (equal dir (with-current-buffer buf dired-directory))
1420;; (assoc dir (with-current-buffer buf dired-subdir-alist)))
1421;; (setq result (cons buf result)))
1422;; ;; else buffer is killed - clean up:
1423;; (setq dired-buffers (delq elt dired-buffers)))))
1424;; result))
1425
1426 1403
1427;; Needed if ls -lh is supported and also for GNU ls -ls. 1404;; Needed if ls -lh is supported and also for GNU ls -ls.
1428(defun dired-x--string-to-number (str) 1405(defun dired-x--string-to-number (str)
@@ -1440,9 +1417,6 @@ sure that a trailing letter in STR is one of BKkMGTPEZY."
1440 (setq val (* 1024.0 val))))) 1417 (setq val (* 1024.0 val)))))
1441 val)) 1418 val))
1442 1419
1443;; Does anyone use this? - lrd 6/29/93.
1444;; Apparently people do use it. - lrd 12/22/97.
1445
1446(defun dired-mark-sexp (predicate &optional unflag-p) 1420(defun dired-mark-sexp (predicate &optional unflag-p)
1447 "Mark files for which PREDICATE returns non-nil. 1421 "Mark files for which PREDICATE returns non-nil.
1448With a prefix arg, unmark or unflag those files instead. 1422With a prefix arg, unmark or unflag those files instead.