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 1goCPk-0002G7-G5 for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Jan 2019 19:17:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goCPi-00051B-I0 for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Jan 2019 19:17:46 +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 1goCPi-000513-Bc for pgsql-bugs@lists.postgresql.org; Mon, 28 Jan 2019 19:17:46 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goCPb-0003lb-LF for pgsql-bugs@postgresql.org; Mon, 28 Jan 2019 19:17:45 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1goCPT-00014P-2y; Mon, 28 Jan 2019 14:17:31 -0500 Date: Mon, 28 Jan 2019 14:17:31 -0500 From: Bruce Momjian To: Andrew Gierth Cc: Peter Eisentraut , Alvaro Herrera , =?utf-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= , Tom Lane , pgsql-bugs@postgresql.org Subject: Re: psql and readline comments Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87womsjbpq.fsf@news-spur.riddles.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Jan 26, 2019 at 04:41:17AM +0000, Andrew Gierth wrote: > >>>>> "Bruce" == Bruce Momjian writes: > > Bruce> Agreed. I am not sure how someone would conditionally bind M-# > Bruce> to -- _only_ in psql, > > By doing this in .inputrc: > > $if psql > set comment-begin "--" > $endif > > (observe that we set rl_readline_name in order to allow this) > > But that shouldn't necessarily stop us doing the setting in psql by > default - it just needs to be verified that it does compile against the > libedit versions people are actually using, and not break anything. (On > the libedit on my system, rl_variable_bind ends up trying to bind the > variable as a _key_, and I have no idea what effect that would have if > any. Note that libedit does not seem to bind M-# by default.) Uh, bind as a key? Does the patch have any effect then? If not, maybe we should just do this for libreadline. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +