From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#27968: 26.0.50; dired-revert: Saved positions might change if a dired header changes Date: Sun, 06 Aug 2017 13:15:28 +0900 Message-ID: <87mv7dmivz.fsf@calancha-pc> References: <87bmnu6udt.fsf@calancha-pc> <83h8xmupe8.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501992980 20161 195.159.176.226 (6 Aug 2017 04:16:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2017 04:16:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 27968-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 06 06:16:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1deCz4-0004WS-RX for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 06:16:10 +0200 Original-Received: from localhost ([::1]:59681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deCz7-0007au-S6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 00:16:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deCyz-0007a0-Jd for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 00:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deCyw-0006qR-EI for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 00:16:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1deCyw-0006q3-9U for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 00:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1deCyw-00082s-3o for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2017 00:16:02 -0400 Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Aug 2017 04:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 27968 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 27968@debbugs.gnu.org, tino.calancha@gmail.com, tino.calancha@gmail.com Original-Received: via spool by 27968-done@debbugs.gnu.org id=D27968.150199294230894 (code D ref 27968); Sun, 06 Aug 2017 04:16:01 +0000 Original-Received: (at 27968-done) by debbugs.gnu.org; 6 Aug 2017 04:15:42 +0000 Original-Received: from localhost ([127.0.0.1]:43981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deCyc-00082E-Eb for submit@debbugs.gnu.org; Sun, 06 Aug 2017 00:15:42 -0400 Original-Received: from mail-pg0-f51.google.com ([74.125.83.51]:37274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deCya-000820-72 for 27968-done@debbugs.gnu.org; Sun, 06 Aug 2017 00:15:40 -0400 Original-Received: by mail-pg0-f51.google.com with SMTP id y129so21912414pgy.4 for <27968-done@debbugs.gnu.org>; Sat, 05 Aug 2017 21:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=820PD8urs/f5Oj9djVAzEt2PbLI2gjIGxeF8NbLvKAs=; b=llR+5rfAKVTsKrEfgTPWD8Iv+ybEKtpqo5zYquhDuHEyjqfZOMFLaz0znAhid+XEyB KkHBgum2py0JPfa1WOFNgXDcAEZR3sSTC+0tnmxs6wTn4/cUGvxySSgxVG1ajzVDjrAW uiDpiDGrbnPXGoW2sA4G43LyVSh/U4cfrBzuAMIUgsAz2i2D4CWgvDBKH0ZUQFXFrLly fdicFSPShg6Yo5u5KQm9UpXOGSf7Cez0NwUqrxMvAQR/AJ0RghKTsVJbTeqxPoNs30w5 LK7NqCRvvcfS8N0aQhQsJ5yFJZOfLQzKqWlsXHgbQyV742kXGCK1LNexxAok+iOjKxAR T8tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=820PD8urs/f5Oj9djVAzEt2PbLI2gjIGxeF8NbLvKAs=; b=Pu8tj0FQpzR0/qBUd9eCi5zI9TktVfEN4XptFVElKa+4vYzwJn/0Hx/3TWg+z0fmLv 0BiOAqCH9qBc2l381rkEwRSzLie3LnuXRcuoTcCbPuT+XSygZ70AWNJrjwChwFZaCDzC A5n1XlUorfwbnywjJOGia94XPa5md/k8YFGSZIoyMF99hu9GaCpvMVaFcTxjj5nkh7Ke U8KgksqlrjQEElAjvQUmfdD6p+n66VzsTpIDDtfrXCzkeGBhr6TQ1xV7zvCX2RCl2ZKy wyOufuEdVR/pEjfXTKbx65C9NF2Yr0XD8sRyD8qBpD5yNe3eXrtnBmc5eWntg/yQZgVh 73dA== X-Gm-Message-State: AIVw110j7ov0fgE2OT9OCZStUfRi1HY2OCA/qn0xwGV8fz4OcgYhzIWm uD7F+8CFcSnCS8Bq X-Received: by 10.99.126.86 with SMTP id o22mr7258024pgn.385.1501992934086; Sat, 05 Aug 2017 21:15:34 -0700 (PDT) Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id d135sm10492124pga.6.2017.08.05.21.15.32 for <27968-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Aug 2017 21:15:33 -0700 (PDT) In-Reply-To: (Tino Calancha's message of "Sun, 6 Aug 2017 00:45:02 +0900 (JST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:135471 Archived-At: Tino Calancha writes: > On Sat, 5 Aug 2017, Eli Zaretskii wrote: > >>> One possible solution is the patch below. It saves line numbers >>> instead of positions. Line numbers won't change if a dired header >>> changes its length. >> >> Won't using markers be a better solution? > Yes, but `dired-revert' erases the buffer when calls > `dired-readin', so that the markers will be gone, *) I really want to have buildboot clean again (http://emacs.bioswarm.net:8010/#/), in order to this tool be effective to catch new problems. *) so i pushed a fix in master branch as commit 7c3593f81724d0c7a2ee2f90797db0e705adc859 (dired-revert: save line numbers instead of positions)