[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs inotify support?
From: |
David Kastrup |
Subject: |
Re: Emacs inotify support? |
Date: |
Sun, 13 Sep 2009 11:33:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Miles Bader <address@hidden> writes:
> Richard Stallman <address@hidden> 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.
#!/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
- Re: Emacs inotify support?, (continued)
- Re: Emacs inotify support?, Antoine Levitt, 2009/09/12
- Re: Emacs inotify support?, Giuseppe Scrivano, 2009/09/12
- Re: Emacs inotify support?, Richard Stallman, 2009/09/13
- Re: Emacs inotify support?, joakim, 2009/09/13
- Re: Emacs inotify support?, Eli Zaretskii, 2009/09/13
- Re: Emacs inotify support?, Lennart Borgman, 2009/09/13
- Re: Emacs inotify support?, joakim, 2009/09/14
- Re: Emacs inotify support?, Eli Zaretskii, 2009/09/14
- Re: Emacs inotify support?, Richard Stallman, 2009/09/12
- Re: Emacs inotify support?, Miles Bader, 2009/09/12
- Re: Emacs inotify support?,
David Kastrup <=
Re: Emacs inotify support?, Richard Stallman, 2009/09/12
- Re: Emacs inotify support?, Paul R, 2009/09/14
- Re: Emacs inotify support?, Richard Stallman, 2009/09/15
- Re: Emacs inotify support?, Juri Linkov, 2009/09/17
- Re: Emacs inotify support?, Richard Stallman, 2009/09/18
- Re: Emacs inotify support?, David Kastrup, 2009/09/18
- Re: Emacs inotify support?, Stefan Monnier, 2009/09/18
- Re: Emacs inotify support?, joakim, 2009/09/18
Dired auto-revert (was: Emacs inotify support?), Juri Linkov, 2009/09/21
RE: Dired auto-revert (was: Emacs inotify support?), Drew Adams, 2009/09/21