From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10783: Some built-in functionslost their argument names Date: Mon, 13 Feb 2012 10:19:34 -0500 Message-ID: References: <3tfwei753u.fsf@fencepost.gnu.org> <8339ah1yek.fsf@gnu.org> <8qzkcpj8oi.fsf@fencepost.gnu.org> <83fwegzoka.fsf@gnu.org> <871upydg5x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329146554 27270 80.91.229.3 (13 Feb 2012 15:22:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 15:22:34 +0000 (UTC) Cc: schwab@linux-m68k.org, 10783@debbugs.gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 16:22:32 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rwxi1-0003gz-7q for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 16:20:53 +0100 Original-Received: from localhost ([::1]:54522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwxi0-0007hT-O6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 10:20:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwxhq-0007f8-Eg for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 10:20:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rwxhg-0005DP-7k for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 10:20:42 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwxhg-0005DF-4o for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 10:20:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rwxj8-0008VU-Iq for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 10:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Feb 2012 15:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10783 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10783-submit@debbugs.gnu.org id=B10783.132914647232641 (code B ref 10783); Mon, 13 Feb 2012 15:22:02 +0000 Original-Received: (at 10783) by debbugs.gnu.org; 13 Feb 2012 15:21:12 +0000 Original-Received: from localhost ([127.0.0.1]:39100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RwxiK-0008UP-16 for submit@debbugs.gnu.org; Mon, 13 Feb 2012 10:21:12 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:49188) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RwxiH-0008UH-TX for 10783@debbugs.gnu.org; Mon, 13 Feb 2012 10:21:10 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q1DFJY9O031130; Mon, 13 Feb 2012 10:19:35 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 920B259537; Mon, 13 Feb 2012 10:19:34 -0500 (EST) In-Reply-To: <871upydg5x.fsf@gnu.org> (Jason Rumney's message of "Mon, 13 Feb 2012 21:19:38 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4131=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4131> : streams <728237> : uri <1064645> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56854 Archived-At: >> Just for the record: such duplicate definitions should be removed. >> E.g. the C and pc-win.el definitions should be refactored such that >> there is only one C definition (which might call an Elisp implementation >> in the MS-DOS case). > Wouldn't it be better for the common definition to be Lisp, with calls > into C where necessary? Depends on the actual code in the common part. It will have some kind of dispatch to the appropriate backend, which can either go through the terminal methods or through some case/switch. In the case we use case/switch it can just as well be performed in Elisp, indeed. But the common code may also include more shared code which may require the use of C, or in some other cases we won't want to expose the backend-specific code to Elisp. Stefan PS: Of course, the common code should not use the "x-" prefix.