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:17:48 +0200 Message-ID: <83y51dbltf.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392401893 17702 80.91.229.3 (14 Feb 2014 18:18:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 18:18:13 +0000 (UTC) Cc: 16752@debbugs.gnu.org, eller.helmut@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 14 19:18:18 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 1WENL5-0004bl-N7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Feb 2014 19:18:15 +0100 Original-Received: from localhost ([::1]:53269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENL5-0000AS-2X for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Feb 2014 13:18:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENKx-00009d-OP for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:18:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WENKs-0002yd-EO for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:18:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENKs-0002yY-As for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WENKs-0005dG-3n for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:18: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:18: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.139240187821638 (code B ref 16752); Fri, 14 Feb 2014 18:18:02 +0000 Original-Received: (at 16752) by debbugs.gnu.org; 14 Feb 2014 18:17:58 +0000 Original-Received: from localhost ([127.0.0.1]:52605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WENKo-0005cv-27 for submit@debbugs.gnu.org; Fri, 14 Feb 2014 13:17:58 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:54930) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WENKm-0005ch-M0 for 16752@debbugs.gnu.org; Fri, 14 Feb 2014 13:17:57 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N0Z00500ZC9CO00@a-mtaout20.012.net.il> for 16752@debbugs.gnu.org; Fri, 14 Feb 2014 20:17:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N100047D05QUVA0@a-mtaout20.012.net.il>; Fri, 14 Feb 2014 20:17:50 +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:85588 Archived-At: > 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.