Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goLV0-0004iZ-MU for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Jan 2019 04:59:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goLUy-0000d4-WD for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Jan 2019 04:59:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goLUy-0000cw-Pf for pgsql-bugs@lists.postgresql.org; Tue, 29 Jan 2019 04:59:48 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goLUw-0000Ke-9x for pgsql-bugs@postgresql.org; Tue, 29 Jan 2019 04:59:48 +0000 Received: from [192.168.127.1] (port=34006 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1goLUr-0003Mn-TF; Tue, 29 Jan 2019 04:59:41 +0000 Received: from [127.0.0.1] (port=61998 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1goLUr-000Je2-6L; Tue, 29 Jan 2019 04:59:41 +0000 From: Andrew Gierth To: Bruce Momjian Cc: Peter Eisentraut , Alvaro Herrera , =?utf-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0Lc=?= =?utf-8?B?0L7Qsg==?= , Tom Lane , pgsql-bugs@postgresql.org Subject: Re: psql and readline comments In-Reply-To: <20190128191731.GC26761@momjian.us> (Bruce Momjian's message of "Mon, 28 Jan 2019 14:17:31 -0500") Message-ID: <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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 29 Jan 2019 04:59:40 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Bruce" == Bruce Momjian 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)