From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lele Gaifax Newsgroups: gmane.emacs.devel Subject: Re: Strange problem with emacs-lisp/copyright.el Date: Fri, 05 May 2017 11:36:50 +0200 Organization: Nautilus Entertainments Message-ID: <8737cj63wt.fsf@metapensiero.it> References: <87o9w3ph9a.fsf@nautilus> <87mvbfvt63.fsf@metapensiero.it> <8760hxk5wc.fsf@metapensiero.it> <87fugz5bmo.fsf@gnu.org> <874lxezvnv.fsf@metapensiero.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1493977064 5600 195.159.176.226 (5 May 2017 09:37:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 May 2017 09:37:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 05 11:37:39 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6ZgA-0001Kk-JF for ged-emacs-devel@m.gmane.org; Fri, 05 May 2017 11:37:38 +0200 Original-Received: from localhost ([::1]:45930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6ZgD-0006Ht-5v for ged-emacs-devel@m.gmane.org; Fri, 05 May 2017 05:37:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6Zfe-0006Hf-56 for emacs-devel@gnu.org; Fri, 05 May 2017 05:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6Zfa-000270-8C for emacs-devel@gnu.org; Fri, 05 May 2017 05:37:06 -0400 Original-Received: from [195.159.176.226] (port=54084 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6Zfa-00026e-1E for emacs-devel@gnu.org; Fri, 05 May 2017 05:37:02 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d6ZfO-0000cz-C7 for emacs-devel@gnu.org; Fri, 05 May 2017 11:36:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:nV7h9LdWahX5Ex9YhlpWRBjgFjo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214578 Archived-At: Lele Gaifax writes: > Johan Bockgård writes: > >> Lele Gaifax writes: >> >>> It just saves and restore the point position found by `copyright-find-end': I >>> tried to understand why the `save-excursion' isn't enough, but failed. >> >> Does it work correctly if you change >> >> (switch-to-buffer (current-buffer)) >> ;; Fixes some point-moving oddness (bug#2209). >> (save-excursion >> (y-or-n-p (if replace >> >> to >> >> (save-excursion >> (switch-to-buffer (current-buffer)) >> (y-or-n-p (if replace >> >> ? > > I will try that and report back. As said, unfortunately I was not able to > reproduce the issue in a deterministic way. As said, I installed your proposed fix and it seems to be effective: neither my explicit attempts to reproduce the issue, nor my normal workflow did exhibit the problem in the last two weeks. Thank you again, ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.