Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XyLzu-00047z-IO for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Dec 2014 14:42:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XyLzt-0003UZ-7c for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Dec 2014 14:42:41 +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 1XyLzs-0003US-9Q for pgsql-bugs@postgresql.org; Tue, 09 Dec 2014 14:42:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XyLzp-0001sd-5C for pgsql-bugs@postgresql.org; Tue, 09 Dec 2014 14:42:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sB9EgTcY000662; Tue, 9 Dec 2014 09:42:29 -0500 From: Tom Lane To: Alvaro Herrera cc: Francisco Olarte , Ed Avis , "pgsql-bugs@postgresql.org" Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal) In-reply-to: <20141209135841.GN1768@alvh.no-ip.org> References: <20141117093434.2479.18410@wrigleys.postgresql.org> <20141203004050.GA25084@momjian.us> <26947.1417573493@sss.pgh.pa.us> <20141209135841.GN1768@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Tue, 09 Dec 2014 10:58:41 -0300" Date: Tue, 09 Dec 2014 09:42:29 -0500 Message-ID: <661.1418136149@sss.pgh.pa.us> 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 Alvaro Herrera writes: > Do we really hardcode more/less? I thought we just used whatever $PAGER > is set to. Yeah, if PAGER is set. If not, we fall back to some wired-in default. But I think the proposal here is to let an emacs-related environment variable override whether we use a pager at all. > BTW another thing you could try is > export PAGER=cat > from within Emacs. True. That would have the advantage of fixing more stuff than just psql, so there's some attraction to doing that instead of hacking psql. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs