all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Mauger <mmaug@yahoo.com>
To: Emacs-devel@gnu.org
Subject: Re: [ELPA] New package: cycle-quotes.el
Date: Sun, 5 Jun 2016 21:05:56 -0700 (MST)	[thread overview]
Message-ID: <1465185956771-399665.post@n5.nabble.com> (raw)
In-Reply-To: <1465123891.11882.0@smtp.gmail.com>

on Sun, Jun 5th at 6:51a, Simen Heggestøyl-2 said:

> It already supports Python's triple quotes by looking for multiple
> successive quote characters.

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.

-- 
Michael Mauger: maintainer sql.el



--
View this message in context: http://emacs.1067599.n5.nabble.com/ELPA-New-package-cycle-quotes-el-tp399526p399665.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.



  reply	other threads:[~2016-06-06  4:05 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 [this message]
2016-06-07 17:41       ` Simen Heggestøyl
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

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

  git send-email \
    --in-reply-to=1465185956771-399665.post@n5.nabble.com \
    --to=mmaug@yahoo.com \
    --cc=Emacs-devel@gnu.org \
    /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.