问题描述
在 cygwin 中使用 emacs ,一个shell命令我经常使用 dired 使用的缓冲区绑定到 dired-do-shell-command 是 cygstart ,.eg打开Word文档或Visual Studio项目或其他任何东西。
Using emacs on cygwin, one shell command I use very often from dired buffers using bound to dired-do-shell-command is cygstart, .e.g to open a Word document or a Visual Studio project or whatever.
但是点击!在当前目录条目。,导致错误无法在上运行。或 .. '。
But hitting ! on current directory entry, ., results in error Cannot operate on.' or ..'.
我想在我绕过它之前找出并允许在当前和父目录上运行命令。
I wanted to find out before I bypass it and allow the command to be run on current and parent directories. Is there any reason for this restriction?
推荐答案
这个限制因为问题被解除了
This restriction has been lifted since the question was asked.
在当前稳定版本的Emacs(24.3)中,您可以使用 dired-do-shell-command 在。和 ..
In the current stable release of Emacs (24.3), you can use dired-do-shell-command on . and ..
这篇关于为什么dired-do-shell命令不能在'。要么 '..'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!