emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Native line numbers landed on master


From: Stefan Monnier
Subject: Re: Native line numbers landed on master
Date: Tue, 11 Jul 2017 11:27:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> Looks okay, although I'd drop the # part in the below:
>   (add-hook 'pre-command-hook #'display-line-numbers-update-width nil t))

Recent Elisp changes have rather gone the other way (adding a # rather
than removing them).  Part of the reason is that lexical-binding gives
different semantics to '(lambda ...) and #'(lambda ...), other part is
that cl-flet and cl-labels also give different semantics to 'foo and
#'foo.

Finally, if you keep the # part, the byte-compiler will be able to check
that you spelled the function correctly (and warn you if that function
is not known to exist).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]