unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Simen Heggestøyl" <simenheg@gmail.com>
To: Michael Mauger <mmaug@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: cycle-quotes.el
Date: Tue, 07 Jun 2016 19:41:22 +0200	[thread overview]
Message-ID: <8760tkgam5.fsf@gmail.com> (raw)
In-Reply-To: <1465185956771-399665.post@n5.nabble.com> (message from Michael Mauger on Sun, 5 Jun 2016 21:05:56 -0700 (MST))

Michael Mauger <mmaug@yahoo.com> writes:
> There are other styles of strings that could be supported. In SQL, there are
> several dialect-specific string styles. String terminators and escape
> mechanisms are dependent on string introducers and dialect. I wouldn't
> expect that you're package would support all of them, but possibly it could
> rely upon local buffer variables and mode-specific hooks to provide parsing
> and alternative support. 
>
> As examples, 
> SQLite: supports single quotes
> Postgres: supports single quotes, $$..$$, and $xyz$ .. $xyz$ and other
> syntaxes
> Oracle (sorry they are the 800lb gorilla when it comes to SQL): supports
> single quotes, Q'x .. x' (where x is ), ], }, or > in the terminator if the
> first x is (, [, {, or < respectively, or the same character is used in the
> start and end otherwise)
>
> The functionality you provide is useful, but making it so that mode-specific
> hooks can provide the intelligent details, while your module provides the
> engine for cycling and escaping might be a future direction. 
>
> Thanks for your contribution.

Thanks for your feedback, Michael. I see now that it could be useful
to provide such hooks.

Is it OK for you if I send you some diffs for review while working on
this feature?

-- Simen



  reply	other threads:[~2016-06-07 17:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-04 11:00 [ELPA] New package: cycle-quotes.el Simen Heggestøyl
2016-06-04 11:51 ` Kaushal Modi
2016-06-04 16:24   ` Simen Heggestøyl
2016-06-04 17:00 ` Stefan Monnier
2016-06-05 10:51   ` Simen Heggestøyl
2016-06-06  4:05     ` Michael Mauger
2016-06-07 17:41       ` Simen Heggestøyl [this message]
2016-06-11 17:23       ` Simen Heggestøyl
2016-06-11 21:32         ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8760tkgam5.fsf@gmail.com \
    --to=simenheg@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mmaug@yahoo.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).