From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: cycle-quotes.el Date: Sun, 5 Jun 2016 21:05:56 -0700 (MST) Message-ID: <1465185956771-399665.post@n5.nabble.com> References: <1465038023.18228.0@smtp.gmail.com> <1465123891.11882.0@smtp.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1465185986 26035 80.91.229.3 (6 Jun 2016 04:06:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2016 04:06:26 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 06 06:06:17 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b9lnp-0003jc-00 for ged-emacs-devel@m.gmane.org; Mon, 06 Jun 2016 06:06:13 +0200 Original-Received: from localhost ([::1]:39656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9lnn-0004n9-V3 for ged-emacs-devel@m.gmane.org; Mon, 06 Jun 2016 00:06:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9lnh-0004mw-Qg for Emacs-devel@gnu.org; Mon, 06 Jun 2016 00:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9lnc-0003gu-Mr for Emacs-devel@gnu.org; Mon, 06 Jun 2016 00:06:04 -0400 Original-Received: from mbob.nabble.com ([162.253.133.15]:59015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9lnc-0003gm-HG for Emacs-devel@gnu.org; Mon, 06 Jun 2016 00:06:00 -0400 Original-Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id DD9B82997617 for ; Sun, 5 Jun 2016 20:47:20 -0700 (PDT) In-Reply-To: <1465123891.11882.0@smtp.gmail.com> X-detected-operating-system: by eggs.gnu.org: iOS iPhone or iPad X-Received-From: 162.253.133.15 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:204206 Archived-At: on Sun, Jun 5th at 6:51a, Simen Heggest=C3=B8yl-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 ar= e 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.=20 As examples,=20 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-specifi= c hooks can provide the intelligent details, while your module provides the engine for cycling and escaping might be a future direction.=20 Thanks for your contribution. --=20 Michael Mauger: maintainer sql.el -- View this message in context: http://emacs.1067599.n5.nabble.com/ELPA-New-p= ackage-cycle-quotes-el-tp399526p399665.html Sent from the Emacs - Dev mailing list archive at Nabble.com.