Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal) - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Date
Msg-id 20141209205612.GE24487@momjian.us
Whole thread Raw
In response to Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)  (Christopher Browne <cbbrowne@gmail.com>)
Responses Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
List 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@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

pgsql-bugs by date:

Previous
From: Christopher Browne
Date:
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Next
From: Christopher Browne
Date:
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)