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: [Emacs-diffs] fix/viper-undo 841dd0e: First attempt to fix viper undo bug #22295 Date: Mon, 16 May 2016 07:53:28 -0400 Message-ID: References: <20160516093356.24129.43941@vcs.savannah.gnu.org> <20160516093356.E1686220155@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463399642 32150 80.91.229.3 (16 May 2016 11:54:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 11:54:02 +0000 (UTC) Cc: Phillip Lord To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 16 13:53:49 2016 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 1b2H5d-0007CM-32 for ged-emacs-devel@m.gmane.org; Mon, 16 May 2016 13:53:37 +0200 Original-Received: from localhost ([::1]:43574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2H5c-0000st-HD for ged-emacs-devel@m.gmane.org; Mon, 16 May 2016 07:53:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2H5Z-0000qb-Ol for emacs-devel@gnu.org; Mon, 16 May 2016 07:53:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2H5V-0002h2-GF for emacs-devel@gnu.org; Mon, 16 May 2016 07:53:32 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:39398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2H5V-0002gw-DB for emacs-devel@gnu.org; Mon, 16 May 2016 07:53:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AwFgA731xV/4b1SC1cgxCEAoVVu0CHSwQCAoE8OhMBAQEBAQEBgQpBBYNdAQEEViMQCzQSFBgNiGPPIwEBAQEGAQEBAR6LOoUFBxaEFwWqYYojI4I7gVkigngBAQE X-IPAS-Result: A0AwFgA731xV/4b1SC1cgxCEAoVVu0CHSwQCAoE8OhMBAQEBAQEBgQpBBYNdAQEEViMQCzQSFBgNiGPPIwEBAQEGAQEBAR6LOoUFBxaEFwWqYYojI4I7gVkigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="238482892" Original-Received: from 45-72-245-134.cpe.teksavvy.com (HELO pastel.home) ([45.72.245.134]) by ironport2-out.teksavvy.com with ESMTP; 16 May 2016 07:53:29 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1043864397; Mon, 16 May 2016 07:53:28 -0400 (EDT) In-Reply-To: <20160516093356.E1686220155@vcs.savannah.gnu.org> (Phillip Lord's message of "Mon, 16 May 2016 09:33:56 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.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.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:203853 Archived-At: > + (if (eq new-state 'emacs-state) > + (setq undo-auto-disable-boundaries nil) > + (setq undo-auto-disable-boundaries t)) Aka (setq undo-auto-disable-boundaries (if (eq new-state 'emacs-state) nil t)) aka (setq undo-auto-disable-boundaries (not (eq new-state 'emacs-state))) -- Stefan