all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* tramp and auto-revert-tail-mode
@ 2006-08-21 22:32 Dieter Wilhelm
  0 siblings, 0 replies; 6+ messages in thread
From: Dieter Wilhelm @ 2006-08-21 22:32 UTC (permalink / raw)


Hi

I wanted to use auto-revert-tail-mode in a buffer which I opened with
tramp because of read restrictions (/su::/var/log/mail I think).  But
this modes doesn't work as expected, is this a known bug or
complication?

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tramp and auto-revert-tail-mode
       [not found] <mailman.5426.1156227355.9609.help-gnu-emacs@gnu.org>
@ 2006-08-22  8:46 ` Michael Albinus
  2006-08-22 21:55   ` Dieter Wilhelm
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2006-08-22  8:46 UTC (permalink / raw)
  Cc: help-gnu-emacs

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

> Hi

Hi,

> I wanted to use auto-revert-tail-mode in a buffer which I opened with
> tramp because of read restrictions (/su::/var/log/mail I think).  But
> this modes doesn't work as expected, is this a known bug or
> complication?

>From autorevert.el:

;; Auto-Revert Mode can be activated for individual buffers.  Global
;; Auto-Revert Mode applies to all file buffers. (If the user option
;; `global-auto-revert-non-file-buffers' is non-nil, it also applies
;; to some non-file buffers.  This option is disabled by default.)
;; Since checking a remote file is too slow, these modes do not check
;; or revert remote files.

See also `auto-revert-handler':

    (let* ((buffer (current-buffer))
	   (revert
	    (or (and buffer-file-name
		     (not (file-remote-p buffer-file-name))
		     ...

Best regards, Michael.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tramp and auto-revert-tail-mode
  2006-08-22  8:46 ` tramp and auto-revert-tail-mode Michael Albinus
@ 2006-08-22 21:55   ` Dieter Wilhelm
  2006-08-23  7:23     ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Dieter Wilhelm @ 2006-08-22 21:55 UTC (permalink / raw)
  Cc: help-gnu-emacs

Michael Albinus <michael.albinus@gmx.de> writes:

> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:
>
>> Hi
>
> Hi,
>
>> I wanted to use auto-revert-tail-mode in a buffer which I opened with
>> tramp because of read restrictions (/su::/var/log/mail I think).  But
>> this modes doesn't work as expected, is this a known bug or
>> complication?
>
>>From autorevert.el:
>
> ;; Auto-Revert Mode can be activated for individual buffers.  Global
> ;; Auto-Revert Mode applies to all file buffers. (If the user option
> ;; `global-auto-revert-non-file-buffers' is non-nil, it also applies
> ;; to some non-file buffers.  This option is disabled by default.)
> ;; Since checking a remote file is too slow, these modes do not check
> ;; or revert remote files.
>
> See also `auto-revert-handler':
>
>     (let* ((buffer (current-buffer))
> 	   (revert
> 	    (or (and buffer-file-name
> 		     (not (file-remote-p buffer-file-name))
> 		     ...
>

Thank you for the pointer: It seems to me that file-remote-p is not
thoroughly enough for above cases when the file is indeed locally
opened?

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tramp and auto-revert-tail-mode
  2006-08-22 21:55   ` Dieter Wilhelm
@ 2006-08-23  7:23     ` Michael Albinus
  2006-08-23 23:52       ` Dieter Wilhelm
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2006-08-23  7:23 UTC (permalink / raw)
  Cc: help-gnu-emacs

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

> Thank you for the pointer: It seems to me that file-remote-p is not
> thoroughly enough for above cases when the file is indeed locally
> opened?

No, it is sufficient. People might find access via su(do)? methods
slow as well.

Maybe a customer option `auto-revert-remote-files' would be helpful,
set to nil by default. Then a user can decide whether to revert remote
files, too.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tramp and auto-revert-tail-mode
  2006-08-23  7:23     ` Michael Albinus
@ 2006-08-23 23:52       ` Dieter Wilhelm
  2006-08-24  7:06         ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Dieter Wilhelm @ 2006-08-23 23:52 UTC (permalink / raw)
  Cc: help-gnu-emacs

Michael Albinus <michael.albinus@gmx.de> writes:

> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:
>
>> Thank you for the pointer: It seems to me that file-remote-p is not
>> thoroughly enough for above cases when the file is indeed locally
>> opened?
>
> No, it is sufficient. People might find access via su(do)? methods
> slow as well.


Hmmm, I realised that with tramp there are temporary files involved,
so yes not in my case but in general it might be slow, I trust your
judgment.

>
> Maybe a customer option `auto-revert-remote-files' would be helpful,
> set to nil by default. Then a user can decide whether to revert remote
> files, too.
>

Yes, this would be helpful.  Should we start a feature request?  How
is this commonly done?

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tramp and auto-revert-tail-mode
  2006-08-23 23:52       ` Dieter Wilhelm
@ 2006-08-24  7:06         ` Michael Albinus
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Albinus @ 2006-08-24  7:06 UTC (permalink / raw)
  Cc: help-gnu-emacs

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

>> Maybe a customer option `auto-revert-remote-files' would be helpful,
>> set to nil by default. Then a user can decide whether to revert remote
>> files, too.
>
> Yes, this would be helpful.  Should we start a feature request?  How
> is this commonly done?

Usually a mail to <emacs-devel@gnu.org>. But the public pretest of
Emacs 22 will start soon, so it might be a bad timing for a feature
request.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-24  7:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5426.1156227355.9609.help-gnu-emacs@gnu.org>
2006-08-22  8:46 ` tramp and auto-revert-tail-mode Michael Albinus
2006-08-22 21:55   ` Dieter Wilhelm
2006-08-23  7:23     ` Michael Albinus
2006-08-23 23:52       ` Dieter Wilhelm
2006-08-24  7:06         ` Michael Albinus
2006-08-21 22:32 Dieter Wilhelm

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.