all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: henry atting <snd@online.de>
To: help-gnu-emacs@gnu.org
Subject: Re: calc-embedded keep equation
Date: Fri, 07 Feb 2014 08:35:24 +0100	[thread overview]
Message-ID: <87wqh7e5oj.fsf@bye.fritz.box> (raw)
In-Reply-To: mailman.13797.1391606271.10748.help-gnu-emacs@gnu.org


> (defun replace-with-solved-equation (start-of-equation end-of-equation)
>   (interactive "r")
>   (if (not (region-active-p))
>       (error "Requires an active region"))
>
>   (let ((equation-string (buffer-substring start-of-equation end-of-equation)))
>     (calc-embedded nil)
>     (calc-embedded nil)
>     (save-excursion
>       (goto-char start-of-equation)
>       (insert equation-string " = "))))

This is great! Tim, thanks.

henry


      parent reply	other threads:[~2014-02-07  7:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05  9:27 calc-embedded keep equation henry atting
2014-02-05 13:17 ` Tim Visher
     [not found] ` <mailman.13797.1391606271.10748.help-gnu-emacs@gnu.org>
2014-02-07  7:35   ` henry atting [this message]

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=87wqh7e5oj.fsf@bye.fritz.box \
    --to=snd@online.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.
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.