emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: over-engineered (and under-standardized) inferior interfaces


From: Sam Steingold
Subject: Re: over-engineered (and under-standardized) inferior interfaces
Date: Fri, 22 Aug 2014 17:25:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin)

> * Michael Albinus <address@hidden> [2014-08-22 08:17:31 +0200]:
>
> Sam Steingold <address@hidden> writes:
>
>>>> However, sometimes the way I connect is more convoluted, e.g., I need
>>>> to ssh to server, then sudo to the right user, only then invoke a
>>>> command.
>>>
>>> Can this be done via Tramp?
>>
>> No - I also need sudo after ssh.
>
> /ssh:address@hidden|sudo:address@hidden:

==>  Host name must not match method "sudo"

BTW, this implies that all the inferior process starting functions
should be binding default-directory, e.g.:

--8<---------------cut here---------------start------------->8---
(defun sql-vertica (&optional buffer)
  "Run vsql as an inferior process."
  (interactive "P")
  (let ((default-directory (or sql-vertica-default-directory
                               default-directory)))
    (sql-product-interactive 'vertica buffer)))
--8<---------------cut here---------------end--------------->8---

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265
http://www.childpsy.net/ http://openvotingconsortium.org http://www.memritv.org
http://mideasttruth.com http://jihadwatch.org http://islamexposedonline.com
((lambda (x) `(,x ',x)) '(lambda (x) `(,x ',x)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]