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: Sun, 23 Apr 2017 23:00:36 +0200 Organization: Nautilus Entertainments Message-ID: <874lxezvnv.fsf@metapensiero.it> References: <87o9w3ph9a.fsf@nautilus> <87mvbfvt63.fsf@metapensiero.it> <8760hxk5wc.fsf@metapensiero.it> <87fugz5bmo.fsf@gnu.org> 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 1492981286 15671 195.159.176.226 (23 Apr 2017 21:01:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Apr 2017 21:01:26 +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 Sun Apr 23 23:01:22 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 1d2OdE-0003um-Mi for ged-emacs-devel@m.gmane.org; Sun, 23 Apr 2017 23:01:20 +0200 Original-Received: from localhost ([::1]:40593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2OdK-0000Z2-HG for ged-emacs-devel@m.gmane.org; Sun, 23 Apr 2017 17:01:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2Ock-0000Yw-SP for emacs-devel@gnu.org; Sun, 23 Apr 2017 17:00:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2Ocg-0000PX-Bh for emacs-devel@gnu.org; Sun, 23 Apr 2017 17:00:50 -0400 Original-Received: from [195.159.176.226] (port=41612 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2Ocg-0000PO-4j for emacs-devel@gnu.org; Sun, 23 Apr 2017 17:00:46 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d2OcW-0002wh-Mj for emacs-devel@gnu.org; Sun, 23 Apr 2017 23:00:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:f2Uqp915Gh0oQnVjanwmNF9gHHg= 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:214254 Archived-At: 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. Thank you, 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.