From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Roche Newsgroups: gmane.emacs.help Subject: Re: `quick-calc` inside `query-replace` breaks Date: Thu, 10 Sep 2015 14:59:25 -0400 Message-ID: <87r3m6xfqq.fsf@pobox.com> References: <87vbd2wpuq.fsf@pobox.com> Reply-To: help-gnu-emacs@gnu.org, Tom Roche NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441911608 3740 80.91.229.3 (10 Sep 2015 19:00:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2015 19:00:08 +0000 (UTC) To: help-gnu-emacs@gnu.org, Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 10 20:59:59 2015 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 1Za74e-0006S2-6N for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Sep 2015 20:59:56 +0200 Original-Received: from localhost ([::1]:51272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za74d-0008PP-ND for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Sep 2015 14:59:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za74M-0008ML-WA for help-gnu-emacs@gnu.org; Thu, 10 Sep 2015 14:59:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za74I-0006B3-UE for help-gnu-emacs@gnu.org; Thu, 10 Sep 2015 14:59:38 -0400 Original-Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:50330 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za74I-0006Am-Of for help-gnu-emacs@gnu.org; Thu, 10 Sep 2015 14:59:34 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp0.pobox.com (Postfix) with ESMTP id 97FD617CCC; Thu, 10 Sep 2015 14:59:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; s=sasl; bh=CugWgZXz5jVSEoGESbpKCvQLE Qk=; b=azchNUnqOj14gocYJ6Aum7tcMg0Adnn2Wi+CjeQS4KUDYXWUtuF8gXw5H aKIMZ9i7FJ9+dwgbCY3i0CP0Fvg8bfrVWKmPWAMW24c4gXPtQvMgQLSN8JqrENli m70re9LkUv7/f8To6JVPBOx0LKDxVxMPo0+9ExGleLAnSDGG1M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :in-reply-to:references:reply-to:date:message-id:mime-version :content-type; q=dns; s=sasl; b=wB60o0jEe7HviKURBDqfdBiwTwLO9uCv A7mR/R6dHHZU1I0IXJy1pE3RnoPqqv3n4DrYW5Bm1LTYJy3DRtl8qc8Ul1dWvkWU /0cL1fJvGy0cRvootRtlnFJ5b2y2OJCbrQNhfzVTEkJSFCtTGYni5FgF6xwm4Cab HODV4vIahTk= Original-Received: from pb-smtp0. (unknown [127.0.0.1]) by pb-smtp0.pobox.com (Postfix) with ESMTP id 9186017CCB; Thu, 10 Sep 2015 14:59:33 -0400 (EDT) Original-Received: from tlrW510.pobox.com (unknown [71.20.203.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp0.pobox.com (Postfix) with ESMTPSA id BF8E117CCA; Thu, 10 Sep 2015 14:59:32 -0400 (EDT) In-Reply-To: <87vbd2wpuq.fsf@pobox.com> User-Agent: GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) X-Pobox-Relay-ID: 128EBF0E-57EE-11E5-A9A5-ADA26AB36C07-07218935!pb-smtp0.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.72.237.35 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:107125 Archived-At: Tom Roche Wed, 29 Jul 2015 18:39:25 -0400[1] > after finally upgrading to {[Debian] Jessie, 'GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)'}, [calling] `quick-calc` inside [`query-replace` immediately gets error=] > > byte-code: Wrong number of arguments: (lambda nil (interactive) (log-BP4)), 2 > which abends `quick-calc`, which abends macro recording. So I'd like to know: > 1. Is the new behavior a bug or a feature (i.e., Working As Designed)? > 1.1. (if a bug) Has this been previously reported? > 1.1.1. (if so) apologies if this is a FAQ, but a quick websearch showed me nothing. > 1.1.2. (if not) To where should it be reported? > 1.2. (if WAD) How can I workaround the new behavior to do what I want (possibly more effectively)? Regarding the latter question: macro counters[2] deliver appropriate functionality for the vast majority of my usecases, and hopefully will be useful for OP. That being said, I'd still like to know why one can no longer run `quick-calc` inside `query-replace`. (And possibly other interactive functions?) HTH, Tom Roche [1]: http://lists.gnu.org/archive/html/help-gnu-emacs/2015-07/msg00772.html [2]: http://ericjmritz.name/2013/09/25/using-macro-counters-in-emacs/