aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/wdired.el32
2 files changed, 23 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1df710cc189..a04952def89 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12012-08-05 Chong Yidong <cyd@gnu.org> 12012-08-05 Chong Yidong <cyd@gnu.org>
2 2
3 * wdired.el (wdired-mode, wdired-change-to-wdired-mode): Doc
4 fixes.
5
3 * fringe.el (fringe-styles): Add docstring. 6 * fringe.el (fringe-styles): Add docstring.
4 (fringe--check-mode): New function. 7 (fringe--check-mode): New function.
5 (set-fringe-mode, set-fringe-style): Use it. 8 (set-fringe-mode, set-fringe-style): Use it.
diff --git a/lisp/wdired.el b/lisp/wdired.el
index d5ce0beccbb..b893e8f6f2b 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -183,14 +183,21 @@ program `dired-chmod-program', which must exist."
183 183
184 184
185(defun wdired-mode () 185(defun wdired-mode ()
186 "Writable Dired mode. 186 "Writable Dired (WDired) mode.
187\\<wdired-mode-map> 187\\<wdired-mode-map>
188Press \\[wdired-finish-edit] to make the changes to take effect 188In WDired mode, you can edit the names of the files in the
189and exit. To abort the edit, use \\[wdired-abort-changes]. 189buffer, the target of the links, and the permission bits of the
190files.
190 191
191In this mode you can edit the names of the files, the target of 192Type \\[wdired-finish-edit] to exit WDired mode, returning to
192the links and the permission bits of the files. You can use 193Dired mode, and make your edits \"take effect\" by modifying the
193\\[customize-group] RET wdired to customize WDired behavior. 194file and directory names, link targets, and/or file permissions
195on disk. If you delete the filename of a file, it is flagged for
196deletion in the Dired buffer.
197
198Type \\[wdired-abort-changes] to abort your edits and exit WDired mode.
199
200Type \\[customize-group] RET wdired to customize WDired behavior.
194 201
195The only editable texts in a WDired buffer are filenames, 202The only editable texts in a WDired buffer are filenames,
196symbolic link targets, and filenames permission." 203symbolic link targets, and filenames permission."
@@ -201,16 +208,17 @@ symbolic link targets, and filenames permission."
201 208
202;;;###autoload 209;;;###autoload
203(defun wdired-change-to-wdired-mode () 210(defun wdired-change-to-wdired-mode ()
204 "Put a dired buffer in a mode in which filenames are editable. 211 "Put a Dired buffer in Writable Dired (WDired) mode.
205\\<wdired-mode-map> 212\\<wdired-mode-map>
206This mode allows the user to change the names of the files, and after 213In WDired mode, you can edit the names of the files in the
207typing \\[wdired-finish-edit] Emacs renames the files and directories 214buffer, the target of the links, and the permission bits of the
208in disk. 215files. After typing \\[wdired-finish-edit], Emacs modifies the files and
216directories to reflect your edits.
209 217
210See `wdired-mode'." 218See `wdired-mode'."
211 (interactive) 219 (interactive)
212 (or (eq major-mode 'dired-mode) 220 (unless (eq major-mode 'dired-mode)
213 (error "Not a Dired buffer")) 221 (error "Not a Dired buffer"))
214 (set (make-local-variable 'wdired-old-content) 222 (set (make-local-variable 'wdired-old-content)
215 (buffer-substring (point-min) (point-max))) 223 (buffer-substring (point-min) (point-max)))
216 (set (make-local-variable 'wdired-old-point) (point)) 224 (set (make-local-variable 'wdired-old-point) (point))