all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Mauger <mmauger@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Robert Cochran <robert-emacs@cochranmail.com>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: sql.el MariaDB support
Date: Wed, 06 Jun 2018 13:16:20 -0400	[thread overview]
Message-ID: <YxwpF13ijHehbrFBbsU4qIX7dN3RDcXFNxBDR3Rp63tnej7hsWKCX-3n9sfwLeIqNl4KR-IMEMjhz_lx0CgJjg==@protonmail.com> (raw)
In-Reply-To: <83y3fsvudp.fsf@gnu.org>

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On June 6, 2018 10:53 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> ​​
> > From: Robert Cochran robert-emacs@cochranmail.com
> > Date: Tue, 05 Jun 2018 20:07:50 -0700
> > 
> > I've decided that I want to spend a little bit of time improving the
> > MariaDB support in sql.el to make a nicer experience, namely changing
> > the prompt regexps so that the prompts will actually show up without
> > having to fiddle with sql-prompt-regexp.
> > What I'm not so sure about, and thus asking here, is whether or not to
> > put the MariaDB changes in with the MySQL product? MariaDB is still a
> > drop-in replacement for MySQL AFAIK, so in my mind it wouldn't be
> > unreasonable to lump those two together as a single product. But I'm not
> > well-versed on what doing that may imply.
> > TBH, I'd rather lump them together, as really all I'm intending to do is
> > modify the continuation prompt regexps to work for either database, and
> > making a whole separate MariaDB product would be overkill in my mind.
> > 
> > Thoughts?
> 
> I hope Micheal (CC'ed) will have comments on your proposal.

Great idea! My recommendation is to create a new sql product/dialect akin 
to mysql in sql.el and either reuse the mysql settings/variables where 
appropriate, or create defvaralias's for the mariadb variables pointing back
to the mysql variables. 

That is, reuse the font-locking and login setup, but override the prompt string.

I'd also encourage you to update the shared font-lock settings to get it 
up-to-date with the latest features. It's been a very long time since I used 
MySQL so there is some bit-rot there.

Feel free to contact me with additional questions, and Happy Hacking!

PS. If you haven't already, I'd look into getting your copyright paperwork
done so that the Emacs project can easily accept your patches.
​-- 
MICHAEL@MAUGER.COM // FSF and EFF member // GNU Emacs sql.el maintainer​



  reply	other threads:[~2018-06-06 17:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-06  3:07 sql.el MariaDB support Robert Cochran
2018-06-06 14:53 ` Eli Zaretskii
2018-06-06 17:16   ` Michael Mauger [this message]
2018-06-06 17:28     ` Eli Zaretskii
2018-06-06 17:38       ` Michael Mauger
2018-06-07  8:48     ` Robert Cochran
2018-06-11  0:26       ` Michael Mauger
2018-06-12  1:10         ` Robert Cochran
2018-06-12  3:08           ` Michael Mauger

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='YxwpF13ijHehbrFBbsU4qIX7dN3RDcXFNxBDR3Rp63tnej7hsWKCX-3n9sfwLeIqNl4KR-IMEMjhz_lx0CgJjg==@protonmail.com' \
    --to=mmauger@protonmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=robert-emacs@cochranmail.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.