From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16752: 24.3.50; pp-to-string deactivates mark Date: Fri, 14 Feb 2014 20:38:45 +0200 Message-ID: <83r475bkui.fsf@gnu.org> References: <83y51dbltf.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392403152 32547 80.91.229.3 (14 Feb 2014 18:39:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 18:39:12 +0000 (UTC) Cc: 16752@debbugs.gnu.org To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 14 19:39:19 2014 Return-path: Envelope-to: geb-bug-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 1WENfQ-00087F-Ak for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Feb 2014 19:39:16 +0100 Original-Received: from localhost ([::1]:53323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENfP-0007RG-Up for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Feb 2014 13:39:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENfI-0007R0-Bu for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:39:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WENfD-0001Dg-44 for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:39:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENfD-0001Dc-1F for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:39:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WENfC-0006JL-I6 for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Feb 2014 18:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16752 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16752-submit@debbugs.gnu.org id=B16752.139240313724247 (code B ref 16752); Fri, 14 Feb 2014 18:39:02 +0000 Original-Received: (at 16752) by debbugs.gnu.org; 14 Feb 2014 18:38:57 +0000 Original-Received: from localhost ([127.0.0.1]:52637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WENf6-0006Iy-52 for submit@debbugs.gnu.org; Fri, 14 Feb 2014 13:38:56 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:47686) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WENf4-0006Ij-8V for 16752@debbugs.gnu.org; Fri, 14 Feb 2014 13:38:55 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N10007000XFN400@mtaout24.012.net.il> for 16752@debbugs.gnu.org; Fri, 14 Feb 2014 20:37:45 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N10003XA12W3Z50@mtaout24.012.net.il>; Fri, 14 Feb 2014 20:37:45 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85593 Archived-At: > From: Helmut Eller > Date: Fri, 14 Feb 2014 19:27:30 +0100 > > On Fri, Feb 14 2014, Eli Zaretskii wrote: > > >> From: Stefan Monnier > >> Date: Fri, 14 Feb 2014 12:42:25 -0500 > >> Cc: 16752@debbugs.gnu.org > >> > >> 1- let-bind deactivate-mark in functions like pp-to-string so as to > >> eliminate those spurious deactivations. But there can be many of > >> them, and it doesn't solve the problem where the buffer-modification > >> is done in a non-temporary buffer. > >> 2- make deactivate-mark buffer-local. This is "The Right Way" but > >> might introduce new problems. > >> E.g. we really should deactivate the mark in all the buffers that > >> have their deactivate-mark set. > > > > 3- Save and restore deactivate-mark inside with-temp-buffer, which > > will probably solve 99.99% of these unexpected side effects. > > 4- Introduce something like buffer-disable-undo that disables this > automatic deactivate-mark updating. I thought about such a possibility as well, but it sounds less attractive, because it places the burden on users and Lisp programs.