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 19:14:36 -0500 Organization: Epita/LRDE Message-ID: <87lk5k30cz.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> 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 1203207397 10022 80.91.229.12 (17 Feb 2008 00:16:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2008 00:16:37 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 17 01:17:01 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 1JQXDI-00075A-8W for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 01:17:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQXCo-00037J-7m for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 19:16:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQXCB-0002hZ-UP for emacs-devel@gnu.org; Sat, 16 Feb 2008 19:15:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQXCA-0002fj-B2 for emacs-devel@gnu.org; Sat, 16 Feb 2008 19:15:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQXC9-0002fN-Ii for emacs-devel@gnu.org; Sat, 16 Feb 2008 19:15:49 -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 1JQXC8-0006WK-TF for emacs-devel@gnu.org; Sat, 16 Feb 2008 19:15:49 -0500 Original-Received: by py-out-1112.google.com with SMTP id u52so1337388pyb.1 for ; Sat, 16 Feb 2008 16:15:48 -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=z9VOhQsJprNpllG8rUNhMiXaB04MVvOrUD4iNN+eOCg=; b=I6Su/vvgMWlUJk+Xg4ue0XuN7T1e02UkoJmJwr5Ii1gNl6QyvkGdJW4OgLFk1kFjKaqn6y5w/aViZfxYDyKHy6zPNz/3qlqi9cW302NmHnl7lChXRqm2iMY6dba3K1lVFj1VeEdEbTpKFaT2fd6eiMc70JbyTe0XgzpsMbZFAZo= 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=dhW+DE0OMrIxJpvhDHoyoMwgwRuIr9YATKiswmtm/qqau6rsV3wuA2sg1QPilOVCrdfGC06RDZ6yNQof5YkSsFl/fWKsN3Ms3qH65mb71GABlWxpPxxrKbzWHcQeFGRSG0QaJQIWqkAhuVBnKnvDr+xgGwKsEYof3wIinRJOQ8Y= Original-Received: by 10.35.111.14 with SMTP id o14mr4852672pym.24.1203207348144; Sat, 16 Feb 2008 16:15:48 -0800 (PST) Original-Received: from mistral ( [74.15.120.173]) by mx.google.com with ESMTPS id v66sm5853677pyh.5.2008.02.16.16.15.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Feb 2008 16:15:47 -0800 (PST) X-Website: http://michael.cadilhac.name 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/3kkg025w2gfAFYKCLluJAc4Ap+h18oo4S8wzaY klDsBUTiY8EZFkg5Iass75FubC9wd8qa0u9+gRxAsAKEaRAo6iB+vwCMGmdBjvgidQGA1ntMX4CS ZYGV/wADyL80LIX/UAAAAABJRU5ErkJggg== In-Reply-To: <87ir0oscs1.fsf@jurta.org> (Juri Linkov's message of "Sun, 17 Feb 2008 01:27: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:89289 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Juri Linkov writes: >>> This is very nice, but why you don't accept this string in the same for= mat >>> allowing the user to enter it in the minibuffer (i.e. why you didn't >>> implement `file-modes-ls-to-number')? >> >> Well, I've never seen anyone (or any tool) using that notation to *set* >> file modes. Yes, it will allow Emacs to tend to more completeness, but >> I think Emacs goal lays more in usefulness. >> >> Do you have any practical case in which that notation could be more >> natural? > > Wdired mode allows editing such file permissions in the dired buffer > (when `wdired-allow-to-change-permissions' is non-nil), so it would be (BTW thanks, looking at this variable allowed me to remove all references to `dired-chmod-program'.) > natural to allow entering file permission in the same notation in > the minibuffer. I still don't think really so=A0; the rational for Wdired to permit that is that the bits are *toggled*, not arbitrary set. > There already exists a function that converts that notation to the > number: `wdired-perms-to-number'. For instance, that function doesn't check for error (it should, however). The so-said `advanced' mode is only useful for mass chmod-ing (using replace-string and like), which is not the purpose of `read-file-modes'. I'd really prefer not to have two symbolic notations in here. =2D-=20 | Micha=EBl `Micha' Cadilhac | I am very sad for you = | | http://michael.cadilhac.name | that you are running = | | JID/MSN: | Windows Vista. = | `---- michael.cadilhac@gmail.com | -- RMS - = --' --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (GNU/Linux) iD8DBQFHt3x2UJhDmOfFA3URAhM8AJsF4it1QjTYt42XbDe5O1PxiViNYQCgnPHc y91DSjEyO69uStA54VRRY0U= =0op6 -----END PGP SIGNATURE----- --=-=-=--