all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is there a way to start Calc, taking the region as input and replacing it with the value?
@ 2014-02-01 17:40 Marcin Borkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Marcin Borkowski @ 2014-02-01 17:40 UTC (permalink / raw)
  To: GNU Emacs users list

Well, the subject is basically what I want.  I'd like to be able to
type, e.g., "2+3", mark it as a region, and press *something* only to
get it *replaced* by "5".

C-u C-x * g C-x * y q is pretty close, but not the same (and way too
long to be comfortable).

If there's no such thing, I could probably write it in Elisp myself,
but why reinvent the wheel?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is there a way to start Calc, taking the region as input and replacing it with the value?
       [not found] <mailman.13473.1391276427.10748.help-gnu-emacs@gnu.org>
@ 2014-02-01 18:24 ` marc tfardy
  2014-02-01 19:17   ` Marcin Borkowski
  0 siblings, 1 reply; 3+ messages in thread
From: marc tfardy @ 2014-02-01 18:24 UTC (permalink / raw)
  To: help-gnu-emacs

Am 01.02.14 18:40, schrieb Marcin Borkowski:
> Well, the subject is basically what I want.  I'd like to be able to
> type, e.g., "2+3", mark it as a region, and press *something* only to
> get it *replaced* by "5".
>
> C-u C-x * g C-x * y q is pretty close, but not the same (and way too
> long to be comfortable).
>
> If there's no such thing, I could probably write it in Elisp myself,
> but why reinvent the wheel?

Exactly for this purpose I use macro-math:
https://github.com/nschum/macro-math.el/blob/master/macro-math.el


-- 
(or greets gruesse pozdro)
tfardy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is there a way to start Calc, taking the region as input and replacing it with the value?
  2014-02-01 18:24 ` marc tfardy
@ 2014-02-01 19:17   ` Marcin Borkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Marcin Borkowski @ 2014-02-01 19:17 UTC (permalink / raw)
  To: help-gnu-emacs

Dnia 2014-02-01, o godz. 19:24:18
marc tfardy <tfardy@tfardoland.net> napisał(a):

> Am 01.02.14 18:40, schrieb Marcin Borkowski:
> > Well, the subject is basically what I want.  I'd like to be able to
> > type, e.g., "2+3", mark it as a region, and press *something* only
> > to get it *replaced* by "5".
> >
> > C-u C-x * g C-x * y q is pretty close, but not the same (and way too
> > long to be comfortable).
> >
> > If there's no such thing, I could probably write it in Elisp myself,
> > but why reinvent the wheel?
> 
> Exactly for this purpose I use macro-math:
> https://github.com/nschum/macro-math.el/blob/master/macro-math.el
> 
> 

Thanks a lot, seems to be exactly what I meant (though rounding would
be less useful for me)!  Meanwhile, I recalled about the embedded mode,
which does a very similar thing.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-01 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-01 17:40 Is there a way to start Calc, taking the region as input and replacing it with the value? Marcin Borkowski
     [not found] <mailman.13473.1391276427.10748.help-gnu-emacs@gnu.org>
2014-02-01 18:24 ` marc tfardy
2014-02-01 19:17   ` Marcin Borkowski

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.