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: Sun, 27 Nov 2005 23:47:03 -0500 Message-ID: References: <43871059.9090705@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 1133153545 2488 80.91.229.2 (28 Nov 2005 04:52:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 04:52:25 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 05:52:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Egayk-0004NJ-8M for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 05:51:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egayj-0002kJ-Of for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2005 23:51:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Egauw-0000dv-Fr for emacs-devel@gnu.org; Sun, 27 Nov 2005 23:47:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Egauv-0000d9-7I for emacs-devel@gnu.org; Sun, 27 Nov 2005 23:47:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egauu-0000d1-Ty for emacs-devel@gnu.org; Sun, 27 Nov 2005 23:47:05 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Egauv-0003QL-2S for emacs-devel@gnu.org; Sun, 27 Nov 2005 23:47:05 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Egaut-0006Tb-Ir; Sun, 27 Nov 2005 23:47:03 -0500 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) 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:46689 Archived-At: > This seems plausible to me. In general, one must expect those > overlays to be relocated to garbage, so preserving them cannot work > reliably. > > Would you like to do that? I looked at the code, and it is not obvious to me where this should be done. It could be done in one of: revert-buffer, after-find-file, normal-mode. It should be done in revert-buffer, I think. after-find-file is not the right place, and normal-mode should NOT mess with overlays. BTW, I noticed that revert-buffer does not deactivate the mark. That seems like a bug, too. In any case, I realized that I _can_ fix this in cua-mode by making the local variable holding the overlays permanent-local. Perhaps that would be safer this close to the release. Ok.