unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: ¬ notation for not? Ref: Add a couple cells to lisp-prettify-symbols-alist
Date: Mon, 18 Jul 2016 11:07:07 -0400	[thread overview]
Message-ID: <jwvinw32dti.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 8737n7t4q7.fsf@lifelogs.com

SM> Currently it's
SM>
SM> (push '("not" . ?√) prettify-symbols-alist)
SM>
SM> and hopefully we can keep something similar.  This said, the intention
SM> of having two sets is that adding a new element should be unusual: the
SM> extended set should cover most things that someone might like.

> What about the distinction between global and local (per mode, per
> filename, etc.) prettifications?

Not sure what you mean.

> The UI here is just a programming API, but it becomes hard for
> a casual user to override without writing custom Lisp code, I think?

As mentioned, I assume it'd be considered an unusual need, so I think
it's perfectly OK if it can't be done via Custom.

>>> * how would I remove '("sqrt" . ?√) from the alist?
SM> (push ?√ prettify-symbols-inhibited-chars) or customize
SM> prettify-symbols-inhibited-chars.
> This is a bit easier than adding, if we assume the inhibition will
> always be global.

Right.  I assume here that it's sufficient to allow global inhibition
from Custom.  If you want it more fine grained, you'll need to learn to
use add-hook and setq-local.

> But defcustoms (and the underlying widgets) don't allow dynamically
> sourced choices, do they?  So the user has to copy and paste the
> special symbol?  (I looked in the widget library for dynamic choice
> lists just this morning for the gnus-cloud stuff, where it would be
> nice to offer a dynamic list of all the possible IMAP server as cloud
> hosts.  I couldn't find a way.  Maybe I missed something.)

There's currently no widget that does that, indeed.  The closest is the
support for completion.  AFAIK there's no deep technical reason why this
is the case and I'd welcome someone adding a `dynamic-choice` type.
There are already various places where we could use such a thing.


        Stefan




  reply	other threads:[~2016-07-18 15:07 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
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 [this message]
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=jwvinw32dti.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /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).