From: Dmitry Gutov <dgutov@yandex.ru>
To: Anders Lindgren <andlind@gmail.com>
Cc: 23465@debbugs.gnu.org
Subject: bug#23465: 25.0.93; `lambda' after hash-quote not highlighted as keyword
Date: Wed, 11 May 2016 13:18:13 +0300 [thread overview]
Message-ID: <eef90522-4131-9696-b4ec-8974c6657d6e@yandex.ru> (raw)
In-Reply-To: <CABr8ebYiCWNXpi73j99LcXgWra=OOdCAUikULV-f9uS5AbWDpQ@mail.gmail.com>
On 05/11/2016 12:34 PM, Anders Lindgren wrote:
> I thought they were the preferred way to write lambda:s. All examples in
> the elisp reference guide use #' and there are almost 400 uses of them
> in the Emacs source.
Since #'(lambda is fully equivalent to (lambda, we don't want to write
the former anymore. The existing uses are probably holdouts from the
time when the equivalence wasn't true yet.
I see only 4 hits on #'(lambda in our .texi files, and one of them (in
functions.texi) says that the usages are equivalent and further
elaborates on that. The others should be changed.
> As an aside, it would be great if we could get rid of the
> duplication between lisp--el-non-funcall-position-p vs
> elisp--form-quoted-p, elisp--expect-function-p and some bits inside
> elisp-completion-at-point. Or reduce it, at least.
>
>
> Good points. However, shouldn't this be done in the master branch, not
> in emacs-25?
Yep.
> When we're talking about enhancements. Currently, lisp special forms
> (like "if" and "and") as well as elisp macros are highlighted using the
> keyword face. Shouldn't it be better to use two different faces, or at
> least give the user the option to configure this separately?
Let's not give the users a choice, it's not exactly a meaningful one.
We should rather have a standard which faces to use where that's kept
consistent across major modes.
Alas, our choice is not easy here, since `font-lock-builtin-face' is
currently used for keyword symbols.
> I would
> imagine that the real keywords would no longer stand out in lisp
> source using lots of macros. (Again, this is not for emacs-25.)
What's a keyword in Lisp? I'm not sure you can draw a definite line,
especially since we could have a primitive defined in C in one version
of Emacs, and moved to Lisp in the next version.
next prev parent reply other threads:[~2016-05-11 10:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-06 10:07 bug#23465: 25.0.93; `lambda' after hash-quote not highlighted as keyword Anders Lindgren
2016-05-06 18:32 ` Anders Lindgren
2016-05-10 15:00 ` Anders Lindgren
2016-05-10 16:25 ` Eli Zaretskii
2016-05-10 22:09 ` Dmitry Gutov
2016-05-11 9:19 ` Anders Lindgren
2016-05-11 9:34 ` Anders Lindgren
2016-05-11 9:46 ` Eli Zaretskii
2016-05-12 5:49 ` John Wiegley
2016-05-11 10:18 ` Dmitry Gutov [this message]
2016-05-11 12:32 ` Stefan Monnier
2016-05-11 12:39 ` Dmitry Gutov
2016-05-11 13:08 ` Anders Lindgren
2016-05-11 13:35 ` Stefan Monnier
2016-05-11 15:02 ` Anders Lindgren
2018-01-28 23:31 ` Noam Postavsky
2018-01-29 7:56 ` Anders Lindgren
2018-01-29 12:25 ` Noam Postavsky
2018-01-29 12:52 ` Anders Lindgren
2020-08-19 12:20 ` Lars Ingebrigtsen
2016-05-11 10:00 ` Leo Liu
2016-05-11 12:25 ` Stefan Monnier
2016-05-12 1:32 ` Leo Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eef90522-4131-9696-b4ec-8974c6657d6e@yandex.ru \
--to=dgutov@yandex.ru \
--cc=23465@debbugs.gnu.org \
--cc=andlind@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.