From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: simenheg@gmail.com Newsgroups: gmane.emacs.devel Subject: Re: syntax based indentation for SQL files (ELPA package proposal) Date: Tue, 11 Sep 2018 12:09:49 +0200 Message-ID: <808t48ny4y.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536660674 23208 195.159.176.226 (11 Sep 2018 10:11:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2018 10:11:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: Michael Mauger , Alex Harsanyi , pierre.techoueyres@free.fr, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 12:11:09 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 1fzfdV-0005wC-1h for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 12:11:09 +0200 Original-Received: from localhost ([::1]:56494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzffb-00071W-6o for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 06:13:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzffN-00068L-1u for emacs-devel@gnu.org; Tue, 11 Sep 2018 06:13:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzfcc-0006B9-2U for emacs-devel@gnu.org; Tue, 11 Sep 2018 06:10:17 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:35717) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzfca-00067k-Fj for emacs-devel@gnu.org; Tue, 11 Sep 2018 06:10:13 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id q13-v6so19874608lfc.2 for ; Tue, 11 Sep 2018 03:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=nA+n/KulMTMYywVo7W6QYt27xQtDcG6fk2/iwSB+5Dg=; b=e5LEvO0aKdt9Y4yM9n9PIT7pDUKMNt22l8k+qKm69y+I3oxb/oxnh5vYetbwnALvBV 4bUmDJN/b84cGNFuG279EiRA1rOqEGyjoCzCcANjdjOIyl5lD6yVDEYeJjTaAGWZ/FuP sob69eAmnP5xwa+74w2GxOS2ubLj6i4qmGz//tkhxrYlDhG3O70kqn5yHB9erNTnFKR4 Caq7PSH36jQvHJ76O6Fuj+/onWIJZNRdq79j81i0IQfO09Sx/8Jy/yxzGAfSH0R+ODQ7 VRln/GS4sqCBHpXso9SUoeJTFTZVtw0MIdEXU74/m4GlbHGshBAejwqOSl288Nw6F0OA oxHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=nA+n/KulMTMYywVo7W6QYt27xQtDcG6fk2/iwSB+5Dg=; b=YSEAtyUn3qj2dmPHW5XhGJholwnEC+YKunHr04bGlFQe2mJfYj62TgwyE7ncTxcVx8 EuIzaMCNllEwYSngnNNyGjpo0CkBavf7WBlSs+8THllQA2792G8p4mexnPZaieXdutHl /AvbWEqdHt0kk46lU6f/HOuyrIxPygCUH70W25Zxc3yhyZDdbRT9QpGXGYsHtnYxlPyH akCwQgmGLzzN13S4p1x6fvYuPse8/48qH8uDiGvMzabm/mz9k6ZBwilabtTy99jX4R7/ qThNAFvgLxDYx92axAmSLg7q3br24JfisTf5O7ADySmxo8H5QbZ+IqkL+WfevAIFghl1 xNlw== X-Gm-Message-State: APzg51C/YRhqqEQij0xovFX69dzYEwcQaUlrvN4mkt09+XfWxtBVmqUj Ln8L3MAa9bT5EfxM9XFUupk= X-Google-Smtp-Source: ANB0VdYU46yeXgMt9dcm9MXiN1Jb4WKnId/iXgUgM9m0XZUxiyGYCW4jto3kFDm7CB9s+mGRxGPAXw== X-Received: by 2002:a19:9e85:: with SMTP id h127-v6mr14494405lfe.89.1536660591797; Tue, 11 Sep 2018 03:09:51 -0700 (PDT) Original-Received: from bubbles (bubbles.netfonds.no. [80.91.225.81]) by smtp.gmail.com with ESMTPSA id f4-v6sm3163269lfa.9.2018.09.11.03.09.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Sep 2018 03:09:50 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 06 Aug 2017 13:54:22 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::133 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:229668 Archived-At: Stefan Monnier writes: > 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? -- Simen