all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#779: Tramp saves old locations, tries to re-open them on launch
@ 2008-08-25 22:54 Charles Curley
  0 siblings, 0 replies; 8+ messages in thread
From: Charles Curley @ 2008-08-25 22:54 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 4518 bytes --]

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I open one or more files via tramp on a remote machine. I then close
down Emacs. I do not save remote files in the desktop.

On re-lanching Emacs, it logs into the machines via tramp. This is a
waste of time if none of the files are in the desktop. Worse, if
somehow tramp tries to log in to a user:machine where I don't have the
password, Emacs ceases to process .emacs. Similarly if it tries to log
into an account on a machine which is shut down or otherwise
unavailable.

If there is a variable "tramp.*" that controls this behavior, I don't
see it.

Thank you.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/22.1/etc/DEBUG for instructions.

No crash.

In GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-05-03 on terranova, modified by Ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
configured using `configure  '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  recentf-mode: t
  shell-dirtrack-mode: t
  partial-completion-mode: t
  display-time-mode: t
  show-paren-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  abbrev-mode: t

Recent input:
<return> C-g <down> C-x C-g <help-echo> <menu-bar> 
<buffer> "*tramp/ssh dzur*" <help-echo> <help-echo> 
<menu-bar> <buffer> "*tramp/ssh dragon*" <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> C-x k <return> C-x k <return> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <menu-bar> <help-menu> <emacs-problems> 
C-s t r a m C-x k <return> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<report-emacs-bug>

Recent messages:
tramp: Waiting 60s for prompt from remote shell
tramp: Sending password [2 times]
Quit
Note: file is write protected
Loading outline...
Loading easy-mmode...done
Loading outline...done
View mode: type C-h for help, h for commands, q to quit.
Mark saved where search started
Loading emacsbug...done


-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* bug#779: Tramp saves old locations, tries to re-open them on launch
       [not found] <mailman.17555.1219729994.18990.bug-gnu-emacs@gnu.org>
@ 2008-08-26  8:51 ` Michael Albinus
  2008-08-26 17:07   ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2008-08-26  8:51 UTC (permalink / raw)
  To: Charles Curley; +Cc: 779

Charles Curley <charlescurley@charlescurley.com> writes:

> I open one or more files via tramp on a remote machine. I then close
> down Emacs. I do not save remote files in the desktop.
>
> On re-lanching Emacs, it logs into the machines via tramp. This is a
> waste of time if none of the files are in the desktop. Worse, if
> somehow tramp tries to log in to a user:machine where I don't have the
> password, Emacs ceases to process .emacs. Similarly if it tries to log
> into an account on a machine which is shut down or otherwise
> unavailable.

Tramp does not reconnect to files on its own. You can check this if
you call "emacs -Q".

Likely you have enabled recentf or another package like this. Could
you, please, check it in your .emacs?

> Thank you.

Best regards, Michael.







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

* bug#779: Tramp saves old locations, tries to re-open them on launch
  2008-08-26  8:51 ` bug#779: Tramp saves old locations, tries to re-open them on launch Michael Albinus
@ 2008-08-26 17:07   ` Glenn Morris
  2008-08-26 18:04     ` Michael Albinus
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2008-08-26 17:07 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 779

Michael Albinus wrote:

> Likely you have enabled recentf or another package like this. Could
> you, please, check it in your .emacs?

It's the first entry in "Minor modes in effect:" in the original report.

There seems to be a fix for this in the trunk recentf-keep:

    Remote files are checked for readability only in case a connection
    is established to that remote system, otherwise they are kept in
    the recent list without checking their readability.






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

* bug#779: Tramp saves old locations, tries to re-open them on launch
  2008-08-26 17:07   ` Glenn Morris
