all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: weber <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using `eval-expression' for math
Date: Thu, 3 Apr 2008 14:11:08 -0700 (PDT)	[thread overview]
Message-ID: <640052fb-70e4-446a-a1cb-50721fa7fc12@2g2000hsn.googlegroups.com> (raw)
In-Reply-To: mailman.9953.1207248322.18990.help-gnu-emacs@gnu.org

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

:)


  parent reply	other threads:[~2008-04-03 21:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-03 12:52 Using `eval-expression' for math reader
2008-04-03 13:53 ` Lennart Borgman (gmail)
2008-04-03 13:58 ` Thierry Volpiatto
2008-04-04 20:28   ` reader
2008-04-03 18:45 ` Nikolaj Schumacher
     [not found] ` <mailman.9953.1207248322.18990.help-gnu-emacs@gnu.org>
2008-04-03 21:11   ` weber [this message]
2008-04-04 20:40   ` Jay Belanger

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=640052fb-70e4-446a-a1cb-50721fa7fc12@2g2000hsn.googlegroups.com \
    --to=hugows@gmail.com \
    --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.
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.