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: Mon, 01 Oct 2018 14:24:54 -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 1538418186 16837 195.159.176.226 (1 Oct 2018 18:23:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2018 18:23:06 +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" , "simenheg@gmail.com" , "emacs-devel@gnu.org" To: Michael Mauger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 01 20:23:01 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 1g72qS-0004Bb-Ik for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2018 20:23:00 +0200 Original-Received: from localhost ([::1]:40129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g72sY-00052Y-Pw for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2018 14:25:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g72sS-00052I-He for emacs-devel@gnu.org; Mon, 01 Oct 2018 14:25:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g72sN-00014R-8d for emacs-devel@gnu.org; Mon, 01 Oct 2018 14:25:04 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:59598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g72sM-000139-OW for emacs-devel@gnu.org; Mon, 01 Oct 2018 14:24:59 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w91IOsri029916; Mon, 1 Oct 2018 14:24:54 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 90448AE143; Mon, 1 Oct 2018 14:24:54 -0400 (EDT) In-Reply-To: (Michael Mauger's message of "Mon, 01 Oct 2018 12:56:22 +0000") 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, RV6385=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6385> : inlines <6908> : streams <1800069> : uri <2721842> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:230183 Archived-At: > Alex, you may want to look into making a change to sql-indent to make > sure users who have enabled indent mode previously by calling the > minor mode or setup function may end up toggling off indent mode > because sql.el has already turned on. I don't understand what you mean by that. Calling (sql-indent-mode) (or adding it to sql-mode-hook) will never turn the mode off: you'd have to call sql-indent-mode interactively or pass it an explicit -1 argument to turn it off. Stefan