From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: Re: suggestion for set-file-modes Date: Sat, 16 Feb 2008 21:04:42 -0500 Organization: Epita/LRDE Message-ID: <877ih42v9h.fsf@cadilhac.name> References: <200801201812.m0KICxYl009632@sallyv1.ics.uci.edu> <871w7jqiic.fsf@cadilhac.name> <200802112200.m1BM0pke028675@sallyv1.ics.uci.edu> <87r6fjoybf.fsf@cadilhac.name> <87y79ku2tf.fsf@jurta.org> <87r6fc33g5.fsf@cadilhac.name> <87ir0oscs1.fsf@jurta.org> <87lk5k30cz.fsf@cadilhac.name> <873arso1bv.fsf@jurta.org> <874pc8s82w.fsf@catnip.gol.com> <87tzk8l671.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1203213973 24365 80.91.229.12 (17 Feb 2008 02:06:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2008 02:06:13 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org, Miles Bader To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 17 03:06:35 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JQYvF-0003fD-6F for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 03:06:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQYul-00021M-0m for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 21:05:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQYug-00021A-K9 for emacs-devel@gnu.org; Sat, 16 Feb 2008 21:05:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQYue-00020X-S7 for emacs-devel@gnu.org; Sat, 16 Feb 2008 21:05:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQYue-00020N-Iq for emacs-devel@gnu.org; Sat, 16 Feb 2008 21:05:52 -0500 Original-Received: from py-out-1112.google.com ([64.233.166.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQYue-0000XH-17 for emacs-devel@gnu.org; Sat, 16 Feb 2008 21:05:52 -0500 Original-Received: by py-out-1112.google.com with SMTP id u52so1353164pyb.1 for ; Sat, 16 Feb 2008 18:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:organization:references:x-website:face:date:in-reply-to:message-id:user-agent:mime-version:content-type:sender; bh=Alo25vZDUcdqwPRuz45Ut5RgTlLm+r4yTLidet/byMQ=; b=spc+1HxeKHz4SOf36HBbxVX8cNRaPV5Cw0UPslTPzS5gQz2YMJNFaYeg6Lxl3atB9jRBuqPBbKZrLrKFWDh6guhrxNyYP+YPvsC9phyb0DF85mJhAirXB7f8JY6YBxhSit4/QhGgyl/NgyKDYRxshnBHq2fpPPUvcdgT49yOYks= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:x-website:face:date:in-reply-to:message-id:user-agent:mime-version:content-type:sender; b=QfjjRCzSBU105Hp89m/FOMW6CwnLZ4ejFaI+AHVTHjxyIUydTYTtu8YH9DLhE9n83pmczc3viY3L5brGtJZOqGucdrbxNdmGZAnQdU2YFNK852FtR9Inst3V1nwWDxrCiOIVevv+YqVyX7/7D9GNwlz5gM/qW3yf4k6/kpjn3h8= Original-Received: by 10.35.96.11 with SMTP id y11mr4923188pyl.44.1203213951510; Sat, 16 Feb 2008 18:05:51 -0800 (PST) Original-Received: from mistral ( [65.95.81.34]) by mx.google.com with ESMTPS id a78sm5888192pye.19.2008.02.16.18.05.49 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Feb 2008 18:05:50 -0800 (PST) X-Website: http://michael.cadilhac.name 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+UHKHHa32h6aPnAm3/pUcWp+WYnTQAAAABJRU5ErkJggg== In-Reply-To: <87tzk8l671.fsf@jurta.org> (Juri Linkov's message of "Sun, 17 Feb 2008 03:31:14 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:89304 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Juri Linkov writes: >> Soooo, why not convert it to an appropriate "input form" for putting in >> the prompt/default ? >> >> E.g., -rwxrwxrw- =3D> "ug=3Drwx,o=3Drw" As I said to Dan before, I think symbolic notation is about applying a mask to the existing file's modes, not editing them. Of course, after `u=3Drwx,g=3Drwx,o=3Drw' I can (more or less comfortably) add my mask `,a-w= ', but still, I don't see any case when I'd want to *edit* modes. > That would be nice, maybe with separating every part even with the same > permissions, e.g. "u=3Drwx,g=3Drwx,o=3Drw" for less editing when the user= and > group part need different permissions. Well, what if I need to remove writing rights for everybody? There's no canonical notation (why not `ugo=3Drw,ug+x', or `ugo=3Drwx,o-x'?), and it'd be painful for the user to first read the mode to see if it fits his needs, modify them if it's the case or apply a `,a-w' mask after if it isn't. I'm pretty much convinced we should not take an arbitrary decision about that canonical form (the only canonical form I can think of is the octal version). Well, all this is my own point of view: when I want to remove write rights for everyone, I think about `a-w', not about going through a description and editing it. But again, if enough people think it could be useful, there's no problem adding it. =2D-=20 | Micha=EBl `Micha' Cadilhac | 21 seems like a good value: half o= f | | http://michael.cadilhac.name | of 42 and just old enough to drink! = | | JID/MSN: | Why would you want to change it? = | `---- michael.cadilhac@gmail.com | -- Stefan Monnier - = --' --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (GNU/Linux) iD8DBQFHt5Y+UJhDmOfFA3URApDuAJ4vVdF+jtRetLIF/Z7A/gJ6myD27QCfcUmQ PkIr+/hsATGghjfzr/FkYtk= =5nIr -----END PGP SIGNATURE----- --=-=-=--