为什么dired-do-shell命令不能在'。要么 '..'? [英] Why can dired-do-shell-command not operate on '.' or '..'?

查看:95
本文介绍了为什么dired-do-shell命令不能在'。要么 '..'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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命令不能在'。要么 '..'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