From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Cadilhac Newsgroups: gmane.emacs.devel Subject: Re: File modes facilities. Date: Thu, 20 Oct 2005 12:41:21 +0200 Organization: LRDE Message-ID: <87fyqwxyge.fsf@mahaena.lrde> References: <87hdbdxo94.fsf@mahaena.lrde> <87d5m1qm8w.fsf-monnier+emacs@gnu.org> <877jc92o37.fsf@mahaena.lrde> <17238.50816.352274.312799@kahikatea.snap.net.nz> <87u0fd9let.fsf@mahaena.lrde> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129807827 22685 80.91.229.2 (20 Oct 2005 11:30:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 11:30:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 20 13:30:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESYaR-0005Gk-NU for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 13:27:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESYaQ-0000r4-Lg for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 07:27:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESXpE-0003jA-2k for emacs-devel@gnu.org; Thu, 20 Oct 2005 06:39:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESXpB-0003ij-FY for emacs-devel@gnu.org; Thu, 20 Oct 2005 06:39:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESXp9-0003iV-Nk for emacs-devel@gnu.org; Thu, 20 Oct 2005 06:39:03 -0400 Original-Received: from [163.5.254.26] (helo=kualalumpur.lrde.epita.fr) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1ESXp7-0001Lm-8R; Thu, 20 Oct 2005 06:39:02 -0400 Original-Received: from mahaena.lrde.epita.fr ([192.168.101.66] helo=mahaena.lrde) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.50) id 1ESXp2-00064t-JN; Thu, 20 Oct 2005 12:38:56 +0200 Original-To: Eli Zaretskii Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEU/JREXDATg1LV8UCao i1fQpmoP3Nd6AAACa0lEQVQ4jWWUQW7jMAxFqZEPICJzAjXeM6W8dyNqX9ji/a8yn04xnWIEJLD9 LJH85DcJFyJV3erqPty8ExHfBikXSdn0WVezC0hOAQiA2nCsAHOqEnPe4k+puU8zw/t+xquqjRKA 4lHsmQBT8C5pDtBwfwH8VdcHI5+FHtjRxrQRwZsf3hNjZRKAPEzHEdH9mFNSYb5dQK3r8KM6ftNy KikAirDZFWdVkDqbxjGFbAcwbQCxxc8mPRHUGOcCIMgMACV23RfJTch3gC6ofT3qCdG0NyUUPfYF yQrKCIAnuYsgX2qPzW2i9sNrfSOSPPZQiygtCNlCjlpXJV38lIKshF/AZzsAMoArdCKNHfXukPuJ ImbLh+9J2gXwap0QpZ7NjZ7ekdkFcDiqPiLGcHmuvaG/AHgy62s52Lae1ABoA7D6d2kDoAvgbnyD ZutEd6lTHOXfYPHVJDH1K8a1+oyrjoZpAGn1x5pfwPr2E9yjxSpk50/gEyKgD/+BD/KzN3tQ13b8 Cx5loF0AgnZf5IUny9hRHQOYBllHDM+6s3oviZBu77mFjDm621Np3hkjR90wE1BkTYvhdDgDgCmR xWChFfcYAOqMm5NZkVWMur8AL5+oeMQOob2FmY76FiM+PrDDZypwGdqokSlAaQOmGH6mW8KpsOwl 0YOLedjSITr6scNRF8D4PesH33QmLrx8AzjpV/3kk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/gKJgkqucr/rcQAAAABJRU5ErkJggg== In-Reply-To: (Eli Zaretskii's message of "Thu, 20 Oct 2005 11:04:25 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44403 Archived-At: Eli Zaretskii writes: >> From: Michael Cadilhac >> >> > > >> 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. >> > >> > In Dired, type M (`dired-do-chmod')? >> >> First, it uses dired. Second, it uses the chmod(1) executable >> > It sounds like you won't accept any solution except your own ;-) Hehe :-) The principal thing that keeps me up is that I don't have chmod(1) on my (poorly configured) Windows, and that I chmod quite often the file I work with (I chmod -w file I don't want to modify, but if I really have to, I chmod them back +w) :-) > FWIW, I think the natural place for changing files' modes is in > Dired; Yep, if I plan to work with files, I'll launch a dired, then use M. My point is that I'm most likely to change modes of one file, and search it in dired mode is not the most direct way I know. > a separate interactive command, while I don't object to it, will be > used only by those who prefer command-line UI to GUI. In that case, I see the GUI as a waste of time :-p > If we want dired-do-chmod to work on systems without an external chmod > command, we can easily modify dired-do-chmod to use set-file-modes. Yep, please do, but please do it with symbol parsing ([ugoa]*([+-=][rwxXstugo]+)+,...) too :-) I'll then make my own wrapper around newly coded functions to have the features I use ;-) Thanks :-) -- 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/-@t-/@/ my mail address. 94270 Le Kremlin Bicetre | 06.23.20.31.30 |