all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Mauger <mmauger@protonmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Michael Mauger <michael@mauger.com>,
	Alex Harsanyi <alexharsanyi@gmail.com>,
	"pierre.techoueyres\\@free.fr" <pierre.techoueyres@free.fr>,
	"simenheg\\@gmail.com" <simenheg@gmail.com>,
	"emacs-devel\\@gnu.org" <emacs-devel@gnu.org>
Subject: Re: syntax based indentation for SQL files (ELPA package proposal)
Date: Mon, 01 Oct 2018 12:56:22 +0000	[thread overview]
Message-ID: <mVZ2LoSXINHamLlKAon39WtehwpgUhzKOB99tN3LuYSmAFPK52mnrQlwvFP0F8tAsnGLDTkhJfyvvH6WBpcs9g==@protonmail.com> (raw)
In-Reply-To: <jwvo9cx3zfw.fsf-monnier+emacs@gnu.org>

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, September 16, 2018 5:30 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> > (defun sql-is-indent-available ()
>
> >       "Check if sql-indent module is available."
> >       (when (locate-library "sql-indent")
> >         (require 'sql-indent)
> >         (fboundp 'sqlind-minor-mode)))
> >
>
> I'd recommend you just use (fboundp 'sqlind-minor-mode) since the ELPA
> package (or any proper manual install) sets up an autoload for it.
>
> Stefan

I have pushed a change to sql.el to enable sqind-minor-mode if it is available.

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.

You can check whether `sql-indent-enable' is included in the mode hook list, and
make the minor enabled if `sql-use-indent-support' is non-nil.

Let me know your thoughts.

--
MICHAEL@MAUGER.COM // FSF and EFF member // GNU Emacs sql.el maintainer




  reply	other threads:[~2018-10-01 12:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-06  2:42 syntax based indentation for SQL files (ELPA package proposal) Alex Harsanyi
2017-08-06  4:05 ` Stefan Monnier
2017-08-06  6:35   ` Steinar Bang
2017-08-06 13:30   ` Alex Harsanyi
2017-08-06 17:54     ` Stefan Monnier
     [not found]       ` <j3XyL-aaKw13ov6PDSlK6YTLNYM6WwKGtS-OW5wgKzI9C4QQ1lDjHvosCxVSOEbqEaQOThHg4DKnPLVJO9ogqg==@protonmail.com>
2017-08-14  9:51         ` Stefan Monnier
2017-08-14 20:47           ` John Wiegley
2018-09-11 10:09       ` simenheg
2018-09-11 12:16         ` Stefan Monnier
2018-09-16  1:11           ` Michael Mauger
2018-09-16 21:30             ` Stefan Monnier
2018-10-01 12:56               ` Michael Mauger [this message]
2018-10-01 18:24                 ` Stefan Monnier
2018-10-01 22:31                 ` Andy Moreton
2018-10-02 12:57                   ` Stefan Monnier
2018-10-02 13:48                     ` Andy Moreton
2018-10-02 14:24                       ` Van L
2018-10-02 16:07                       ` Stefan Monnier
2018-10-02 13:49                     ` Thomas Fitzsimmons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='mVZ2LoSXINHamLlKAon39WtehwpgUhzKOB99tN3LuYSmAFPK52mnrQlwvFP0F8tAsnGLDTkhJfyvvH6WBpcs9g==@protonmail.com' \
    --to=mmauger@protonmail.com \
    --cc=alexharsanyi@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael@mauger.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=pierre.techoueyres@free.fr \
    --cc=simenheg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.