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 09:12:05 +0200 Organization: LRDE Message-ID: <87ach4achm.fsf@mahaena.lrde> References: <87hdbdxo94.fsf@mahaena.lrde> <87d5m1ufof.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129794901 15115 80.91.229.2 (20 Oct 2005 07:55:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 07:55:01 +0000 (UTC) Cc: emacs-devel@gnu.org, Kevin Ryde , miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 20 09:54:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESVEY-00085W-OH for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 09:53:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESVDh-0002I4-8B for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 03:52:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESUYd-0003IL-Km for emacs-devel@gnu.org; Thu, 20 Oct 2005 03:09:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESUYb-0003Hu-Ia for emacs-devel@gnu.org; Thu, 20 Oct 2005 03:09:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESUYa-0003Hp-Pb for emacs-devel@gnu.org; Thu, 20 Oct 2005 03:09:45 -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 1ESUYZ-0003zg-Fa; Thu, 20 Oct 2005 03:09:43 -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 1ESUYX-0002q6-FO; Thu, 20 Oct 2005 09:09:41 +0200 Original-To: snogglethorpe@gmail.com Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWPh+Tai+5r5YKBAEU CQQzGAtiq7gjAAACR0lEQVQ4jW2UzW7lIAyFzVW8BzTZX5DmCZLuU2H2pMXv/ypzbK7aSh2kRCRf /HNsE0q7Sg+RQ7JFKaqtrRNAl5AIIKe6D5DBqgbmUAe5hBI1wIRFAHjeM0RKtZi7XVVEpb0BSNfA IddChChT5DildSLWOWhY5IEItMnncZgFcUAc/5jjwCMsDosRNdfKPDTFEdVBW8C+RebDb4N5Orio RhM1+11IJyx0ng2+LryFHBMPDQDYHrY6IfGuU3ouiXTQNE8LIJDKOWpNxERTFrggQwRPd7USUsTW fJ0XbR3bdj5KgBYy4SACpxDeUYEUAzLmtJ1iIrD2gczPq8Qomjhsh/RjGIgKIO8p7NITjwlx7WID nsnQe5NeuTvoBpi8LX6vLLOh5icjOHqBypgnuSp7M+RE1agbQKHQr5E2z1WObhYW4gMqeGQL7joM jCf2DxSk5ApADSYHfFF4igNfJZL1z0GKP0FN02s4XiDXr7V5P94W6I9v8MfBOQDmfwAaVYt+x8Da v4DJvX8BAdin3Knm5yMZYAO4ABDkDniZLLfi4P40gP1F0TPGZOu0CGwA1lcowxwlGy6A9705mD0V jHCxwVZT/hYdRJVUGZNlx6l7ScQBTluof6Wj6bsPYlvpwoTvXFD9gHPn2TZPF3ntI2ecxVrW5MrV XiCie5EeNa7BlWu/HNSkprDUva163PHxAv5jyGV7gVzyAghSKOTnat85UIYFICXbD2NV9rRiv0BS tKQsg6OHH4A15F1WW+UHKHHa32h6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.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:44389 Archived-At: Miles Bader writes: > 2005/10/20, Kevin Ryde : >> I made myself M-x chmod below, to change the current visited file. I >> usually just want to make a script executable. I know there's an >> executable-chmod or something, but I can never remember and prefer >> typing 755 or 700. The save-buffer is in case it's a new file. > > Why not (1) Give `set-file-modes' an interactive spec (defaulting to > the current buffer's filename), and (2) make `set-file-modes' > understand chmod-style strings as well as integer modes (I guess the > interactive spec would have to decide how to parse integers -- would > defaulting to octal be reasonable?). Isn't that more or less what I proposed in my package proposal ? - A `chmod-style strings' parser, - A facility to have M-x chmod understand both octal and symbolic modes, - A way to change the current file modes without saving it. ? -- 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 |