changeset 7945:db1785b91d03

(dired-build-subdir-alist): Don't let looking-at destroy the match data.
author Karl Heuer <kwzh@gnu.org>
date Fri, 17 Jun 1994 22:15:47 +0000
parents a114bbe9a63c
children 4dbba88e2717
files lisp/dired.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Fri Jun 17 21:42:34 1994 +0000
+++ b/lisp/dired.el	Fri Jun 17 22:15:47 1994 +0000
@@ -1368,7 +1368,7 @@
 			 (goto-char (match-beginning 0))
 			 (beginning-of-line)
 			 (forward-char 2)
-			 (looking-at dired-re-perms))))
+			 (save-match-data (looking-at dired-re-perms)))))
 	(save-excursion
 	  (goto-char (match-beginning 1))
 	  (setq new-dir-name