From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Undo boundaries inside macros? Date: Thu, 22 Mar 2018 17:47:55 +0100 Message-ID: References: <878takm8ar.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1521737468 17390 195.159.176.226 (22 Mar 2018 16:51:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2018 16:51:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 22 17:51:04 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ez3Qe-0004P5-E5 for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2018 17:51:04 +0100 Original-Received: from localhost ([::1]:33749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez3Sf-0001dD-Ve for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2018 12:53:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez3Nh-0006lI-EJ for emacs-devel@gnu.org; Thu, 22 Mar 2018 12:48:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ez3Nd-0003qW-Jq for emacs-devel@gnu.org; Thu, 22 Mar 2018 12:48:01 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:43510) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ez3Nd-0003px-D0 for emacs-devel@gnu.org; Thu, 22 Mar 2018 12:47:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4C7A5AE00 for ; Thu, 22 Mar 2018 16:47:56 +0000 (UTC) X-Yow: Here we are in America... when do we collect unemployment? In-Reply-To: <878takm8ar.fsf@gmail.com> (Robert Pluim's message of "Thu, 22 Mar 2018 16:36:28 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223917 Archived-At: On M=C3=A4r 22 2018, Robert Pluim wrote: > 1 2 C-/ ; this undoes all the effects of the macro > > 1 RET 2 C-/ ; this only undoes the '2' > > I was expecting undo to be an all-or-nothing affair, but adding lines > introduces an undo boundary inside the macro. It matches what happens > when you type '1 RET 2' interactively, but should it? I think it should, as kbd macros are really more or less equivalent to typing interactively. Andreas. --=20 Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D= 7 "And now for something completely different."