From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Johan =?utf-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Strange problem with emacs-lisp/copyright.el Date: Sat, 22 Apr 2017 15:21:00 +0200 Message-ID: <87fugz5bmo.fsf@gnu.org> References: <87o9w3ph9a.fsf@nautilus> <87mvbfvt63.fsf@metapensiero.it> <8760hxk5wc.fsf@metapensiero.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1492965126 22124 195.159.176.226 (23 Apr 2017 16:32:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Apr 2017 16:32:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Lele Gaifax Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 23 18:32:03 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 1d2KQc-0005eI-EI for ged-emacs-devel@m.gmane.org; Sun, 23 Apr 2017 18:32:02 +0200 Original-Received: from localhost ([::1]:39860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2KQi-00021g-9H for ged-emacs-devel@m.gmane.org; Sun, 23 Apr 2017 12:32:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2KQB-00021a-MH for emacs-devel@gnu.org; Sun, 23 Apr 2017 12:31:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2KQ8-000823-IX for emacs-devel@gnu.org; Sun, 23 Apr 2017 12:31:35 -0400 Original-Received: from manu26.manufrog.com ([98.142.98.2]:38776) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2KQ8-00081x-E3 for emacs-devel@gnu.org; Sun, 23 Apr 2017 12:31:32 -0400 Original-Received: from c-f000e555.04-211-6c6b701.cust.bredbandsbolaget.se ([85.229.0.240]:34606 helo=muon.localdomain) by manu26.manufrog.com with esmtpa (Exim 4.88) (envelope-from ) id 1d2KQ4-002AKM-Qd; Sun, 23 Apr 2017 18:31:28 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id AC5CE4841D3; Sun, 23 Apr 2017 18:31:27 +0200 (CEST) In-Reply-To: <8760hxk5wc.fsf@metapensiero.it> (Lele Gaifax's message of "Fri, 21 Apr 2017 19:49:23 +0200") Original-Lines: 20 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - manu26.manufrog.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gnu.org X-Get-Message-Sender-Via: manu26.manufrog.com: authenticated_id: noreply@tryserumgardar.se X-Authenticated-Sender: manu26.manufrog.com: noreply@tryserumgardar.se X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 98.142.98.2 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:214247 Archived-At: 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 ?