From: michael@cadilhac.name (Michaël Cadilhac)
To: Juri Linkov <juri@jurta.org>
Cc: Dan Nicolaescu <dann@ics.uci.edu>, emacs-devel@gnu.org
Subject: Re: suggestion for set-file-modes
Date: Sat, 16 Feb 2008 19:14:36 -0500 [thread overview]
Message-ID: <87lk5k30cz.fsf@cadilhac.name> (raw)
In-Reply-To: <87ir0oscs1.fsf@jurta.org> (Juri Linkov's message of "Sun, 17 Feb 2008 01:27:14 +0200")
[-- Attachment #1: Type: text/plain, Size: 1724 bytes --]
Juri Linkov <juri@jurta.org> writes:
>>> This is very nice, but why you don't accept this string in the same format
>>> allowing the user to enter it in the minibuffer (i.e. why you didn't
>>> implement `file-modes-ls-to-number')?
>>
>> Well, I've never seen anyone (or any tool) using that notation to *set*
>> file modes. Yes, it will allow Emacs to tend to more completeness, but
>> I think Emacs goal lays more in usefulness.
>>
>> Do you have any practical case in which that notation could be more
>> natural?
>
> Wdired mode allows editing such file permissions in the dired buffer
> (when `wdired-allow-to-change-permissions' is non-nil), so it would be
(BTW thanks, looking at this variable allowed me to remove all
references to `dired-chmod-program'.)
> natural to allow entering file permission in the same notation in
> the minibuffer.
I still don't think really so ; the rational for Wdired to permit that
is that the bits are *toggled*, not arbitrary set.
> There already exists a function that converts that notation to the
> number: `wdired-perms-to-number'.
For instance, that function doesn't check for error (it should,
however). The so-said `advanced' mode is only useful for mass chmod-ing
(using replace-string and like), which is not the purpose of
`read-file-modes'.
I'd really prefer not to have two symbolic notations in here.
--
| Michaël `Micha' Cadilhac | I am very sad for you |
| http://michael.cadilhac.name | that you are running |
| JID/MSN: | Windows Vista. |
`---- michael.cadilhac@gmail.com | -- RMS - --'
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2008-02-17 0:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200801201812.m0KICxYl009632@sallyv1.ics.uci.edu>
[not found] ` <871w7jqiic.fsf@cadilhac.name>
[not found] ` <200802112200.m1BM0pke028675@sallyv1.ics.uci.edu>
2008-02-11 23:41 ` suggestion for set-file-modes Michaël Cadilhac
2008-02-16 19:19 ` Juri Linkov
2008-02-16 23:07 ` Michaël Cadilhac
2008-02-16 23:27 ` Juri Linkov
2008-02-17 0:14 ` Michaël Cadilhac [this message]
2008-02-17 0:48 ` Juri Linkov
2008-02-17 1:08 ` Miles Bader
2008-02-17 1:31 ` Juri Linkov
2008-02-17 2:04 ` Michaël Cadilhac
2008-02-17 2:21 ` Miles Bader
2008-02-17 21:54 ` Juri Linkov
2008-07-29 17:43 ` Juri Linkov
2008-02-17 1:39 ` Michaël Cadilhac
2008-02-17 20:29 ` Richard Stallman
2008-02-18 3:01 ` Michaël Cadilhac
2008-02-17 21:57 ` Juri Linkov
2008-02-17 21:55 ` Juri Linkov
2008-02-17 22:18 ` Miles Bader
2008-02-17 22:59 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lk5k30cz.fsf@cadilhac.name \
--to=michael@cadilhac.name \
--cc=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.