diff options
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/wdired.el | 32 |
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 @@ | |||
| 1 | 2012-08-05 Chong Yidong <cyd@gnu.org> | 1 | 2012-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> |
| 188 | Press \\[wdired-finish-edit] to make the changes to take effect | 188 | In WDired mode, you can edit the names of the files in the |
| 189 | and exit. To abort the edit, use \\[wdired-abort-changes]. | 189 | buffer, the target of the links, and the permission bits of the |
| 190 | files. | ||
| 190 | 191 | ||
| 191 | In this mode you can edit the names of the files, the target of | 192 | Type \\[wdired-finish-edit] to exit WDired mode, returning to |
| 192 | the links and the permission bits of the files. You can use | 193 | Dired mode, and make your edits \"take effect\" by modifying the |
| 193 | \\[customize-group] RET wdired to customize WDired behavior. | 194 | file and directory names, link targets, and/or file permissions |
| 195 | on disk. If you delete the filename of a file, it is flagged for | ||
| 196 | deletion in the Dired buffer. | ||
| 197 | |||
| 198 | Type \\[wdired-abort-changes] to abort your edits and exit WDired mode. | ||
| 199 | |||
| 200 | Type \\[customize-group] RET wdired to customize WDired behavior. | ||
| 194 | 201 | ||
| 195 | The only editable texts in a WDired buffer are filenames, | 202 | The only editable texts in a WDired buffer are filenames, |
| 196 | symbolic link targets, and filenames permission." | 203 | symbolic 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> |
| 206 | This mode allows the user to change the names of the files, and after | 213 | In WDired mode, you can edit the names of the files in the |
| 207 | typing \\[wdired-finish-edit] Emacs renames the files and directories | 214 | buffer, the target of the links, and the permission bits of the |
| 208 | in disk. | 215 | files. After typing \\[wdired-finish-edit], Emacs modifies the files and |
| 216 | directories to reflect your edits. | ||
| 209 | 217 | ||
| 210 | See `wdired-mode'." | 218 | See `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)) |