From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Emacs inotify support? Date: Sun, 13 Sep 2009 11:33:53 +0200 Organization: Organization?!? Message-ID: <871vmb89z2.fsf@lola.goethe.zz> References: <6fa54e4e0909111554g4165418albbdffc142b3b52ee@mail.gmail.com> <87y6ojr341.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1252834494 19999 80.91.229.12 (13 Sep 2009 09:34:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2009 09:34:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 13 11:34:47 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MmlTr-0001hS-5B for ged-emacs-devel@m.gmane.org; Sun, 13 Sep 2009 11:34:47 +0200 Original-Received: from localhost ([127.0.0.1]:47770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmlTq-0001rZ-Cx for ged-emacs-devel@m.gmane.org; Sun, 13 Sep 2009 05:34:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmlTh-0001qZ-I4 for emacs-devel@gnu.org; Sun, 13 Sep 2009 05:34:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmlTc-0001mJ-4f for emacs-devel@gnu.org; Sun, 13 Sep 2009 05:34:36 -0400 Original-Received: from [199.232.76.173] (port=47060 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmlTc-0001m7-02 for emacs-devel@gnu.org; Sun, 13 Sep 2009 05:34:32 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52517) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MmlTb-0000vo-J7 for emacs-devel@gnu.org; Sun, 13 Sep 2009 05:34:31 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MmlTV-0001dm-9C for emacs-devel@gnu.org; Sun, 13 Sep 2009 11:34:25 +0200 Original-Received: from p5b2c3a37.dip.t-dialin.net ([91.44.58.55]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Sep 2009 11:34:25 +0200 Original-Received: from dak by p5b2c3a37.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Sep 2009 11:34:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b2c3a37.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:w7DIPEk6J42rHuG5L0BLH/mQj5Q= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115266 Archived-At: --=-=-= Miles Bader writes: > Richard Stallman writes: >> Ideal case : emacs would monitor every file >> used by buffers, and notify of changes with the current dialog (continue, >> refresh, etc) in visible buffers. >> >> To have the capability to watch a file for changes would be useful. >> To do this by default for all visited files could be more of a pain in >> the neck than a convenience. > > I was thinking such a feature could be used simply to optimize > `auto-revert-mode' and `global-auto-revert-mode'. > > Whether it's worth it, I don't know. Is the cost of the current > implementation of global-auto-revert-mode high enough to be a problem, > or the granularity too coarse? > > [I guess it's actually quite system-dependent] I use the following "executable" for paging output for applications called from within Emacs, and it _is_ jerkier than really desirable. --=-=-= Content-Type: text/x-sh Content-Disposition: inline; filename=emacs-pager #!/bin/sh TMP=`mktemp -t emacs-pager.XXXXXX` trap "rm $TMP* 2>/dev/null" 0 echo '-*- mode: view; auto-revert-interval: 1; mode: auto-revert-tail; view-exit-action: kill-buffer -*-' >"$TMP" exec 5<&0 <&- cat "$@" <&5 >>"$TMP" & eval "${VISUAL:-${EDITOR}}" '"$TMP"' --=-=-= -- David Kastrup --=-=-=--