From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Problem with revert-buffer and overlays Date: Tue, 29 Nov 2005 16:47:16 -0500 Message-ID: References: <43871059.9090705@gmx.at> <438AD957.4010005@gmx.at> <438C1C42.8020709@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1133301320 32013 80.91.229.2 (29 Nov 2005 21:55:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 21:55:20 +0000 (UTC) Cc: emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 22:55:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhDPA-0005mM-3I for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 22:52:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhDP8-00046f-Ij for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 16:52:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EhDKi-0002CZ-Lc for emacs-devel@gnu.org; Tue, 29 Nov 2005 16:48:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EhDKh-0002Br-C4 for emacs-devel@gnu.org; Tue, 29 Nov 2005 16:48:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhDKh-0002Bk-2u for emacs-devel@gnu.org; Tue, 29 Nov 2005 16:48:15 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EhDKg-0004IH-S1 for emacs-devel@gnu.org; Tue, 29 Nov 2005 16:48:14 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EhDJk-0007NH-Op; Tue, 29 Nov 2005 16:47:21 -0500 Original-To: martin rudalics In-reply-to: <438C1C42.8020709@gmx.at> (message from martin rudalics on Tue, 29 Nov 2005 10:15:46 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46777 Archived-At: Might be I don't understand this correctly but to get rid of an overlay you have to find it in the first place. The original problem was that kill-all-local-variables killed the reference to the overlay and CUA's post-command hook wasn't able to find it any more. That is easy to fix with a change-major-mode-hook. The revert-buffer problem is something completely different. > I just tried it and revert-buffer did deactivate the mark. > Can someone describe a test case where it fails to do so? With text-mode it doesn't. Please provide a precise test case. It is not obvious.