From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Harsanyi Newsgroups: gmane.emacs.devel Subject: Re: smart indentation for SQL files Date: Wed, 23 Dec 2015 20:27:30 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1450873667 9833 80.91.229.3 (23 Dec 2015 12:27:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2015 12:27:47 +0000 (UTC) To: Alex Harsanyi , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 23 13:27:36 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 1aBiVz-0002ld-GF for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2015 13:27:35 +0100 Original-Received: from localhost ([::1]:55743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBiVz-000699-1O for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2015 07:27:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBiVw-00068v-Df for emacs-devel@gnu.org; Wed, 23 Dec 2015 07:27:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBiVv-0001J6-6i for emacs-devel@gnu.org; Wed, 23 Dec 2015 07:27:32 -0500 Original-Received: from mail-io0-x22a.google.com ([2607:f8b0:4001:c06::22a]:35062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBiVv-0001Iu-1T for emacs-devel@gnu.org; Wed, 23 Dec 2015 07:27:31 -0500 Original-Received: by mail-io0-x22a.google.com with SMTP id q126so214170614iof.2 for ; Wed, 23 Dec 2015 04:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TtSE7ivYJLVDFJVUwaoQFcxuMktT4GjRg03U9ZCCLvc=; b=gNBKHNFiTJSFzoUjJR3wEHzsP5dDyElH6zM70N3eVxczc86qWuGTDiirtLtI6cGiaF jR87fkP++/+UH4hAxSY3zfrMHPmsXjz8fazBWyyV2FK4QEbNa1Mg33rlbqdYMMakB2zG n2m3gWvjuKTyLr5ZvrpiAHJmZyE2VrOb3boYkimykGrmGynTC7A0CzXsSDEJiGCwWbmb rhtMz8ANSWfHI9YZ/qabzGthupoj5PaGxsbGjoS7hoa1K1B35biDQng/hsPyg2s+oQPB UkDHrwEPlaBET0xUwcwZRVj902h/HNdJen56BURXmb1qWNLCqHQm1Fi4QgGPl1w36OgP qnag== X-Received: by 10.107.131.207 with SMTP id n76mr29072287ioi.135.1450873650249; Wed, 23 Dec 2015 04:27:30 -0800 (PST) Original-Received: by 10.107.130.228 with HTTP; Wed, 23 Dec 2015 04:27:30 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c06::22a 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:196705 Archived-At: Hi John, I updated the file with package headers, so `package-install-file' can install it (there is only one file for the package). However, I don't have permissions to push it to ELPA, so I cannot add it there. If you, or someone else would like to add it to ELPA, you can find the package at: https://github.com/alex-hhh/emacs-sql-indent/blob/master/sql-indent.el Best Regards, Alex. 2015-12-22 13:39 GMT+08:00 John Wiegley : >>>>>> 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