GNU bug report logs - #29105
25.2; sqli postgres missing prompts with underscore

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Felipe Ochoa <felipe.nospam.ochoa@HIDDEN>; Keywords: unreproducible moreinfo; dated Wed, 1 Nov 2017 14:11:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) unreproducible and moreinfo. Request was from Michael Mauger <mmauger@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Nov 2017 14:10:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 01 10:10:05 2017
Received: from localhost ([127.0.0.1]:46058 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e9tiX-0006O4-GB
	for submit <at> debbugs.gnu.org; Wed, 01 Nov 2017 10:10:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39982)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <felipe.nospam.ochoa@HIDDEN>) id 1e9tiV-0006N5-DL
 for submit <at> debbugs.gnu.org; Wed, 01 Nov 2017 10:10:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <felipe.nospam.ochoa@HIDDEN>) id 1e9tiL-0002mq-Kd
 for submit <at> debbugs.gnu.org; Wed, 01 Nov 2017 10:09:58 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33025)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <felipe.nospam.ochoa@HIDDEN>)
 id 1e9tiL-0002mX-94
 for submit <at> debbugs.gnu.org; Wed, 01 Nov 2017 10:09:53 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59150)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <felipe.nospam.ochoa@HIDDEN>) id 1e9tiK-00012l-3w
 for bug-gnu-emacs@HIDDEN; Wed, 01 Nov 2017 10:09:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <felipe.nospam.ochoa@HIDDEN>) id 1e9tiF-0002et-6W
 for bug-gnu-emacs@HIDDEN; Wed, 01 Nov 2017 10:09:52 -0400
Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:54624)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <felipe.nospam.ochoa@HIDDEN>)
 id 1e9tiE-0002eS-SY
 for bug-gnu-emacs@HIDDEN; Wed, 01 Nov 2017 10:09:46 -0400
Received: by mail-vk0-x230.google.com with SMTP id n70so1470262vkf.11
 for <bug-gnu-emacs@HIDDEN>; Wed, 01 Nov 2017 07:09:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=DZhjrDfVZe5v1o2HiSaE8J/y4F2cWyxQbFiaepmgN/0=;
 b=EhjZLmyvpzGNsAgC+giNG7e1jAgG+CvW1OlA/3bsJFBHka7YZzViIIqgdZnR7t/ezE
 jeQ3wFlZELW1nso2oR1fmIZpKpldbqs9jWvtr/GxDJ+0Fj3vKfGnqOYjjPdIJQMiV/Qt
 859FMSrcnvpQ+l/DhXXuDB07Ui3MP8EVRmNucc9wHLxyAV2ZWPrie/R/gkQdZvjhUHuj
 KFWYyzci3mcn6WfxGbKDQudWo59XBxH/kWjjBIQG5B8gJP0CFrtPub2gbg0CmFxW0k0Y
 SazFdrkYh+B/eQnUziWuhjBnGNtw2fKUvXn8atqoqA7FmgNpB3xAQMyPpmks+5yM7T1H
 zxKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=DZhjrDfVZe5v1o2HiSaE8J/y4F2cWyxQbFiaepmgN/0=;
 b=o/IaXnEQeJc8cl2xOxDTVBwxvnAfdSvIhcYhtKojy9/Q270uKq3uBHMSIZaGmv4DmC
 9Rpv6RiwU+UaFIXhM1PdfTlUbMef7yQp4G6S53p5PYf/At4BkTONFquZfQh8TeWifZtH
 QnyUfOMq+5IsnvoIaG8T8nV6WtMGdTuFXYOhCTV83FAbLDGfD5UkQkIXo0+RCnCXBosb
 8BikpIHL6RKLDeojngUSfhX2tfguqTgJqt9aU4oYIOYHH89H6jIItYT1IHEiYd9CqBVM
 hx3EjB3XwtMfCGBi3awPZPOVc0Ss9a2m0KLbZuG20NyOjgmh1q7rBvblhI+Wnz5SEpqy
 /AYA==
X-Gm-Message-State: AJaThX4ljq8bSgcROocTlhfTgy1tAurFbh0vtDALjMHeX7gSbNJ3CfK9
 cDFMug6ziwvokwCqeDcPJIzgVzf1
X-Google-Smtp-Source: ABhQp+SKzbxosGmQCR2CmiFqeR9AIbQZx/Tt+b25JwdCs+EzeFaM1zX8TDHQdUubC2s3CojqSvVVWA==
X-Received: by 10.31.234.131 with SMTP id i125mr4258915vkh.149.1509545385782; 
 Wed, 01 Nov 2017 07:09:45 -0700 (PDT)
Received: from x1-ubuntu ([181.60.234.59])
 by smtp.gmail.com with ESMTPSA id c5sm200527vka.11.2017.11.01.07.09.44
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 01 Nov 2017 07:09:45 -0700 (PDT)
From: Felipe Ochoa <felipe.nospam.ochoa@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.2; sqli postgres missing prompts with underscore
Date: Wed, 01 Nov 2017 09:09:41 -0500
Message-ID: <87mv46t7iy.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Tables with underscores in their names (e.g., as generated by Django)
have their prompts removed from the buffer by the process filter,
resulting in something like the following

psql (9.6.5, server 9.5.5)
You are now connected to database "app_model" as user "user".
SELECT ...

I'm not sure how exactly it's happening, but I think it's in
`sql-interactive-remove-continuation-prompt'. At any rate, the problem
can be fixed by changing the postgres `:prompt-regexp' and
`:prompt-cont-regexp' to "^\\(?:[[:word:]]\\|\\s_\\)*=[#>] " and
"^\\(?:[[:word:]]\\|\\s_\\)*[-(][#>] " respectively to allow symbols in
table names. If that seems too lax, we could also special-case
underscore, since I think it's the most common symbol used in table
names.

-Felipe

In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2017-07-19 built on x1-ubuntu
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Ubuntu 16.04.3 LTS

Configured using:
 'configure --without-cairo --with-xwidgets --with-x-toolkit=gtk3
 --with-modules'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS

Important settings:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix





Acknowledgement sent to Felipe Ochoa <felipe.nospam.ochoa@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#29105; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 21 Apr 2019 06:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.