From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#16752: 24.3.50; pp-to-string deactivates mark Date: Fri, 14 Feb 2014 19:27:30 +0100 Message-ID: References: <83y51dbltf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392402552 25973 80.91.229.3 (14 Feb 2014 18:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 18:29:12 +0000 (UTC) To: 16752@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 14 19:29: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 1WENVl-0006sv-Ls for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Feb 2014 19:29:17 +0100 Original-Received: from localhost ([::1]:53295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENVl-0004Rw-3K for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Feb 2014 13:29:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENVd-0004RV-AJ for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:29:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WENVX-0006Ji-No for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:29:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENVX-0006Je-Kl for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:29:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WENVW-0005z2-IL for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:29:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Feb 2014 18:29: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139240249322910 (code B ref -1); Fri, 14 Feb 2014 18:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Feb 2014 18:28:13 +0000 Original-Received: from localhost ([127.0.0.1]:52621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WENUh-0005xP-2z for submit@debbugs.gnu.org; Fri, 14 Feb 2014 13:28:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46463) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WENUb-0005wq-F6 for submit@debbugs.gnu.org; Fri, 14 Feb 2014 13:28:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WENUQ-00066s-VB for submit@debbugs.gnu.org; Fri, 14 Feb 2014 13:28:00 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENUQ-00066o-Rx for submit@debbugs.gnu.org; Fri, 14 Feb 2014 13:27:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENUL-0004HF-N9 for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:27:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WENUG-00064z-8b for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:27:49 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:37154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WENUG-00064e-2S for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 13:27:44 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WENUD-0005KR-Sy for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 19:27:41 +0100 Original-Received: from 212.46.176.45 ([212.46.176.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Feb 2014 19:27:41 +0100 Original-Received: from eller.helmut by 212.46.176.45 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Feb 2014 19:27:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 212.46.176.45 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:R5S58tpSuWkpIwHlExJxIqCcIEI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:85592 Archived-At: 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. BTW, with-temp-buffer should disable undo by default. Helmut