Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Christopher Browne <cbbrowne(at)gmail(dot)com>
Cc: Ed Avis <eda(at)waniasset(dot)com>, PostgreSQL Mailing Lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Date: 2014-12-09 20:56:12
Message-ID: 20141209205612.GE24487@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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.  <http://www.emacswiki.org/
> 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 <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Christopher Browne 2014-12-09 21:14:07 Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Previous Message Christopher Browne 2014-12-09 20:53:52 Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)