@ 2008-08-26 18:04     ` Michael Albinus
  2008-08-26 18:06       ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2008-08-26 18:04 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 779

Glenn Morris <rgm@gnu.org> writes:

> Michael Albinus wrote:
>
>> Likely you have enabled recentf or another package like this. Could
>> you, please, check it in your .emacs?
>
> It's the first entry in "Minor modes in effect:" in the original
> report.

Yep. Charles did already confirm by a PM, that the problem was caused by this.

> There seems to be a fix for this in the trunk recentf-keep:
>
>     Remote files are checked for readability only in case a connection
>     is established to that remote system, otherwise they are kept in
>     the recent list without checking their readability.

Right, but this doesn't work for Emacs 22 (which is used here). Instead
of, recentf-keep recommends there

    A predicate is a function that is passed a filename to check and that
    must return non-nil to keep it.  For example, you can add the
    `file-remote-p' predicate in front of this list to keep remote file
    names in the recent list without checking their readability through a
    remote access.

After all, I guess we can tag this record as "notabug".

Best regards, Michael.






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

* bug#779: Tramp saves old locations, tries to re-open them on launch
  2008-08-26 18:04     ` Michael Albinus
@ 2008-08-26 18:06       ` Glenn Morris
  2008-08-26 18:18         ` Michael Albinus
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2008-08-26 18:06 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 779

Michael Albinus wrote:

> After all, I guess we can tag this record as "notabug".

I'd go for "fixed 779 23.0.60" personally.






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

* bug#779: Tramp saves old locations, tries to re-open them on launch
  2008-08-26 18:06       ` Glenn Morris
@ 2008-08-26 18:18         ` Michael Albinus
  2008-08-26 18:36           ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2008-08-26 18:18 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 779

Glenn Morris <rgm@gnu.org> writes:

> Michael Albinus wrote:
>
>> After all, I guess we can tag this record as "notabug".
>
> I'd go for "fixed 779 23.0.60" personally.

I don't object (I wrote the fix last year :-)

However, it is a more philosophical question, whether it is a "bug fix"
or an "improvement of convenience".

Best regards, Michael.






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

* bug#779: Tramp saves old locations, tries to re-open them on launch
  2008-08-26 18:18         ` Michael Albinus
@ 2008-08-26 18:36           ` Glenn Morris
  2008-08-26 18:45             ` Processed: " Emacs bug Tracking System
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2008-08-26 18:36 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 779

retitle 779 recentf and remote files
tags 779 notabug
fixed 779 23.0.60
stop

Michael Albinus wrote:

>> I'd go for "fixed 779 23.0.60" personally.
>
> I don't object (I wrote the fix last year :-)

Let's have both. :)
(Bug tracker can be a feature request tracker too.)

> However, it is a more philosophical question, whether it is a "bug fix"
> or an "improvement of convenience".






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

* Processed: Re: bug#779: Tramp saves old locations, tries to re-open them on launch
  2008-08-26 18:36           ` Glenn Morris
@ 2008-08-26 18:45             ` Emacs bug Tracking System
  0 siblings, 0 replies; 8+ messages in thread
From: Emacs bug Tracking System @ 2008-08-26 18:45 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs Bugs

Processing commands for control@emacsbugs.donarmstrong.com:

> retitle 779 recentf and remote files
bug#779: Tramp saves old locations, tries to re-open them on launch
Changed bug title to `recentf and remote files' from `Tramp saves old locations, tries to re-open them on launch'.

> tags 779 notabug
bug#779: recentf and remote files
There were no tags set.
Tags added: notabug

> fixed 779 23.0.60
bug#779: recentf and remote files
bug marked as fixed in version 23.0.60.

> stop
Stopping processing here.

Please contact me if you need assistance.

Don Armstrong
(administrator, Emacs bugs database)





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

end of thread, other threads:[~2008-08-26 18:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.17555.1219729994.18990.bug-gnu-emacs@gnu.org>
2008-08-26  8:51 ` bug#779: Tramp saves old locations, tries to re-open them on launch Michael Albinus
2008-08-26 17:07   ` Glenn Morris
2008-08-26 18:04     ` Michael Albinus
2008-08-26 18:06       ` Glenn Morris
2008-08-26 18:18         ` Michael Albinus
2008-08-26 18:36           ` Glenn Morris
2008-08-26 18:45             ` Processed: " Emacs bug Tracking System
2008-08-25 22:54 Charles Curley

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.