From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Michael R. Mauger" Newsgroups: gmane.emacs.devel Subject: Re: sql-interactive-mode not recognising psql prompts Date: Thu, 11 Feb 2016 17:52:37 -0700 (MST) Message-ID: <1455238357865-387533.post@n5.nabble.com> References: <947A3DE2-06B1-43EB-B3B3-DA1DE7EFA611@sanityinc.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1455238390 30499 80.91.229.3 (12 Feb 2016 00:53:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2016 00:53:10 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 12 01:53:02 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 1aU1yo-0005Ys-K5 for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2016 01:53:02 +0100 Original-Received: from localhost ([::1]:54943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aU1yo-00041l-1Y for ged-emacs-devel@m.gmane.org; Thu, 11 Feb 2016 19:53:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aU1yY-00041J-Bk for Emacs-devel@gnu.org; Thu, 11 Feb 2016 19:52:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aU1yU-0003ET-6j for Emacs-devel@gnu.org; Thu, 11 Feb 2016 19:52:46 -0500 Original-Received: from mbob.nabble.com ([162.253.133.15]:59018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aU1yU-0003Dj-1H for Emacs-devel@gnu.org; Thu, 11 Feb 2016 19:52:42 -0500 Original-Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id C37DA208E9F2 for ; Thu, 11 Feb 2016 16:46:34 -0800 (PST) In-Reply-To: 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.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199781 Archived-At: The intent of the default settings is to match the most common cases, so that unintended consequences are avoided. If the prompt is set to something unusual, modifying the setting to handle the specific case: (sql-set-product-feature 'postgres :prompt-regexp "^.*=[#>] ") (sql-set-product-feature 'postgres :prompt-cont-regexp "^.*[-(][#>] ") But I'd prefer "^\\(\\w\\|\\s_\\)*=[#>] " and "^\\(\\w\\|\\s_\\)*[-(][#>] " as :prompt-regexp and :prompt-cont-regexp in sql.el itself. Please note "\\s" is an incomplete regexp in Emacs, what you'd want is "\\s_" (syntax class: Symbol) to get all additional symbol constituent characters beyond word characters. ("\\w" == "\\sw") -- Michael (maintainer sql.el) -- View this message in context: http://emacs.1067599.n5.nabble.com/no-subject-tp386941p387533.html Sent from the Emacs - Dev mailing list archive at Nabble.com.