From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Bruce Momjian <bruce@momjian.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Дилян Палаузов <dpa-postgres@aegee.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: psql and readline comments
Date: Tue, 29 Jan 2019 04:59:40 +0000
Message-ID: <87bm40hyg1.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <20190128191731.GC26761@momjian.us>
References: <201901141559.ne4yhv2nwsl5@alvherre.pgsql>
<82eab8ea-5d9d-efab-dcc8-d7713d2b0645@2ndquadrant.com>
<20190126001801.GL13803@momjian.us>
<87womsjbpq.fsf@news-spur.riddles.org.uk>
<20190128191731.GC26761@momjian.us>
>>>>> "Bruce" == Bruce Momjian <bruce@momjian.us> writes:
Bruce> Uh, bind as a key? Does the patch have any effect then?
As I said, libedit does not bind M-# by default, and has no equivalent
to readline's comment-begin variable. I have no idea what the patch
would do when linked against libedit without actually trying it out
(which I have not done).
Bruce> If not, maybe we should just do this for libreadline.
Bear in mind that for licensing reasons, some package builds build psql
against libedit but then wedge readline in at runtime using LD_PRELOAD.
So doing things differently at compile time based on whether it's
libedit or readline will not work well with that.
--
Andrew (irc:RhodiumToad)
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: andrew@tao11.riddles.org.uk, bruce@momjian.us, peter.eisentraut@2ndquadrant.com, alvherre@2ndquadrant.com, dpa-postgres@aegee.org, tgl@sss.pgh.pa.us
Subject: Re: psql and readline comments
In-Reply-To: <87bm40hyg1.fsf@news-spur.riddles.org.uk>
References: <201901141559.ne4yhv2nwsl5@alvherre.pgsql> <82eab8ea-5d9d-efab-dcc8-d7713d2b0645@2ndquadrant.com> <20190126001801.GL13803@momjian.us> <87womsjbpq.fsf@news-spur.riddles.org.uk> <20190128191731.GC26761@momjian.us> <87bm40hyg1.fsf@news-spur.riddles.org.uk>
* 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