Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aA1rj-0004LB-3g for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Dec 2015 20:43:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aA1ri-0008Ed-Fn for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Dec 2015 20:43:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aA1rg-0008DD-H4 for pgsql-hackers@postgresql.org; Fri, 18 Dec 2015 20:43:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aA1rd-0005Ys-DK for pgsql-hackers@postgresql.org; Fri, 18 Dec 2015 20:42:59 +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 tBIKgo2s001852; Fri, 18 Dec 2015 15:42:50 -0500 From: Tom Lane To: Thomas Munro cc: Michael Paquier , Kyotaro HORIGUCHI , Alvaro Herrera , Jeff Janes , PostgreSQL mailing lists Subject: Re: Making tab-complete.c easier to maintain In-reply-to: References: <20151217.150633.216859242.horiguchi.kyotaro@lab.ntt.co.jp> Comments: In-reply-to Thomas Munro message dated "Thu, 17 Dec 2015 22:04:41 +1300" Date: Fri, 18 Dec 2015 15:42:50 -0500 Message-ID: <1851.1450471370@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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Thomas Munro writes: > [ tab-complete-macrology-v11.patch.gz ] A couple of stylistic reactions after looking through the patch for the first time in a long time: 1. It seems inconsistent that all the new macros are named in CamelCase style, whereas there is still plenty of usage of the existing macros like COMPLETE_WITH_LIST. It looks pretty jarring IMO. I think we should either rename the new macros back to all-upper-case style, or rename the existing macros in CamelCase style. I slightly favor the latter option; we're already pretty much breaking any hope of tab-complete fixes applying backwards over this patch, so changing the code even more doesn't seem like a problem. Either way, it's a quick search-and-replace. Thoughts? 2. Why does MatchAnyExcept use "'" as the inversion flag, rather than say "!" or "~" ? Seems pretty random. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers