From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: marc tfardy Newsgroups: gmane.emacs.help Subject: Re: Is there a way to start Calc, taking the region as input and replacing it with the value? Date: Sat, 01 Feb 2014 19:24:18 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391279109 19685 80.91.229.3 (1 Feb 2014 18:25:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Feb 2014 18:25:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 01 19:25:18 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W9fFm-00030q-0B for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Feb 2014 19:25:18 +0100 Original-Received: from localhost ([::1]:38786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9fFl-0007ng-IQ for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Feb 2014 13:25:17 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net m5N1cqVFwgn+Jf2NnX7qEAX6Wby/mNiseDLvkn4xp9OKw0Ag== Cancel-Lock: sha1:cmKaySvatsAO7BVstbw+5rQ/JFw= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:203609 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95878 Archived-At: 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