emacs-devel
[Top][All Lists]
Advanced

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

Re: File modes facilities.


From: Michael Cadilhac
Subject: Re: File modes facilities.
Date: Thu, 20 Oct 2005 01:00:55 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

address@hidden (Kim F. Storm) writes:

> Michael Cadilhac <address@hidden> writes:
>
>> Nick Roberts <address@hidden> writes:
>>
>>>  > >>   I don't know any  way to change the modes of a  file, or even of the
>>>  > >>   current file, within emacs.
>>>  > >
>>>  > > C-h f set-file-modes RET
>>>  > 
>>>  >   I meant in an user-friendly way, that's to say, without M-:, and
>>>  >   without calculating the mode.
>>>
>>> In Dired, type M (`dired-do-chmod')?
>>
>>   First, it  uses dired,  and I don't  want to  launch a dired  of the
>>   current directory to modify current-file modes.
>>
>>   Second, it uses the chmod(1) executable, which, beside the fact that
>>   another program is called, is not compatible with systems that don't
>>   have  that kind  of binary  installed (like  if one  just downloaded
>>   a compiled version of emacs for Windows on http://www.crasseux.com)
>
> Isn't there something in eshell that can do this?  It supports chmod.

  M-x eshell-command RET chmod =rwx /tmp/a RET

  Same thing: it uses the chmod(1) binary, the prompt is weirdly
  managed and error are reported only with the binary output.

  Well, it's more or less the same  that M-! with a bogus (or at least
  not  intuitive   as  it  doesn't  follow   emacs  conventions)  file
  completion.

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |  Please note that you should
  2 rue de la Convention | 08.70.65.13.14 |  s/address@hidden/@/ my mail 
address.
94270 Le Kremlin Bicetre | 06.23.20.31.30 |




reply via email to

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