all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Server issues
@ 2013-03-20 13:38 Miguel Guedes
  2013-03-20 20:52 ` W. Greenhouse
       [not found] ` <mailman.22553.1363812776.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Miguel Guedes @ 2013-03-20 13:38 UTC (permalink / raw)
  To: help-gnu-emacs

Two seconds after emacs starts (server-start) is executed and I can then 
issue,

  emacsclient -n /path/to/file

 and emacs visits the specified file.

However, if I visit any /su::/path/to/file, using emacsclient to visit 
files from the command line no longer works.

Is this a bug or am I doing something wrong?


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

* Re: Server issues
  2013-03-20 13:38 Server issues Miguel Guedes
@ 2013-03-20 20:52 ` W. Greenhouse
       [not found] ` <mailman.22553.1363812776.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: W. Greenhouse @ 2013-03-20 20:52 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hi Miguel,

Miguel Guedes <miguel.a.guedes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Two seconds after emacs starts (server-start) is executed and I can then 
> issue,
>
>   emacsclient -n /path/to/file
>
>  and emacs visits the specified file.
>
> However, if I visit any /su::/path/to/file, using emacsclient to visit 
> files from the command line no longer works.
>
> Is this a bug or am I doing something wrong?
>

This still works fine for me ( GNU Emacs 24.2.1 (i486-pc-linux-gnu, GTK+
Version 3.4.2) of 2013-01-22 on biber, modified by Debian ).

-Will
-- 
BOFH excuse #414:

tachyon emissions overloading the system




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

* Re: Server issues
       [not found] ` <mailman.22553.1363812776.855.help-gnu-emacs@gnu.org>
@ 2013-03-21  7:41   ` Miguel Guedes
  2013-03-21 22:01     ` W. Greenhouse
  0 siblings, 1 reply; 4+ messages in thread
From: Miguel Guedes @ 2013-03-21  7:41 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Will,

On Wed, 20 Mar 2013 20:52:33 +0000, W. Greenhouse wrote:

> This still works fine for me ( GNU Emacs 24.2.1 (i486-pc-linux-gnu, GTK+
> Version 3.4.2) of 2013-01-22 on biber, modified by Debian ).

I was secretly hoping someone would say that as it means it can be fixed 
without having to look (too deeply) under the hood! I would imagine 
something in my emacs conf files are loading is causing this issue 
perhaps by interfering with the code in server.el .  

Do you (or anyone else!) know how I could go about diagnosing this?

Many thanks for you reply.


* BTW, also using GNU Emacs 24.2.1



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

* Re: Server issues
  2013-03-21  7:41   ` Miguel Guedes
@ 2013-03-21 22:01     ` W. Greenhouse
  0 siblings, 0 replies; 4+ messages in thread
From: W. Greenhouse @ 2013-03-21 22:01 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hi Miguel,

> I was secretly hoping someone would say that as it means it can be fixed 
> without having to look (too deeply) under the hood! I would imagine 
> something in my emacs conf files are loading is causing this issue 
> perhaps by interfering with the code in server.el .  
>
> Do you (or anyone else!) know how I could go about diagnosing this?
>
> Many thanks for you reply.
>
>
> * BTW, also using GNU Emacs 24.2.1

Where in the process of raising an emacsclient and using TRAMP to access
a file via su do things go wrong for you?  Is Emacs itself still able to
access /su::/path type filenames, or is that broken, too?

M-x toggle-debug-on-error does work for diagnosing many server errors,
so try that at first.  Next, the usual litany of the Emacs process of
elimination: try connecting to an Emacs server which was initialized
with emacs -q (skipping your own init file), and if that still has
trouble, escalate to emacs -Q (skipping the distro/site-wide init files
too).

FWIW, some of the most irritating and hard-to-diagnose emacsclient
invocation problems I've had have had to do with the behavior of the
*shell* rather than of Emacs (i.e. the shell interpreting things when we
want it to just pass the args to Emacs).  So experiment with different
shell quoting strategies too, especially if you are calling this inside
a shell script.

I noticed also in this list that you were writing some code to warn on
the modeline when su-editing a file; I don't see how that might've
contributed to your troubles, but maybe...

Sorry this is such general advice, but I can't think of much else that's
special about the su backend to Tramp.

Best,
Will

-- 
BOFH excuse #289:

Interference between the keyboard and the chair.




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

end of thread, other threads:[~2013-03-21 22:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-20 13:38 Server issues Miguel Guedes
2013-03-20 20:52 ` W. Greenhouse
     [not found] ` <mailman.22553.1363812776.855.help-gnu-emacs@gnu.org>
2013-03-21  7:41   ` Miguel Guedes
2013-03-21 22:01     ` W. Greenhouse

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.