unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14447: tramp-gvfs.el and xesam.el sometime fail to load
@ 2013-05-23  7:16 Glenn Morris
  2013-05-23  9:03 ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2013-05-23  7:16 UTC (permalink / raw)
  To: 14447

Package: emacs
Version: 24.3

I ssh'd into a remote machine where I had a graphical session running.
Now:

emacs -Q -nw -l xesam
emacs -Q -nw -l tramp-gvfs

both fail to load the associated library with error message:
  D-Bus error: "No connection to bus", :session

Debugger entered--Lisp error: (dbus-error "No connection to bus" :session)
  dbus-get-unique-name(:session)

It ought to always be possible to load lisp libraries.





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

* bug#14447: tramp-gvfs.el and xesam.el sometime fail to load
  2013-05-23  7:16 bug#14447: tramp-gvfs.el and xesam.el sometime fail to load Glenn Morris
@ 2013-05-23  9:03 ` Michael Albinus
  2013-05-23 13:35   ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2013-05-23  9:03 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 14447

Glenn Morris <rgm@gnu.org> writes:

> Package: emacs
> Version: 24.3
>
> I ssh'd into a remote machine where I had a graphical session running.
> Now:
>
> emacs -Q -nw -l xesam
> emacs -Q -nw -l tramp-gvfs
>
> both fail to load the associated library with error message:
>   D-Bus error: "No connection to bus", :session
>
> Debugger entered--Lisp error: (dbus-error "No connection to bus" :session)
>   dbus-get-unique-name(:session)
>
> It ought to always be possible to load lisp libraries.

I've wrapped the call of `dbus-get-unique-name' by
`ignore-errors'. tramp-gvfs.el returns now the user error "Package
`tramp-gvfs' not supported", which is intended.

xesam.el is obsolete (the XESAM interface is not used anymore by search
engines). Shouldn't we move xesam.el to "obsolete/"?

Best regards, Michael.





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

* bug#14447: tramp-gvfs.el and xesam.el sometime fail to load
  2013-05-23  9:03 ` Michael Albinus
@ 2013-05-23 13:35   ` Stefan Monnier
  2013-05-23 14:00     ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2013-05-23 13:35 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 14447

>> It ought to always be possible to load lisp libraries.
> I've wrapped the call of `dbus-get-unique-name' by
> `ignore-errors'. tramp-gvfs.el returns now the user error "Package
> `tramp-gvfs' not supported", which is intended.

Not good enough: as Glenn wrote "It ought to always be possible to load
lisp libraries".  They may be loaded for all kinds of reasons that have
nothing to do with using that library.

> xesam.el is obsolete (the XESAM interface is not used anymore by search
> engines). Shouldn't we move xesam.el to "obsolete/"?

Feel free to do it (but even in obsolete/, it should be always possible
to load this library).


        Stefan





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

* bug#14447: tramp-gvfs.el and xesam.el sometime fail to load
  2013-05-23 13:35   ` Stefan Monnier
@ 2013-05-23 14:00     ` Michael Albinus
  2013-05-23 16:43       ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2013-05-23 14:00 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 14447

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> It ought to always be possible to load lisp libraries.
>> I've wrapped the call of `dbus-get-unique-name' by
>> `ignore-errors'. tramp-gvfs.el returns now the user error "Package
>> `tramp-gvfs' not supported", which is intended.
>
> Not good enough: as Glenn wrote "It ought to always be possible to load
> lisp libraries".  They may be loaded for all kinds of reasons that have
> nothing to do with using that library.

I understand this. However, there shall be an indication to the user
that all those (D-Bus based) Tramp methods are not available. How shall I
do it otherwise?

Well, maybe a warning. Would this be acceptable?

>> xesam.el is obsolete (the XESAM interface is not used anymore by search
>> engines). Shouldn't we move xesam.el to "obsolete/"?
>
> Feel free to do it (but even in obsolete/, it should be always possible
> to load this library).

For sure. I'll move it.

>         Stefan

Best regards, Michael.





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

* bug#14447: tramp-gvfs.el and xesam.el sometime fail to load
  2013-05-23 14:00     ` Michael Albinus
@ 2013-05-23 16:43       ` Stefan Monnier
  2013-05-24 10:06         ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2013-05-23 16:43 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 14447

> I understand this. However, there shall be an indication to the user
> that all those (D-Bus based) Tramp methods are not available. How shall I
> do it otherwise?

Don't do it when loading the file, but instead do it when calling
its functions.


        Stefan





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

* bug#14447: tramp-gvfs.el and xesam.el sometime fail to load
  2013-05-23 16:43       ` Stefan Monnier
@ 2013-05-24 10:06         ` Michael Albinus
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Albinus @ 2013-05-24 10:06 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 14447-done

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I understand this. However, there shall be an indication to the user
>> that all those (D-Bus based) Tramp methods are not available. How shall I
>> do it otherwise?
>
> Don't do it when loading the file, but instead do it when calling
> its functions.

Done.

>         Stefan

Best regards, Michael.





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

end of thread, other threads:[~2013-05-24 10:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-23  7:16 bug#14447: tramp-gvfs.el and xesam.el sometime fail to load Glenn Morris
2013-05-23  9:03 ` Michael Albinus
2013-05-23 13:35   ` Stefan Monnier
2013-05-23 14:00     ` Michael Albinus
2013-05-23 16:43       ` Stefan Monnier
2013-05-24 10:06         ` Michael Albinus

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).