From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18: Fine-grained revert-buffer Date: Tue, 17 Dec 2013 05:16:46 +0200 Message-ID: <878uvki2u9.fsf@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1387250294 8469 80.91.229.3 (17 Dec 2013 03:18:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2013 03:18:14 +0000 (UTC) Cc: 18@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 17 04:18:19 2013 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 1VslAp-0005LK-1T for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 04:18:19 +0100 Original-Received: from localhost ([::1]:59481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VslAo-0002uM-G1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Dec 2013 22:18:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VslAf-0002u6-CT for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2013 22:18:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VslAZ-0008Ug-5S for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2013 22:18:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VslAZ-0008UZ-1D for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2013 22:18:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VslAY-0007hg-Hp for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2013 22:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2013 03:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18-submit@debbugs.gnu.org id=B18.138725022229501 (code B ref 18); Tue, 17 Dec 2013 03:18:02 +0000 Original-Received: (at 18) by debbugs.gnu.org; 17 Dec 2013 03:17:02 +0000 Original-Received: from localhost ([127.0.0.1]:54790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vsl9W-0007fL-2V for submit@debbugs.gnu.org; Mon, 16 Dec 2013 22:17:01 -0500 Original-Received: from mail-ea0-f179.google.com ([209.85.215.179]:57245) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vsl9Q-0007f0-A3 for 18@debbugs.gnu.org; Mon, 16 Dec 2013 22:16:56 -0500 Original-Received: by mail-ea0-f179.google.com with SMTP id r15so2609257ead.10 for <18@debbugs.gnu.org>; Mon, 16 Dec 2013 19:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ohEV+sVyb0sWUWMTvDmZv/5neDt7FNTSXC/0Upf+AkE=; b=UdYFGOhCKdivPckT+yxaKXOXlfaNqRCQ3sn3nY1bmrxUqVRTvrbm0fKyhWdaNEQ8B4 KP4vW77LvVW6/z845uAdCoHIpPHXHrY61FGQZRLmoMQLRwL588+V/ZbmQQeB6RbLH6jE NBKn9uga1K37+EPqwkxPg2ANvCAW//s0b/KLBmTV7URwgbCqOFtqSVJho0Ir0wRR5i24 R27WWX7ZMCMPopko9SpqmsCPqcJTAVPwHLQQ4K8TUPUyJSUNwHf1NmH+SO6XPTbdTUTU fjK15eZiSWk25HZqKpWUwAFCzpUrq3T4fKbjLeRy3ZX/BvPg39yLeMThZDZcUU4i9Pt5 UNMw== X-Received: by 10.14.88.5 with SMTP id z5mr12078066eee.101.1387250211197; Mon, 16 Dec 2013 19:16:51 -0800 (PST) Original-Received: from axl ([83.168.26.131]) by mx.google.com with ESMTPSA id j46sm48977463eew.18.2013.12.16.19.16.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 16 Dec 2013 19:16:50 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Wed, 27 Feb 2008 15:44:48 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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:82113 Archived-At: The described functionality seems to be more or less available now. Stefan Monnier writes: > Write a revert-buffer that uses something like `diff' and then applies > the patch to the buffer, so as to better preserve markers and undo > info. `revert-buffer' now preserves undo history. > This would be used in places where a revert-buffer is needed but the > changes are expected to be small, e.g. in VC. `diff-hl' (in GNU ELPA) has command `diff-hl-revert-hunk' which reverts only the diff hunk around point.