From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: File modes facilities. Date: Thu, 20 Oct 2005 11:04:25 +0200 Message-ID: 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1129803945 10483 80.91.229.2 (20 Oct 2005 10:25:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 10:25:45 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 20 12:25:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESXbM-0005im-5Z for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 12:24:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESXbL-00005y-Ac for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 06:24:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESWMW-0004kZ-UW for emacs-devel@gnu.org; Thu, 20 Oct 2005 05:05:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESWMT-0004k2-LC for emacs-devel@gnu.org; Thu, 20 Oct 2005 05:05:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESWMM-0004jU-Fc for emacs-devel@gnu.org; Thu, 20 Oct 2005 05:05:17 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESWMM-0003B4-4x for emacs-devel@gnu.org; Thu, 20 Oct 2005 05:05:14 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-148-220.inter.net.il [80.230.148.220]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CTG67801 (AUTH halo1); Thu, 20 Oct 2005 11:04:21 +0200 (IST) Original-To: Michael Cadilhac In-reply-to: <87u0fd9let.fsf@mahaena.lrde> (message from Michael Cadilhac on Thu, 20 Oct 2005 00:44:42 +0200) 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:44395 Archived-At: > From: Michael Cadilhac > Date: Thu, 20 Oct 2005 00:44:42 +0200 > Cc: Stefan Monnier , emacs-devel@gnu.org > > > > >> 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) It sounds like you won't accept any solution except your own ;-) FWIW, I think the natural place for changing files' modes is in Dired; a separate interactive command, while I don't object to it, will be used only by those who prefer command-line UI to GUI. And I don't see what's the big deal with ``launching Dired''. 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. That's a smaller and easier change than adding a whole new suite of commands with yet another UI.