From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: File modes facilities. Date: Thu, 20 Oct 2005 11:01:21 +0900 Message-ID: References: <87hdbdxo94.fsf@mahaena.lrde> <87d5m1ufof.fsf@zip.com.au> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1129773743 26381 80.91.229.2 (20 Oct 2005 02:02:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 02:02:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 20 04:02:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESPkM-00075C-7E for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 04:01:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESPkL-0004Vi-Ob for ged-emacs-devel@m.gmane.org; Wed, 19 Oct 2005 22:01:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESPkC-0004Vc-0D for emacs-devel@gnu.org; Wed, 19 Oct 2005 22:01:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESPkA-0004VQ-IA for emacs-devel@gnu.org; Wed, 19 Oct 2005 22:01:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESPkA-0004VN-FY for emacs-devel@gnu.org; Wed, 19 Oct 2005 22:01:22 -0400 Original-Received: from [64.233.184.204] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESPkA-0004HS-86 for emacs-devel@gnu.org; Wed, 19 Oct 2005 22:01:22 -0400 Original-Received: by wproxy.gmail.com with SMTP id 36so198535wra for ; Wed, 19 Oct 2005 19:01:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Qg25ZJBcl8hL/3cBp9NCdmhBF4gzavOT5ukoGxJVupQv8ueC3ZEoVIAOLa1MiRrmTHskd5Z5wicDutoMfbXQcHw41P5E5tZ5w6n7Q5m42XVUhArmItYPdGX6y1Qz7K8QNUhof5TE5mYisNd0cJ1038hJ7Sk0BzAed/ECBjOA7Mk= Original-Received: by 10.54.89.19 with SMTP id m19mr224297wrb; Wed, 19 Oct 2005 19:01:20 -0700 (PDT) Original-Received: by 10.54.160.6 with HTTP; Wed, 19 Oct 2005 19:01:21 -0700 (PDT) Original-To: Kevin Ryde In-Reply-To: <87d5m1ufof.fsf@zip.com.au> Content-Disposition: inline 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:44368 Archived-At: 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?). Then just add an alias chmod =3D> set-file-modes (for those people who are used to unix), and everybody's happy! Er, I think. -miles -- Do not taunt Happy Fun Ball.