aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-21 01:12:12 +0000
committerRichard M. Stallman1995-08-21 01:12:12 +0000
commit0b1c32a15f983fdb6691de0a99b256cab4a3f03f (patch)
tree791dc4734affcf4c94008ad0aba43a4a407b9dd3
parent176cc1bce14ac90183c87278de38b772226aa5d4 (diff)
downloademacs-0b1c32a15f983fdb6691de0a99b256cab4a3f03f.tar.gz
emacs-0b1c32a15f983fdb6691de0a99b256cab4a3f03f.zip
(dired-expand-newtext): Function deleted.
-rw-r--r--lisp/dired-aux.el33
1 files changed, 0 insertions, 33 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index e2fcbb50afd..e08094ff2da 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -992,39 +992,6 @@ Special value `always' suppresses confirmation.")
992 (dired-normalize-subdir 992 (dired-normalize-subdir
993 (dired-replace-in-string regexp newtext (car elt))))))) 993 (dired-replace-in-string regexp newtext (car elt)))))))
994 994
995(defun dired-expand-newtext (string newtext)
996 ;; Expand \& and \1..\9 (referring to STRING) in NEWTEXT, using match data.
997 ;; Note that in Emacs 18 match data are clipped to current buffer
998 ;; size...so the buffer should better not be smaller than STRING.
999 (let ((pos 0)
1000 (len (length newtext))
1001 (expanded-newtext ""))
1002 (while (< pos len)
1003 (setq expanded-newtext
1004 (concat expanded-newtext
1005 (let ((c (aref newtext pos)))
1006 (if (= ?\\ c)
1007 (cond ((= ?\& (setq c
1008 (aref newtext
1009 (setq pos (1+ pos)))))
1010 (substring string
1011 (match-beginning 0)
1012 (match-end 0)))
1013 ((and (>= c ?1) (<= c ?9))
1014 ;; return empty string if N'th
1015 ;; sub-regexp did not match:
1016 (let ((n (- c ?0)))
1017 (if (match-beginning n)
1018 (substring string
1019 (match-beginning n)
1020 (match-end n))
1021 "")))
1022 (t
1023 (char-to-string c)))
1024 (char-to-string c)))))
1025 (setq pos (1+ pos)))
1026 expanded-newtext))
1027
1028;; The basic function for half a dozen variations on cp/mv/ln/ln -s. 995;; The basic function for half a dozen variations on cp/mv/ln/ln -s.
1029(defun dired-create-files (file-creator operation fn-list name-constructor 996(defun dired-create-files (file-creator operation fn-list name-constructor
1030 &optional marker-char) 997 &optional marker-char)