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

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

Re: Is there a way to start Calc, taking the region as input and replaci


From: Marcin Borkowski
Subject: Re: Is there a way to start Calc, taking the region as input and replacing it with the value?
Date: Sat, 1 Feb 2014 20:17:02 +0100

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



reply via email to

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