From: Bruce Momjian <bruce@momjian.us>
To: Christopher Browne <cbbrowne@gmail.com>
Cc: Ed Avis <eda@waniasset.com>
Cc: PostgreSQL Mailing Lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Date: Tue, 9 Dec 2014 15:56:12 -0500
Message-ID: <20141209205612.GE24487@momjian.us> (raw)
In-Reply-To: <CAFNqd5UCy_vw24iWmj4Maycw7UKxjQwamwWTW66xkuwxswWzrg@mail.gmail.com>
References: <20141117093434.2479.18410@wrigleys.postgresql.org>
<20141203004050.GA25084@momjian.us>
<26947.1417573493@sss.pgh.pa.us>
<loom.20141208T123007-701@post.gmane.org>
<20141209202406.GC24487@momjian.us>
<CAFNqd5UCy_vw24iWmj4Maycw7UKxjQwamwWTW66xkuwxswWzrg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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. +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bruce@momjian.us, cbbrowne@gmail.com, eda@waniasset.com
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
In-Reply-To: <20141209205612.GE24487@momjian.us>
References: <20141117093434.2479.18410@wrigleys.postgresql.org> <20141203004050.GA25084@momjian.us> <26947.1417573493@sss.pgh.pa.us> <loom.20141208T123007-701@post.gmane.org> <20141209202406.GC24487@momjian.us> <CAFNqd5UCy_vw24iWmj4Maycw7UKxjQwamwWTW66xkuwxswWzrg@mail.gmail.com> <20141209205612.GE24487@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox