all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: emacs-devel@gnu.org
Subject: Re: using glyphs by default in perl-mode
Date: Sat, 01 Jun 2013 10:47:04 -0400	[thread overview]
Message-ID: <jwvy5atgaog.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ip1y54fx.fsf@lifelogs.com> (Ted Zlatanov's message of "Sat, 01 Jun 2013 09:46:42 -0400")

> 1) move `perl--prettify-symbols-alist' and the functions for it,
> `perl--font-lock-compose-symbol' and `perl--font-lock-symbols-keywords'
> to simple.el (with the "prog-" prefix).

You might like to consider the pretty-lambda for Lisp as well as the
sml-font-lock-symbols in elpa/packages/sml-mode/sml-mode.el.
[ There are others out there for, e.g. for Hasekll-mode.  ]

> 2) declare `perl-prettify-symbols' obsolete in favor of the alist
> `prog-prettify-symbols'.

No need for such obsolescence declaration, since it's never been in any
released version.

> I gave `prog-prettify-symbols' two default choices:
> `prog--prettify-symbols-alist-basic' (just -> => ::) and
> `prog--prettify-symbols-alist-extended' (basic plus much more).  It can
> also be a free-form alist with key=string, value=character.  I expect
> programming modes will need to augment this list somehow, but I'd like
> the user to simply say "I want basics or extended" instead of having to
> select individual glyphs for every language.  Maybe the choice should be
> between :basic and :extended as symbols?  Ideas welcome.

In my experience, every major mode might want to provide its own list.

> The patch grows simple.el.  Perhaps it should live in prog.el or
> prettify.el.  prog.el seems more sensible.

I think prog-mode.el is in order, yes.

> I also wonder if it's possible to add the prettify support at the
> `prog-mode' level, so each mode doesn't have to explicitly inline
> those keywords.

That would be nice, indeed.  But I fear it's going to be tricky to make
it work right, so let's keep it for later.

> Unfortunately my font-lock-fu is not good, so I'd really appreciate help
> with the last two issues.  I spent a few hours on them but couldn't work
> them out.

I don't have much time to devote right now, but the current problem is
probably a minor oversight.


        Stefan



  reply	other threads:[~2013-06-01 14:47 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30  0:50 using glyphs by default in perl-mode Dan Nicolaescu
2013-05-05  4:37 ` Stefan Monnier
2013-05-05  7:34   ` James Cloos
2013-05-06  1:09     ` Stefan Monnier
2013-05-06  4:26       ` Dan Nicolaescu
2013-05-06 15:09         ` Stefan Monnier
2013-05-07 16:32           ` Dan Nicolaescu
2013-05-07 21:20             ` Stefan Monnier
2013-05-08  3:22               ` Dan Nicolaescu
2013-05-08  4:02                 ` Stefan Monnier
2013-05-09 16:31                   ` Dan Nicolaescu
2013-05-09 16:39                     ` Eli Zaretskii
2013-05-09 17:22                       ` Stefan Monnier
2013-05-09 18:39                         ` Dan Nicolaescu
2013-05-09 18:58                         ` Andreas Röhler
2013-05-09 19:31                         ` James Cloos
2013-05-17 13:01                         ` Ted Zlatanov
2013-05-17 15:48                           ` Stefan Monnier
2013-05-19  2:50                             ` Ted Zlatanov
2013-05-30  0:01                               ` Dan Nicolaescu
2013-05-30 14:47                                 ` Ted Zlatanov
2013-05-30 17:18                                   ` Stefan Monnier
2013-05-30 20:32                                     ` Ted Zlatanov
2013-06-01  6:29                                     ` Dan Nicolaescu
2013-06-01 13:46                                       ` Ted Zlatanov
2013-06-01 14:47                                         ` Stefan Monnier [this message]
2013-06-02 12:35                                           ` Ted Zlatanov
2013-06-02 15:52                                             ` Stefan Monnier
2013-06-03  2:02                                               ` Ted Zlatanov
2013-06-03  2:04                                                 ` Ted Zlatanov
2013-06-03  7:04                                                   ` Stefan Monnier
2013-06-04  1:52                                                     ` Ted Zlatanov
2013-06-04 14:28                                                       ` Davis Herring
2013-06-04 17:20                                                       ` Stefan Monnier
2013-06-04 20:06                                                         ` Ted Zlatanov
2013-06-05  1:27                                                           ` Stefan Monnier
2013-06-05 14:45                                                             ` Ted Zlatanov
2013-06-05 16:13                                                               ` Stefan Monnier
2013-06-05 17:28                                                                 ` Ted Zlatanov
2013-06-05 17:42                                                                   ` joakim
2013-06-05 17:58                                                                     ` Ted Zlatanov
2013-06-05 17:50                                                                   ` Ted Zlatanov
2013-06-05 18:52                                                                   ` Stefan Monnier
2013-06-05 19:36                                                                     ` Ted Zlatanov
2013-06-05 20:13                                                                       ` joakim
2013-06-05 16:43                                                               ` Glenn Morris
2013-06-05 17:52                                                                 ` Ted Zlatanov
2013-06-05 18:07                                                                   ` Glenn Morris
2013-06-05 18:33                                                                     ` Ted Zlatanov
2013-06-05 18:55                                                                   ` Stefan Monnier
2013-06-05 19:34                                                                     ` Ted Zlatanov
2013-06-05 20:19                                                                       ` Stefan Monnier
2013-06-07  7:36                                                               ` Eli Zaretskii
2013-06-07  7:45                                                                 ` Jambunathan K
2013-06-07  7:45                                                                 ` bug#13189: " Jambunathan K
2013-06-07 13:05                                                                   ` Ted Zlatanov
2013-06-07 16:07                                                                     ` Stefan Monnier
2013-06-07 16:44                                                                       ` Glenn Morris
2013-06-07 18:03                                                                         ` Ted Zlatanov
2013-06-07 19:14                                                                         ` Jambunathan K
2013-06-07 20:04                                                                           ` Glenn Morris
2013-06-07 19:15                                                                         ` Stefan Monnier
2013-06-07 16:07                                                                     ` Stefan Monnier
2013-06-07 12:48                                                                 ` Ted Zlatanov
2013-06-07 14:52                                                                   ` Eli Zaretskii
2013-06-07 15:39                                                                     ` Ted Zlatanov
2013-06-07 12:53                                                                 ` Kenichi Handa
2013-06-07 14:16                                                                   ` compose-region docstring update (was: using glyphs by default in perl-mode) Ted Zlatanov
2013-06-09 12:45                                                                     ` Kenichi Handa
2013-05-09 18:30                       ` using glyphs by default in perl-mode Dan Nicolaescu
2013-05-10  0:23                     ` Richard Stallman

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=jwvy5atgaog.fsf-monnier+emacs@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 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.