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: Strange problem with emacs-lisp/copyright.el Date: Tue, 11 Apr 2017 08:53:21 +0200 Organization: Nautilus Entertainments Message-ID: <87o9w3ph9a.fsf@nautilus> 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 1491893639 24053 195.159.176.226 (11 Apr 2017 06:53:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Apr 2017 06:53:59 +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 Tue Apr 11 08:53:52 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 1cxpgV-00068J-QC for ged-emacs-devel@m.gmane.org; Tue, 11 Apr 2017 08:53:51 +0200 Original-Received: from localhost ([::1]:37485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxpgb-0007r9-Qr for ged-emacs-devel@m.gmane.org; Tue, 11 Apr 2017 02:53:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxpgV-0007r0-GZ for emacs-devel@gnu.org; Tue, 11 Apr 2017 02:53:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxpgQ-0000DR-MU for emacs-devel@gnu.org; Tue, 11 Apr 2017 02:53:51 -0400 Original-Received: from [195.159.176.226] (port=51278 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxpgQ-0000DH-FU for emacs-devel@gnu.org; Tue, 11 Apr 2017 02:53:46 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cxpgI-0005wR-HX for emacs-devel@gnu.org; Tue, 11 Apr 2017 08:53:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:bR0HB+7mZ6ViaVUXEADee0jMg14= 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:213844 Archived-At: Hi all, since a couple of week I switched my main development environment to Emacs master, and I'm quite happy. The only problem I had is one strange defect I'm hitting that, despite all my efforts to reproduce it, I'm still unable to understand the nature. It seems very similar to bug#2209, now archived. In my setup I've configured (add-hook 'before-save-hook #'copyright-update) to automatically update the copyright years range in files header. Accordingly to the VC tool, I installed that setup more than one year ago and never noticed any problem, with Emacs 25. With the new Emacs, when I save multiple files that wasn't yet touched in the current year, *sometime* and *some files* the new year is added in the wrong location, that is the new year (that is, the string ", 2017") gets added somewhere in the file, not where it should go: most of the times at the beginning of a line, sometime in the middle, in any case apparently at the `point' location, where the cursor was at save time. As said, I've tried several times to understand what's going on, either with edebug-ing the `copyright-update-year' function or decorating it with a few `message' calls to emit the updated location and such, but it seems some sort of eisenbug... I even reverted my source tree to the exact state before this happened, and applied the very same set of mechanical replacements (I was fixing a single typo and I used wgrep to spot and correct all instances), with no luck. Do this ring any bell, or can some one hints me on a better/more effective way to investigate the issue, before opening a new bug report? Thanks in advance, 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.