From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: smart indentation for SQL files Date: Mon, 21 Dec 2015 21:39:22 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450762791 32218 80.91.229.3 (22 Dec 2015 05:39:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2015 05:39:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alex Harsanyi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 22 06:39:44 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aBFfk-0001l4-6f for ged-emacs-devel@m.gmane.org; Tue, 22 Dec 2015 06:39:44 +0100 Original-Received: from localhost ([::1]:48809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBFfj-0001U4-7u for ged-emacs-devel@m.gmane.org; Tue, 22 Dec 2015 00:39:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBFfW-0001Td-6k for emacs-devel@gnu.org; Tue, 22 Dec 2015 00:39:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBFfT-0004PQ-0T for emacs-devel@gnu.org; Tue, 22 Dec 2015 00:39:30 -0500 Original-Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:33927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBFfS-0004PM-Rc for emacs-devel@gnu.org; Tue, 22 Dec 2015 00:39:26 -0500 Original-Received: by mail-pa0-x22c.google.com with SMTP id uo6so6587168pac.1 for ; Mon, 21 Dec 2015 21:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-type; bh=cxRCNY7Z2nZ07E2a4u0AKSO6/5r0KImMU3LE8mZXmso=; b=XhHhk31D666OqrsS/3Y1it4Dd0zd65SmCO7KQ5RV6LsGDq+IUz3Zfc+2brbkYzRpzF Awjc7Hc9SidXoVfK6XBK10FdJEsV6RM6BD0pTiy3zioiaUvbooGdZr2dOsIomoFk1Q6c S2MA8YE/j5bKIwlCtfN03dtC7viCayK13836660uqq565lCeG+J0MVfi02i2PjSAsQFl ldG6haL0sgS44YrnwldnTad1CmnPcpBlMvVpu5IPoCox+V+f0YGtHkFQoiRwQqY3+w5N QhklMag3dR1IBaqmh37Nn3fsGhHQ194f+t/r/WlokmaqI/sWiJc3WfBxmucUGPpU6Y0A MNPQ== X-Received: by 10.66.228.225 with SMTP id sl1mr33033094pac.63.1450762766284; Mon, 21 Dec 2015 21:39:26 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id b88sm18092940pfj.11.2015.12.21.21.39.25 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 21 Dec 2015 21:39:25 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 6DE4711A46FFD; Mon, 21 Dec 2015 21:39:24 -0800 (PST) In-Reply-To: (Alex Harsanyi's message of "Mon, 21 Dec 2015 19:42:18 +0800") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Alex Harsanyi , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196651 Archived-At: >>>>> Alex Harsanyi writes: > The code is similar to cc-mode, in that it separates the "parsing" of the > SQL code from the indentation and the indentation rules can be modified by > the user to conform to local indentaiton guidelines or preferences. > I think this code would be a nice addition to sql.el. Hi Alex, In the interests of expedience, would you mind starting out this module under the name "sql-indent.el", and committing it to ELPA? It will not make it into 25.1 in any case, since no more features are being accepted there. But within ELPA, users may still find it after installation. Once your code is ready there, we can talk later about integrating it directly into sql.el, or making it more accessible some other way (such as tarball ELPA with a suitable autoload). -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2