From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Purcell Newsgroups: gmane.emacs.bugs Subject: bug#22596: Acknowledgement (25.1.50; Broken prompt-regexp for sql-postgres) Date: Mon, 8 Feb 2016 21:03:25 +1300 Message-ID: <071F8E2E-1C7B-40FD-880F-368B64D31FA6@sanityinc.com> References: <88B06A20-FEE9-454A-A4C1-A5582B5EFA45@sanityinc.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1454918664 20781 80.91.229.3 (8 Feb 2016 08:04:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2016 08:04:24 +0000 (UTC) To: 22596@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 08 09:04:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aSgnr-0000c8-1v for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Feb 2016 09:04:11 +0100 Original-Received: from localhost ([::1]:42241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSgnq-000180-B2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Feb 2016 03:04:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSgnl-00015d-HF for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2016 03:04:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSgni-0006Br-BH for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2016 03:04:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSgni-0006Bj-8O for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2016 03:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aSgnh-0000Vo-Vp for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2016 03:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Feb 2016 08:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22596-submit@debbugs.gnu.org id=B22596.14549186221943 (code B ref 22596); Mon, 08 Feb 2016 08:04:01 +0000 Original-Received: (at 22596) by debbugs.gnu.org; 8 Feb 2016 08:03:42 +0000 Original-Received: from localhost ([127.0.0.1]:37923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSgnN-0000VH-Pt for submit@debbugs.gnu.org; Mon, 08 Feb 2016 03:03:41 -0500 Original-Received: from purcellpeople.com ([85.214.32.38]:34746 helo=h1189701.stratoserver.net) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSgnL-0000V3-K0 for 22596@debbugs.gnu.org; Mon, 08 Feb 2016 03:03:39 -0500 Original-Received: from [192.168.0.10] (unknown [210.54.38.34]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id E770727AC0B7 for <22596@debbugs.gnu.org>; Mon, 8 Feb 2016 09:03:30 +0100 (CET) In-Reply-To: <88B06A20-FEE9-454A-A4C1-A5582B5EFA45@sanityinc.com> X-Mailer: Apple Mail (2.3112) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112699 Archived-At: =46rom 8f2be35bec54b752708281776f96c991903245d2 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Mon, 8 Feb 2016 20:47:43 +1300 Subject: [PATCH] Safer prompt-regexp for postgres/vertica in sql-interactive-mode Fixes issue 22596, whereby "_" is now not considered a word constituent character in sql-interactive-mode, so prompts like "foo_dev# " are not correctly detected. --- lisp/progmodes/sql.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index fd59f46..90c8dfe 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el @@ -462,9 +462,9 @@ sql-product-alist :list-all ("\\d+" . "\\dS+") :list-table ("\\d+ %s" . "\\dS+ %s") :completion-object sql-postgres-completion-object - :prompt-regexp "^\\w*=3D[#>] " + :prompt-regexp "^[[:alpha:]_]*=3D[#>] " :prompt-length 5 - :prompt-cont-regexp "^\\w*[-(][#>] " + :prompt-cont-regexp "^[[:alpha:]_]*[-(][#>] " :input-filter sql-remove-tabs-filter :terminator ("\\(^\\s-*\\\\g$\\|;\\)" . "\\g")) =20 @@ -514,9 +514,9 @@ sql-product-alist :sqli-comint-func sql-comint-vertica :list-all ("\\d" . "\\dS") :list-table "\\d %s" - :prompt-regexp "^\\w*=3D[#>] " + :prompt-regexp "^[[:alpha:]_]*=3D[#>] " :prompt-length 5 - :prompt-cont-regexp "^\\w*[-(][#>] ") + :prompt-cont-regexp "^[[:alpha:]_]*[-(][#>] ") ) "An alist of product specific configuration settings. =20 --=20 2.7.1