From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Interactive specs of C functions. Date: Sat, 08 Sep 2007 03:01:04 -0400 Message-ID: References: <87sl5qr093.fsf@cadilhac.name> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1189237098 3919 80.91.229.12 (8 Sep 2007 07:38:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2007 07:38:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 08 09:38:18 2007 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 1ITutP-0001OX-70 for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2007 09:38:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITutN-0002js-4n for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2007 03:38:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITupg-0001As-Uw for emacs-devel@gnu.org; Sat, 08 Sep 2007 03:34:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITupe-00018R-3E for emacs-devel@gnu.org; Sat, 08 Sep 2007 03:34:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITupd-00018E-H0 for emacs-devel@gnu.org; Sat, 08 Sep 2007 03:34:17 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITupd-000452-3J for emacs-devel@gnu.org; Sat, 08 Sep 2007 03:34:17 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1ITuJU-0003Fo-H7; Sat, 08 Sep 2007 03:01:04 -0400 In-reply-to: <87sl5qr093.fsf@cadilhac.name> (michael@cadilhac.name) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:78230 Archived-At: Kim F. Storm proposed good-looking solutions, but they were discarded because the specs were specified in another file, or something like that. It wasn't clear if it really was a bad idea (in fact, I liked it=A0;-)) but AFAICS, the problem is still there. An idea that occurs to me: if the interactive string of a subr starts with `(', read it to get a sexp and then eval that sexp. This way, we could write the expression in the C function definition. It may require some inconvenient quoting, but it's still better than having the sexp in another file.