From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: File modes facilities. Date: Fri, 21 Oct 2005 12:58:07 +0200 Message-ID: References: <87hdbdxo94.fsf@mahaena.lrde> <87d5m1qm8w.fsf-monnier+emacs@gnu.org> <877jc92o37.fsf@mahaena.lrde> <17238.50816.352274.312799@kahikatea.snap.net.nz> <87u0fd9let.fsf@mahaena.lrde> <87oe5jmu9j.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129898484 17053 80.91.229.2 (21 Oct 2005 12:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2005 12:41:24 +0000 (UTC) Cc: Eli Zaretskii , Michael Cadilhac , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 21 14:41:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESwAq-0008VN-ST for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 14:39:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESwAq-0007rU-0q for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 08:39:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESvSX-00051Q-P3 for emacs-devel@gnu.org; Fri, 21 Oct 2005 07:53:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESuzq-0000lM-VZ for emacs-devel@gnu.org; Fri, 21 Oct 2005 07:23:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESucG-0001bi-1Q for emacs-devel@gnu.org; Fri, 21 Oct 2005 06:59:18 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESuc8-0007QA-HA; Fri, 21 Oct 2005 06:59:09 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id 3FC15262856; Fri, 21 Oct 2005 12:59:01 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <87oe5jmu9j.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 20 Oct 2005 23:21:45 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.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:44492 Archived-At: Stefan Monnier writes: >>> but providing `chmod' (or making set-file-modes into a command) is >>> a good idea. > >> set-file-modes is a nice simple function in C. >> IMHO, a more advanced chmod command should be implemented in Lisp. > > Agreed. I actually firmly believe that we should be able to provide > elisp code for the interactive spec of a C function. > This would also allow us to get rid of the load vs load-file distinction > and to improve various other commands implemented in C where the minibuffer > query only provides a fairly dull default. Like this? *** data.c 19 Sep 2005 00:24:45 +0200 1.254 --- data.c 21 Oct 2005 12:54:00 +0200 *************** *** 786,791 **** --- 786,794 ---- if (SUBRP (fun)) { + Lisp_Object spec; + if ((spec = Fget (fun, Qinteractive))) + return list2 (Qinteractive, spec); if (XSUBR (fun)->prompt) return list2 (Qinteractive, build_string (XSUBR (fun)->prompt)); } -- Kim F. Storm http://www.cua.dk