From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: disabling undo boundaries Date: Tue, 12 May 2015 16:15:35 -0400 Message-ID: References: <87fv746rd5.fsf@newcastle.ac.uk> <87617zl4kh.fsf@newcastle.ac.uk> <87h9rjhy8w.fsf@newcastle.ac.uk> <87oalqrgm7.fsf@newcastle.ac.uk> <87ioby3tdy.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1431461783 31793 80.91.229.3 (12 May 2015 20:16:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 20:16:23 +0000 (UTC) Cc: Emacs-Devel devel To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 12 22:16:08 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YsGb2-0002CP-GO for ged-emacs-devel@m.gmane.org; Tue, 12 May 2015 22:16:08 +0200 Original-Received: from localhost ([::1]:44949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsGb1-0007uD-J2 for ged-emacs-devel@m.gmane.org; Tue, 12 May 2015 16:16:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsGaa-0007s2-0Q for emacs-devel@gnu.org; Tue, 12 May 2015 16:15:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsGaW-0001Hi-Og for emacs-devel@gnu.org; Tue, 12 May 2015 16:15:39 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:57972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsGaW-0001HU-CL for emacs-devel@gnu.org; Tue, 12 May 2015 16:15:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRFpYts/2dsb2JhbAA3DoFFoW+BCIF1AQEEAVYjBQsLNBIUGA2IN6IRjGQJAwECgz4Dg3AEo2OEBVM X-IPAS-Result: AgUFAGvvdVRFpYts/2dsb2JhbAA3DoFFoW+BCIF1AQEEAVYjBQsLNBIUGA2IN6IRjGQJAwECgz4Dg3AEo2OEBVM X-IronPort-AV: E=Sophos;i="5.11,557,1422939600"; d="scan'208";a="119423467" Original-Received: from 69-165-139-108.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.108]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 May 2015 16:15:35 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1546A325B; Tue, 12 May 2015 16:15:35 -0400 (EDT) In-Reply-To: <87ioby3tdy.fsf@newcastle.ac.uk> (Phillip Lord's message of "Tue, 12 May 2015 12:52:25 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186467 Archived-At: >> Then maybe you could try a hack like: >> >> (with-current-buffer "*scratch*" >> ) >> (let ((buffer-undo-list)) >> (undo-boundary)) ; Set last_undo_buffer. > It doesn't unfortunately. Oh, indeed when buffer-undo-list, undo-boundary is a no-op, so you need (with-current-buffer "*scratch*" ) (let ((buffer-undo-list '(""))) (undo-boundary)) ; Set last_undo_buffer. > It is, and one that has been in Emacs for a long time. How wedded to > keeping it are you? Would it be possible to optionalize? Not sure, Stefan