From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Simen_Heggest=C3=B8yl?= Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: cycle-quotes.el Date: Tue, 07 Jun 2016 19:41:22 +0200 Message-ID: <8760tkgam5.fsf@gmail.com> References: <1465185956771-399665.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1465321329 6569 80.91.229.3 (7 Jun 2016 17:42:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2016 17:42:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Mauger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 07 19:42:04 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 1bAL0t-0001vS-OO for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2016 19:42:03 +0200 Original-Received: from localhost ([::1]:51868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAL0t-000485-2t for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2016 13:42:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAL0M-00047U-IQ for emacs-devel@gnu.org; Tue, 07 Jun 2016 13:41:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAL0I-0006W2-Cg for emacs-devel@gnu.org; Tue, 07 Jun 2016 13:41:29 -0400 Original-Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:35022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAL0H-0006Vs-Io for emacs-devel@gnu.org; Tue, 07 Jun 2016 13:41:26 -0400 Original-Received: by mail-lf0-x236.google.com with SMTP id u74so13008188lff.2 for ; Tue, 07 Jun 2016 10:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=8Mm3a7fGIYA7iT5LNvbqTkkLtGSG5OUe5nxh9NGeo+s=; b=mGK84MiQqMVkTnjIDAh6Ssl6rhl105YGTeiWz9vzQv1T9ybfo3nDYoFvLUygiNjfFc tx+BKVlmX78t6dnIAMjLmGeuTICFpgypFuqv/WgKYxi3eRUQLai7SlWmdYJg6YkyOgJV zmlDF3lXiv8nHCHAuZJdp39YqGarHNBbwW05zdaL09G+1qsU1CGAZZxXGohlUvyTSVLS ywuptZOxJB2xobvsgazFIsZzHYbToZpGdkTbaulF3RhS5mK9qIvwplQtGdPOZgAGya3f fMMVubNegpfVdiwG3GhEXZLvqXPEPyCjD6CbIXHrxK+qq2pX1Yboppv9uL6t3VeRV9/A h8Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=8Mm3a7fGIYA7iT5LNvbqTkkLtGSG5OUe5nxh9NGeo+s=; b=ZLA+tgoUTcHbRhO0PCTPuuprzlNasTltSt/SqdUwUSRLIzBJt0zyW8COD3kF5DhilE 1W2McUa0VVx/DQLGHhgj7EyI7aNpYN3hC1lsCXUebohlANdp2C4gaG3YMq97SPp3QMtg +150QiX2yywu7GME0R5eQTFcYSDNxqBZXGHDiiceFwjVlK6Pr/s+l8djj6Sgr4sVX6/L V/wsdlNWa9VX7VH6MCvrc7jxtpBGQhqSyC0/VNdqEwmFoFwxLakKyBxZvG6s3N9SxMDH RyV4Z3J0qnyhDfIlRSydQFWuHhK1GdH77k1nxwzusl5Xf9Dee6lCuqVxmfOTcHU1zRbZ ci1A== X-Gm-Message-State: ALyK8tKRLH7X/VnnhdFiz77E8XroXV8ji0gweLZeG2gngOK6yCI8VQ0T7N20W2pugm6zXw== X-Received: by 10.25.145.198 with SMTP id t189mr2983345lfd.157.1465321284438; Tue, 07 Jun 2016 10:41:24 -0700 (PDT) Original-Received: from x240 (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id ge3sm1714019lbc.35.2016.06.07.10.41.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jun 2016 10:41:23 -0700 (PDT) In-Reply-To: <1465185956771-399665.post@n5.nabble.com> (message from Michael Mauger on Sun, 5 Jun 2016 21:05:56 -0700 (MST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::236 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:204224 Archived-At: Michael Mauger 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