Mercurial > emacs
comparison lisp/dired.el @ 1755:83734c185e01
(dired-regexp-history): New history list.
(dired-read-regexp): Use that history list. Take just one arg.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 09 Jan 1993 13:53:49 +0000 |
parents | ecf43116a845 |
children | bd3c525fa6fc |
comparison
equal
deleted
inserted
replaced
1754:71e65e9d4f86 | 1755:83734c185e01 |
---|---|
1603 (interactive "p") | 1603 (interactive "p") |
1604 (dired-unmark (- arg))) | 1604 (dired-unmark (- arg))) |
1605 | 1605 |
1606 ;;; Commands to mark or flag files based on their characteristics or names. | 1606 ;;; Commands to mark or flag files based on their characteristics or names. |
1607 | 1607 |
1608 (defun dired-read-regexp (prompt &optional initial) | 1608 (defvar dired-regexp-history nil |
1609 ;; This is an extra function so that gmhist can redefine it. | 1609 "History list of regular expressions used in Dired commands.") |
1610 (setq dired-flagging-regexp | 1610 |
1611 (read-string prompt (or initial dired-flagging-regexp)))) | 1611 (defun dired-read-regexp (prompt) |
1612 (read-from-minibuffer prompt nil nil nil 'dired-regexp-history)) | |
1612 | 1613 |
1613 (defun dired-mark-files-regexp (regexp &optional marker-char) | 1614 (defun dired-mark-files-regexp (regexp &optional marker-char) |
1614 "Mark all files matching REGEXP for use in later commands. | 1615 "Mark all files matching REGEXP for use in later commands. |
1615 A prefix argument means to unmark them instead. | 1616 A prefix argument means to unmark them instead. |
1616 `.' and `..' are never marked. | 1617 `.' and `..' are never marked. |