From: Burkhard Schultheis <burkhard.schultheis@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Spaces please!
Date: Tue, 01 Dec 2009 19:21:04 +0100 [thread overview]
Message-ID: <7nl54mF3mcig6U1@mid.individual.net> (raw)
In-Reply-To: <mailman.11955.1259684648.2239.help-gnu-emacs@gnu.org>
Am 01.12.2009 17:19, schrieb andrea:
>
> I get sick sometimes to read something like
> x=y+1*(2-3*a^2)
> but I get even more sick to add spaces manually every time.
> I ask help to you elisp gurus, should I use a regexp or a macro-like
> function (go-here, do-this)?
>
> I think I should define some rules like:
> - which operators want spaces (and if before or after)
> - what is the arity of them
>
> One problem for example could arise from things like
>
> (-2)^10
> but we could have some operators that could be binary or unary and check
> that somehow.
I would do it with a beautifier like uncrustify with GUI universalident
(<http://sourceforge.net/projects/universalindent/>. It can do that and
much, much more!
Regards
Burkhard
next prev parent reply other threads:[~2009-12-01 18:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11955.1259684648.2239.help-gnu-emacs@gnu.org>
2009-12-01 17:06 ` Spaces please! Pascal J. Bourguignon
2009-12-01 17:42 ` Harald Hanche-Olsen
2009-12-01 17:46 ` Lennart Borgman
2009-12-01 18:21 ` Burkhard Schultheis [this message]
2009-12-01 18:26 ` Burkhard Schultheis
2009-12-01 16:19 andrea
2009-12-02 13:33 ` Thien-Thi Nguyen
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=7nl54mF3mcig6U1@mid.individual.net \
--to=burkhard.schultheis@web.de \
--cc=help-gnu-emacs@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.
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).