unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Spaces please!
@ 2009-12-01 16:19 andrea
  2009-12-02 13:33 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 7+ messages in thread
From: andrea @ 2009-12-01 16:19 UTC (permalink / raw)
  To: help-gnu-emacs


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.

Someone has done it already maybe?





^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <mailman.11955.1259684648.2239.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2009-12-02 13:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-01 16:19 Spaces please! andrea
2009-12-02 13:33 ` Thien-Thi Nguyen
     [not found] <mailman.11955.1259684648.2239.help-gnu-emacs@gnu.org>
2009-12-01 17:06 ` 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
2009-12-01 18:26   ` Burkhard Schultheis

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).