From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: syntax based indentation for SQL files (ELPA package proposal) Date: Tue, 11 Sep 2018 08:16:23 -0400 Message-ID: References: <808t48ny4y.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536668153 25583 195.159.176.226 (11 Sep 2018 12:15:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2018 12:15:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Michael Mauger , Alex Harsanyi , pierre.techoueyres@free.fr, emacs-devel@gnu.org To: simenheg@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 14:15:48 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzha8-0006XY-Ml for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 14:15:48 +0200 Original-Received: from localhost ([::1]:57402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzhcF-0003vj-7g for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 08:17:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzhap-0003ul-9J for emacs-devel@gnu.org; Tue, 11 Sep 2018 08:16:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzham-0001fL-2D for emacs-devel@gnu.org; Tue, 11 Sep 2018 08:16:31 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:52908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzhal-0001ds-SZ for emacs-devel@gnu.org; Tue, 11 Sep 2018 08:16:27 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w8BCGNt0029186; Tue, 11 Sep 2018 08:16:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C5FF76A645; Tue, 11 Sep 2018 08:16:23 -0400 (EDT) In-Reply-To: <808t48ny4y.fsf@gmail.com> (simenheg@gmail.com's message of "Tue, 11 Sep 2018 12:09:49 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6371=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6371> : inlines <6870> : streams <1798137> : uri <2708159> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:229670 Archived-At: >> I believe the default behavior should be to enable automatic >> indentation. We can provide some way for the user to disable it, of >> course (actually, I think it would make sense to offer a generic minor >> mode which provides "dumb" indentation in any major mode). > I'm happy to see that sql-indent was added to ELPA last year, but I > agree with Stefan that it would be even better if SQL mode offered > automatic indentation by default, like major modes usually do. > > I could make an attempt to integrate it with SQL mode, with an option to > turn it off, if there is interest for it? The main prerequisite for that would be to move sql-indent from elpa.git to emacs.git. I think it's a good idea to bring sql.el and sql-indent.el closer to each other (an alternative would be to move sql.el to elpa.git, but that's probably not gonna fly), but it's rather a question for Alex, Michael, and Emacs's maintainers. Stefan