From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#19161: 24.4; vc-mode reload on commit - don't jump to start of buffer Date: Wed, 26 Nov 2014 22:28:47 -0500 Message-ID: References: <7E039918541B4C4183BFDB8F015C74302E421EED@WCL-EXCH02.wcl.local> <7E039918541B4C4183BFDB8F015C74302E422493@WCL-EXCH02.wcl.local> <7E039918541B4C4183BFDB8F015C74302E422FA7@WCL-EXCH02.wcl.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417058970 1976 80.91.229.3 (27 Nov 2014 03:29:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2014 03:29:30 +0000 (UTC) Cc: "'19161@debbugs.gnu.org'" <19161@debbugs.gnu.org> To: Ed Avis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 27 04:29:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xtplh-00005V-OD for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Nov 2014 04:29:21 +0100 Original-Received: from localhost ([::1]:36880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtplh-0001zE-1T for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 22:29:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtplW-0001yp-G5 for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:29:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtplP-00023o-0k for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:29:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtplO-00023h-T8 for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XtplO-0006Wi-Dd for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Nov 2014 03:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 19161-submit@debbugs.gnu.org id=B19161.141705893225066 (code B ref 19161); Thu, 27 Nov 2014 03:29:02 +0000 Original-Received: (at 19161) by debbugs.gnu.org; 27 Nov 2014 03:28:52 +0000 Original-Received: from localhost ([127.0.0.1]:46803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtplD-0006WE-NY for submit@debbugs.gnu.org; Wed, 26 Nov 2014 22:28:51 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:1849) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtplB-0006W4-70 for 19161@debbugs.gnu.org; Wed, 26 Nov 2014 22:28:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsUIAGA2ZVRFpaJS/2dsb2JhbABbgw6KYssMBAICgRwXAQEBAQEBfIQDAQEDAVYjBQsLNBIUGA0kiEsJ0QQBAQEBAQUBAQEBAR2RFAeESwWMC5NakSmCFIF2ggAggXofgnsBAQE X-IPAS-Result: AsUIAGA2ZVRFpaJS/2dsb2JhbABbgw6KYssMBAICgRwXAQEBAQEBfIQDAQEDAVYjBQsLNBIUGA0kiEsJ0QQBAQEBAQUBAQEBAR2RFAeESwWMC5NakSmCFIF2ggAggXofgnsBAQE X-IronPort-AV: E=Sophos;i="5.07,380,1413259200"; d="scan'208";a="98410034" Original-Received: from 69-165-162-82.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.162.82]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 26 Nov 2014 22:28:47 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 61309AE1FE; Wed, 26 Nov 2014 22:28:47 -0500 (EST) In-Reply-To: <7E039918541B4C4183BFDB8F015C74302E422FA7@WCL-EXCH02.wcl.local> (Ed Avis's message of "Tue, 25 Nov 2014 15:09:16 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96658 Archived-At: > It does appear to be moving point to the Id: dropping after commit. > I just saw this behaviour again - let me have another go at making > a recipe from emacs -Q. I think it's probably expected behavior: When a file is reverted, the file is compared to the buffer and only the part between the first and the last changed bytes is replaced. So, in your case, the "first changed byte" is at the "$Id" thingy, and if the last changed byte is somewhere further down in the middle of the file (or worse, near the end), then any marker (including "the point", and window-points) will be moved to either right before or right after the replaced text. We could do better, by doing an actual "diff" and then applying the patch, but someone would have to write it. Stefan