[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] scratch/fix-33794-extend-electric-layout-mode 41a9132:
Re: [Emacs-diffs] scratch/fix-33794-extend-electric-layout-mode 41a9132: Extend electric-layout-mode to handle more complex layouts
Sat, 29 Dec 2018 10:59:51 -0500
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
> 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").