help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using `eval-expression' for math


From: weber
Subject: Re: Using `eval-expression' for math
Date: Thu, 3 Apr 2008 14:11:08 -0700 (PDT)
User-agent: G2/1.0

On Apr 3, 3:45 pm, Nikolaj Schumacher <n_schumac...@web.de> wrote:
> rea...@newsguy.com wrote:
> > Using awk takes longer to get it done than a quick `eval-expression' inside
> > emacs would take.
>
> If you don't like the reverse notation, you could also do this:
>
> (calc-eval "52 * 32 / 12")
>
> Personally I like to just type such stuff in the buffer, mark it, and
> have it replaced by the result.  That's why I wrote this:
>
> http://nschum.de/src/emacs/macro-math/
>
> regards,
> Nikolaj Schumacher

This is great, thanks!
I specially like that it works across newlines:

1
+10
-2
+1
-3

:)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]