From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] scratch/fix-33794-extend-electric-layout-mode 41a9132: Extend electric-layout-mode to handle more complex layouts Date: Sat, 29 Dec 2018 10:59:51 -0500 Message-ID: References: <20181221180327.7142.84494@vcs0.savannah.gnu.org> <20181221180328.D755D20538@vcs0.savannah.gnu.org> <87sgyp6ysy.fsf@gmail.com> <87lg49fh18.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1546100909 9118 195.159.176.226 (29 Dec 2018 16:28:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2018 16:28:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 29 17:28:25 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdHTM-0002Fo-K8 for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2018 17:28:24 +0100 Original-Received: from localhost ([127.0.0.1]:39851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdHVT-0008BG-4n for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2018 11:30:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdHSo-0005it-4J for emacs-devel@gnu.org; Sat, 29 Dec 2018 11:27:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdHMp-00088j-Gj for emacs-devel@gnu.org; Sat, 29 Dec 2018 11:21:42 -0500 Original-Received: from [195.159.176.226] (port=46753 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gdH1s-0001wv-QE for emacs-devel@gnu.org; Sat, 29 Dec 2018 11:00:01 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gdGzh-0000B7-Tf for emacs-devel@gnu.org; Sat, 29 Dec 2018 16:57:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:6iUYLMmj6odnfxGYOJVm+8JHO4A= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232034 Archived-At: > Passed it last-command event. Perhaps I should also mention that the > function runs with point set to char-after of the insertion. Is it guaranteed that it's the case? >> nil doesn't need to be mentioned here, since it's a special case of >> "list of the preceding symbols". > > OK, but notice that because of the subtlety that when using the compound > function, nil has the meaning of "no match". So if that function wants > to match but don't insert anything, it has to return a list of the > single element nil. So maybe I should add it back to the docstring (I > just pushed the commit that removes it). It's not a problem here. It's a problem for the case where (MATCHER . WHERE) is a function (in which case returning nil is ambiguous, it could mean "matched but don't do anything" or "didn't match"). Stefan