Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XyRpV-0001RP-UX for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Dec 2014 20:56:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XyRpV-00029u-FT for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Dec 2014 20:56:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XyRpU-00029o-T1 for pgsql-bugs@postgresql.org; Tue, 09 Dec 2014 20:56:20 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XyRpQ-0000TR-9D for pgsql-bugs@postgresql.org; Tue, 09 Dec 2014 20:56:19 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XyRpM-0001uV-KX; Tue, 09 Dec 2014 15:56:12 -0500 Date: Tue, 9 Dec 2014 15:56:12 -0500 From: Bruce Momjian To: Christopher Browne Cc: Ed Avis , PostgreSQL Mailing Lists Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal) Message-ID: <20141209205612.GE24487@momjian.us> References: <20141117093434.2479.18410@wrigleys.postgresql.org> <20141203004050.GA25084@momjian.us> <26947.1417573493@sss.pgh.pa.us> <20141209202406.GC24487@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Tue, Dec 9, 2014 at 03:53:52PM -0500, Christopher Browne wrote: > > Based on your report, I think checking for INSIDE_EMACS being set _and_ > > TERM=dumb would be the best bet.  Do you want me to write a patch for > > you to test? > > > I'd be really inclined to search INSIDE_EMACS for "comint", as well. > > That indicates that the comint mode is being used.  emacs/ComintMode> > > That should indicate a scenario where pager should be suppressed.    TERM=dumb > would tend to agree with that; I'm not sure it is helpful to involve $TERM in > the logic. I don't understand. Is COMINT an environment variable name? I don't see it in INSIDE_EMACS: TERM=term-color INSIDE_EMACS=24.4.1,term:0.96 -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs