info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dired-do-shell-command does not pass `pwd'


From: Sébastien Vauban
Subject: Re: Dired-do-shell-command does not pass `pwd'
Date: Mon, 09 Nov 2009 09:48:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hi Tassilo,

Tassilo Horn wrote:
> Sébastien Vauban <wxhgmqzgwmuf@spammotel.com>
> writes:
>
> Hi Sébastien,
>
>> I often want to type `X' in dired in order to run `soffice' (for example) on 
>> a
>> `.doc' file, for example: /home/sva/Desktop/xyz.doc'.
>>                                    ^^^^^^^^^
>> Though, when OpenOffice.org opens, it fails to read the file, stating it 
>> can't
>> find the file `/home/sva/xyz.doc'.
>>                         ^
>> Any idea how to make `dired-do-shell-command' aware of the current
>> directory the file is in?
>
> Normally, it should be aware of that.  For me it works.

Just to ensure we talk of the same function, hitting `!' in my Emacs (when on
a dired buffer) calls the following function:

--8<---------------cut here---------------start------------->8---
! runs the command dired-do-shell-command, which is an interactive compiled
  Lisp function.

It is bound to X, !, <menu-bar> <operate> <command>.

(dired-do-shell-command command &optional arg file-list)

Run a shell command command on the marked files. [...]
--8<---------------cut here---------------end--------------->8---


> What does
>
>   C-h v dired-directory RET
>
> in that dired buffer say?

--8<---------------cut here---------------start------------->8---
dired-directory's value is "~/Desktop/"
Local in buffer Desktop; global value is nil

Documentation:
The directory name or wildcard spec that this dired directory lists.
Local to each dired buffer.  May be a list, in which case the car is the
directory name and the cdr is the list of files to mention.
The directory name must be absolute, but need not be fully expanded.
--8<---------------cut here---------------end--------------->8---

Does this help for helping me?

Best regards,
  Seb

-- 
Sébastien Vauban


reply via email to

[Prev in Thread] Current Thread [Next in Thread]