From: ludo@gnu.org (Ludovic Courtès)
To: Alex Kost <alezost@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Don't change "+" syntax in guix/.dir-locals.el
Date: Mon, 28 May 2018 11:34:27 +0200 [thread overview]
Message-ID: <87wovo2kf0.fsf@gnu.org> (raw)
In-Reply-To: <87a7sqgudq.fsf@gmail.com> (Alex Kost's message of "Wed, 23 May 2018 20:21:53 +0300")
Alex Kost <alezost@gmail.com> skribis:
> Highlighting? Sorry, I don't understand what you mean: highlighting
> will not be effected in any way. The problem is that those
> 'modify-syntax-entry' lines in ".dir-locals.el" break the default syntax
> table of scheme-mode, so "+", "$" and "~" characters are not considered
> to be parts of symbols (variable names in particular), i.e.
> (re-search-forward "\\s_" nil t) doesn't find them as it should.
>
> Since you added those lines, you probably know what Paredit problem you
> fixed by that (perhaps this problem should be fixed in Paredit itself?)
Yes, the comment gives an idea:
;; This notably allows '(' in Paredit to not insert a space when the
;; preceding symbol is one of these.
Basically if you don’t have it, when you type “#$(foo)”, Paredit inserts
a space before the opening parenthesis.
I think it also allows #$ to be highlighted in a special way.
HTH!
Ludo’.
next prev parent reply other threads:[~2018-05-28 9:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-20 19:57 Don't change "+" syntax in guix/.dir-locals.el Pierre Neidhardt
2018-05-21 18:31 ` Alex Kost
2018-05-23 12:33 ` Ludovic Courtès
2018-05-23 17:21 ` Alex Kost
2018-05-28 9:34 ` Ludovic Courtès [this message]
2018-05-29 9:16 ` Alex Kost
2018-05-29 9:20 ` Pierre Neidhardt
2018-05-29 19:31 ` Ludovic Courtès
2018-05-30 8:36 ` Alex Kost
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wovo2kf0.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=alezost@gmail.com \
--cc=guix-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/guix.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).