From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: RE: ¬ notation for not? Ref: Add a couple cells to lisp-prettify-symbols-alist
Date: Sun, 10 Jul 2016 08:04:22 -0700 (PDT) [thread overview]
Message-ID: <713910d3-3c5c-4b24-97c3-264921fe8494@default> (raw)
In-Reply-To: <jwv37nhh8hy.fsf-monnier+gmane.emacs.devel@gnu.org>
Is there a check, e.g. optional, for whether a given character cdr
for a `prettify-symbols-alist' entry is, as the only char in a
symbol name, either `fboundp' or `boundp', before going ahead and
prettifying the symbol that is the cdr of that alist entry?
IOW, check whether, e.g., for an entry such as `("not" . ?¬)',
(boundp '¬) or (fboundp '¬)?
A cursory glance at the code didn't find such a check. Seems like
it might be a good thing to add. If `¬' already exists as a
function or variable, then you probably do not also want
occurrences of the symbol `not' to be shown as `¬'.
IOW, if the only guard for prettifying is `prettify-symbols-alist'
then there could be cases of symbol-appearance capture. Sure,
this would not be common, and sure, someone could turn off the
mode if it is noticed. But it might also be good to make such
a check available (optional).
next prev parent reply other threads:[~2016-07-10 15:04 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-10 4:44 ¬ notation for not? Ref: Add a couple cells to lisp-prettify-symbols-alist Kaushal Modi
2016-07-10 5:24 ` Mark Oteiza
2016-07-10 5:47 ` Mark Oteiza
2016-07-10 13:31 ` Andreas Röhler
2016-07-10 14:57 ` Eli Zaretskii
2016-07-10 14:35 ` Clément Pit--Claudel
2016-07-10 15:05 ` Stefan Monnier
2016-07-10 14:44 ` Stefan Monnier
2016-07-10 14:57 ` Clément Pit--Claudel
2016-07-10 15:04 ` Drew Adams [this message]
2016-07-10 15:20 ` Mark Oteiza
2016-07-10 21:05 ` Stefan Monnier
2016-07-11 13:35 ` Ted Zlatanov
2016-07-11 14:01 ` Stefan Monnier
2016-07-14 21:18 ` Clément Pit--Claudel
2016-07-14 21:32 ` John Wiegley
2016-07-14 22:31 ` Mark Oteiza
2016-07-14 22:36 ` Kaushal Modi
2016-07-15 0:20 ` Stefan Monnier
2016-07-15 14:12 ` Ted Zlatanov
2016-07-15 14:46 ` Drew Adams
2016-07-15 15:13 ` visual distinction for prettified symbols (was: ¬ notation for not? Ref: Add a couple cells to lisp-prettify-symbols-alist) Ted Zlatanov
2016-07-15 16:14 ` ¬ notation for not? Ref: Add a couple cells to lisp-prettify-symbols-alist Drew Adams
2016-07-15 14:50 ` Stefan Monnier
2016-07-15 15:03 ` Ted Zlatanov
2016-07-15 15:17 ` Stefan Monnier
2016-07-15 15:35 ` Ted Zlatanov
2016-07-17 18:31 ` Stefan Monnier
2016-07-18 14:12 ` Ted Zlatanov
2016-07-18 15:07 ` Stefan Monnier
2016-07-18 16:49 ` Ted Zlatanov
2016-07-15 15:26 ` Ted Zlatanov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=713910d3-3c5c-4b24-97c3-264921fe8494@default \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).