aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2002-12-21 17:06:54 +0000
committerAndreas Schwab2002-12-21 17:06:54 +0000
commit2bb27597b3c800f8d9771029c696cb2bcd7a6731 (patch)
tree2063ca5991f30f6eb77c1e1c8a6954d90c4b7202
parent7b11d96e3301b9cf22bf4ad9f50b791017487814 (diff)
downloademacs-2bb27597b3c800f8d9771029c696cb2bcd7a6731.tar.gz
emacs-2bb27597b3c800f8d9771029c696cb2bcd7a6731.zip
(dired-insert-directory): Preserve text properties when quoting.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/dired.el10
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 167c1f73548..3dbf8d5e029 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-12-21 Andreas Schwab <schwab@suse.de>
2
3 * dired.el (dired-insert-directory): Preserve text properties
4 when quoting.
5
12002-12-20 Francesco Potort,Al(B <pot@gnu.org> 62002-12-20 Francesco Potort,Al(B <pot@gnu.org>
2 7
3 * mail/undigest.el (rmail-mail-separator): Renamed from 8 * mail/undigest.el (rmail-mail-separator): Renamed from
diff --git a/lisp/dired.el b/lisp/dired.el
index 68c6ffc8bc1..11669400ad6 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -693,10 +693,16 @@ If HDR is non-nil, insert a header line with the directory name."
693 (setq end (point-marker)) 693 (setq end (point-marker))
694 (goto-char opoint) 694 (goto-char opoint)
695 (while (search-forward "\\" end t) 695 (while (search-forward "\\" end t)
696 (replace-match "\\\\" nil t)) 696 (replace-match (apply #'propertize
697 "\\\\"
698 (text-properties-at (match-beginning 0)))
699 nil t))
697 (goto-char opoint) 700 (goto-char opoint)
698 (while (search-forward "\^m" end t) 701 (while (search-forward "\^m" end t)
699 (replace-match "\\015" nil t)) 702 (replace-match (apply #'propertize
703 "\\015"
704 (text-properties-at (match-beginning 0)))
705 nil t))
700 (set-marker end nil))) 706 (set-marker end nil)))
701 (dired-insert-set-properties opoint (point)) 707 (dired-insert-set-properties opoint (point))
702 ;; If we used --dired and it worked, the lines are already indented. 708 ;; If we used --dired and it worked, the lines are already indented.