From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Danenberg Newsgroups: gmane.emacs.devel Subject: `let-values' in scheme.el Date: Thu, 21 Feb 2008 17:55:10 -0600 Message-ID: <20080221235510.GA29198@klutometis.wikitex.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203638127 17071 80.91.229.12 (21 Feb 2008 23:55:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2008 23:55:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 22 00:55:52 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 1JSLGY-00060n-2a for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 00:55:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSLG3-0004qE-2n for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 18:55:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSLFz-0004pg-3I for emacs-devel@gnu.org; Thu, 21 Feb 2008 18:55:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSLFx-0004oW-GG for emacs-devel@gnu.org; Thu, 21 Feb 2008 18:55:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSLFx-0004oO-8w for emacs-devel@gnu.org; Thu, 21 Feb 2008 18:55:13 -0500 Original-Received: from klutometis.wikitex.org ([72.51.35.14]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JSLFw-0007q9-QF for emacs-devel@gnu.org; Thu, 21 Feb 2008 18:55:13 -0500 Original-Received: from klutometis.wikitex.org (localhost.localdomain [127.0.0.1]) by klutometis.wikitex.org (8.13.1/8.13.1) with ESMTP id m1LNtAme029367 for ; Thu, 21 Feb 2008 17:55:10 -0600 Original-Received: (from pcdanenb@localhost) by klutometis.wikitex.org (8.13.1/8.13.1/Submit) id m1LNtAqF029366 for emacs-devel@gnu.org; Thu, 21 Feb 2008 17:55:10 -0600 Content-Disposition: inline X-Fnord: I have seen the fnords. User-Agent: Mutt/1.5.16 (2007-06-11) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:89898 Archived-At: `let-values' and `let*-values' (see SRFI 11) are control structures similar to `let', `let*' and the like; and come up often enough that they deserve to be treated similarly. diff -Naur emacs-orig/lisp/progmodes/scheme.el emacs/lisp/progmodes/scheme.el --- emacs-orig/lisp/progmodes/scheme.el 2008-02-21 15:30:14.000000000 -0800 +++ emacs/lisp/progmodes/scheme.el 2008-02-21 15:50:31.000000000 -0800 @@ -334,6 +334,7 @@ "call-with-input-file" "call-with-output-file" "case" "cond" "do" "else" "for-each" "if" "lambda" "let" "let*" "let-syntax" "letrec" "letrec-syntax" + "let-values" "let*-values" ;; Hannes Haug wants: "and" "or" "delay" "force" ;; Stefan Monnier says don't bother: @@ -541,6 +542,8 @@ (put 'let 'scheme-indent-function 'scheme-let-indent) (put 'let* 'scheme-indent-function 1) (put 'letrec 'scheme-indent-function 1) +(put 'let-values 'scheme-indent-function 1) ; SRFI 11 +(put 'let*-values 'scheme-indent-function 1) ; SRFI 11 (put 'sequence 'scheme-indent-function 0) ; SICP, not r4rs (put 'let-syntax 'scheme-indent-function 1) (put 'letrec-syntax 'scheme-indent-function 1)