【发布时间】:2020-11-18 10:07:19
【问题描述】:
dired-do-redisplay 的用例是什么?我正在阅读 Emacs Dired 文档并尝试了解用例/工作流程。见Dired Documentation
【问题讨论】:
dired-do-redisplay 的用例是什么?我正在阅读 Emacs Dired 文档并尝试了解用例/工作流程。见Dired Documentation
【问题讨论】:
文档字符串 (C-h f) 明确了命令的用途,我认为:
,----
| `dired-do-redisplay` is an interactive autoloaded compiled Lisp function
| in `dired-aux.el`.
|
| It is bound to l.
|
| `(dired-do-redisplay &optional ARG TEST-FOR-SUBDIR)`
|
| Redisplay all marked (or next `ARG`) files.
| If on a subdir line, redisplay that subdirectory. In that case,
| a prefix arg lets you edit the `ls' switches used for the new listing.
|
| Dired remembers switches specified with a prefix arg, so that reverting
| the buffer will not reset them. However, using `dired-undo` to re-insert
| or delete subdirectories can bypass this machinery. Hence, you sometimes
| may have to reset some subdirectory switches after a `dired-undo`.
| You can reset all subdirectory switches to the default using
| `M-x dired-reset-subdir-switches`.
| See Info node `(emacs)Subdir switches` for more details.
`----
例如,Dired 显示不会自动更新以反映 Emacs 之外的更改(除非您设置了自动恢复选项)。此命令实质上仅恢复某些文件或子目录列表的列表。对于子目录列表,它允许您提供不同的ls 开关,因此您可以使用这些指定的开关重新列出。
【讨论】: