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: Fri, 21 Oct 2005 23:14:14 +0900 Message-ID: References: <87hdbdxo94.fsf@mahaena.lrde> <877jc92o37.fsf@mahaena.lrde> <17238.50816.352274.312799@kahikatea.snap.net.nz> <87u0fd9let.fsf@mahaena.lrde> <87oe5jmu9j.fsf-monnier+emacs@gnu.org> <87y84n81q2.fsf@mahaena.lrde> 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 1129907066 16062 80.91.229.2 (21 Oct 2005 15:04:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2005 15:04:26 +0000 (UTC) Cc: Andreas Schwab , Eli Zaretskii , emacs-devel@gnu.org, Stefan Monnier , "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 21 17:04:23 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESyOa-00072W-2N for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 17:01:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESyOZ-0007V3-LZ for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 11:01:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESxez-0004m3-Si for emacs-devel@gnu.org; Fri, 21 Oct 2005 10:14:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESxey-0004lc-9f for emacs-devel@gnu.org; Fri, 21 Oct 2005 10:14:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESxex-0004lY-Um for emacs-devel@gnu.org; Fri, 21 Oct 2005 10:14:16 -0400 Original-Received: from [64.233.184.204] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESxex-00051y-Jm for emacs-devel@gnu.org; Fri, 21 Oct 2005 10:14:15 -0400 Original-Received: by wproxy.gmail.com with SMTP id i11so380667wra for ; Fri, 21 Oct 2005 07:14:15 -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=UyNXRpWFFNTujXbFHM45AtbJyXtCojWiAN/JjW6gGldwS2694MtijCen6EySmK4SO8LpmWnIKoEQDAKSIIe7hDfvmrdQcDWUqN0V1wZ1WZPij3175XF2/5od2OyZWftz60TqpLsyitjC5vuY7aCMhF4D6QFxutQ9xe68obLT/Xg= Original-Received: by 10.54.146.10 with SMTP id t10mr1791762wrd; Fri, 21 Oct 2005 07:14:14 -0700 (PDT) Original-Received: by 10.54.160.6 with HTTP; Fri, 21 Oct 2005 07:14:14 -0700 (PDT) Original-To: Michael Cadilhac In-Reply-To: <87y84n81q2.fsf@mahaena.lrde> 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:44504 Archived-At: 2005/10/21, Michael Cadilhac : > > I don't think that is needed. It is already possible and much easier t= o > > provide a lisp wrapper that implements any fancy interactive spec as > > needed. > > Yes, it is, but I don't see any interest of providing to the final > user a function ``set-file-modes'' and another > ``set-file-modes-that-really-works-as-you-expect'' when one could be > sufficient, nop ? Well having two "almost equivalent" entry points instead of one is bad, so it should be avoided when possible. But you can work around such ugliness to some degree by making the C function a non-advertised internal function, e.g., call the C function "set-file-modes-internal", and provide a lisp wrapper for the fancy stuff that everybody would call. Still, adding lisp interactive specs to C functions would be very useful, and much cleaner than having 2*n functions, especially if it's as simple as Kim suggested. -Miles -- Do not taunt Happy Fun Ball.