all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: ¬ notation for not? Ref: Add a couple cells to lisp-prettify-symbols-alist
Date: Sun, 10 Jul 2016 16:35:41 +0200	[thread overview]
Message-ID: <57825D3D.5000106@gmail.com> (raw)
In-Reply-To: <20160710052404.GA28783@holos.localdomain>


[-- Attachment #1.1: Type: text/plain, Size: 1148 bytes --]

On 2016-07-10 07:24, Mark Oteiza wrote:
> and ending up with bad indentation because of prettify-symbols-mode.

That. How do we solve this?

Wouldn't it be nice if space on the line below could be compressed too, so that indentation is fine?

That is, if I prettify ‘and’ as ‘∧’, I currently turn

    (and x
         y
         z)

into

    (∧ x
         y
         z)

which looks wrongly aligned, and then if I reindent I get

    (∧ x
       y
       z)

which looks like

    (and x
       y
       z)

to others who don't use prettification.

What if spaces inside of a sexp, under a prettified symbol, could be prettified too? So I'd see

    (∧ x
       y
       z)

but the buffer would really contain

    (and x
         y
         z)

that is, it would behave as if the text was really

    (and x
     and y
     and z)

only the two last ‘and’s would be invisible.

Of course this wouldn't solve every problem, (stuff that e.g. align-regexp produces would still be misaligned), but it would be a good start, no?
I wonder how hard it would be.

Clément.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2016-07-10 14:35 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 [this message]
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
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57825D3D.5000106@gmail.com \
    --to=clement.pit@gmail.com \
    --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.