From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Occur stack Date: Sat, 18 Jan 2014 09:04:50 -0800 Organization: Programmerer Ingebrigtsen Message-ID: <87eh45jk5p.fsf@building.gnus.org> References: <52D6D907.4030702@online.de> <52D8E8CB.5080600@online.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390064744 24248 80.91.229.3 (18 Jan 2014 17:05:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jan 2014 17:05:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 18 18:05:52 2014 Return-path: Envelope-to: ged-emacs-devel@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 1W4ZLC-0001wt-JI for ged-emacs-devel@m.gmane.org; Sat, 18 Jan 2014 18:05:50 +0100 Original-Received: from localhost ([::1]:43730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ZLC-00046z-5H for ged-emacs-devel@m.gmane.org; Sat, 18 Jan 2014 12:05:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ZL3-00046q-Hu for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:05:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4ZKx-0007AQ-9d for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:05:41 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:38232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ZKx-0007AM-2f for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:05:35 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W4ZKt-0001jA-3j for emacs-devel@gnu.org; Sat, 18 Jan 2014 18:05:31 +0100 Original-Received: from 204.14.154.233 ([204.14.154.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jan 2014 18:05:31 +0100 Original-Received: from larsi by 204.14.154.233 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jan 2014 18:05:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 204.14.154.233 Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:ui8p4oqxVd0HAgieNv5UQdKPZ5w= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168696 Archived-At: Tom writes: > Here's an other experimental code which does it the other way: > it does not store buffer contents, it reruns the command > instead. Storing the command, too, is also nice, because then we can re-run the command with the `g' command. However, re-running an external command will not, in general, give us the same buffer we had before. Things change, and re-running (say) grep half an hour later might very well give us a different buffer than what we expected (because files have changed, etc). Having a history that presents us with ever-changing output doesn't seem optimal. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/