From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Editing change groups Date: Fri, 09 Nov 2018 15:14:24 +0200 Message-ID: <83k1lmbdfz.fsf@gnu.org> References: <87sh0an0wf.fsf@web.de> <87bm6ywhli.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1541769196 24924 195.159.176.226 (9 Nov 2018 13:13:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 13:13:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, npostavs@gmail.com To: Michael Heerdegen , Richard Stallman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 14:13:11 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1gL6b1-0006LA-Ce for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2018 14:13:11 +0100 Original-Received: from localhost ([::1]:33910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL6d7-0006F8-SB for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2018 08:15:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL6ch-0006Ex-QU for help-gnu-emacs@gnu.org; Fri, 09 Nov 2018 08:14:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL6cb-0004bK-J7 for help-gnu-emacs@gnu.org; Fri, 09 Nov 2018 08:14:55 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL6ca-0004aT-MO; Fri, 09 Nov 2018 08:14:49 -0500 Original-Received: from [176.228.60.248] (port=4799 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gL6cR-0000zU-S9; Fri, 09 Nov 2018 08:14:40 -0500 In-reply-to: <87bm6ywhli.fsf@web.de> (message from Michael Heerdegen on Fri, 09 Nov 2018 13:39:05 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118616 Archived-At: > From: Michael Heerdegen > Date: Fri, 09 Nov 2018 13:39:05 +0100 > Cc: Help Gnu Emacs mailing list > > Noam Postavsky writes: > > > Possible alternative approach with prior art in string-rectangle: fake > > the change with overlays for preview, then it's easy to remove. > > Hmm - does that mean you also don't know how these change groups work > ;-) If we want an explanation how it should work, we should ask Richard (CC'ed), because he designed and implemented this. FWIW, the following does work for me as expected: (catch 'foo (atomic-change-group (insert "a\n") (insert "b\n") (throw 'foo 1))) If you evaluate this, you get 1 as the value, and nothing inserted into the buffer.