all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "Trent W. Buck" <trentbuck@gmail.com>
Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org
Subject: Re: Host name for su(do)?
Date: Mon, 28 Jan 2008 17:10:57 +0100	[thread overview]
Message-ID: <nq7ihugcby.fsf@alcatel-lucent.de> (raw)
In-Reply-To: <20080128154630.GA2378@Clio.twb.ath.cx> (Trent W. Buck's message of "Tue, 29 Jan 2008 02:46:32 +1100")

"Trent W. Buck" <trentbuck@gmail.com> writes:

>> "127.0.0.1" as host name doesn't seem to be needed; if
>> somebody uses it, s?he will be taught not to do.
>
> Hee hee, I only learnt to use 127.0.0.1 because Emacs 22 / TRAMP 2.0
> wasn't working with /multi:ssh:twb@foo:sudo:root@localhost:/ but it
> was with 127.0.0.1.

Oops. I'm not aware of this Tramp 2.0 problem.

>> `system-name' will mostly the unqualified system name I believe, so it
>> is already compliant to your request. Or am I wrong?
>
> On my system, system-name is the FQDN.  Assuming system-name is what
> the default frame-title-format uses, this has been the case for as
> long as I can remember (back to Emacs 21).

init_system_name() in sysdep.c is rather complex, so it might depend
on your actual configuration what's the result.

But I could add the result of `system-name' to the host completion
list for the su(do)? methods. If a user types "/su:ho <TAB>" in the
minibuffer, it will be completed to either "/su:host:" or
"/su:host.domain:", whatever `system-name' returns. That shall be
sufficient I believe.

Best regards, Michael.

  reply	other threads:[~2008-01-28 16:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-27  4:00 Tramp 2.0 -> 2.1 migration woes Trent W. Buck
2008-01-27 13:42 ` Michael Albinus
2008-01-28  2:13   ` Trent W. Buck
2008-01-28 15:32     ` Michael Albinus
2008-01-28 15:57       ` Trent W. Buck
2008-01-28 16:31         ` Michael Albinus
2008-01-29  0:34           ` Trent W. Buck
2008-01-31 11:00             ` Michael Albinus
2008-01-31 14:51               ` Stefan Monnier
2008-01-31 15:46                 ` Michael Albinus
2008-01-27 14:57 ` Michael Albinus
2008-01-28  2:30   ` Trent W. Buck
2008-01-28 14:50     ` Host name for su(do)? (was: Tramp 2.0 -> 2.1 migration woes) Michael Albinus
2008-01-28 15:46       ` Trent W. Buck
2008-01-28 16:10         ` Michael Albinus [this message]
2008-01-28 21:47           ` Host name for su(do)? Michael Albinus
2008-01-28 20:54 ` Shell-command is no longer a shell (was: Tramp 2.0 -> 2.1 migration woes) Michael Albinus
2008-01-29  0:43   ` Trent W. Buck
2008-01-29 21:06     ` Shell-command is no longer a shell Michael Albinus
2008-01-31  2:09       ` Trent W. Buck
2008-01-29 20:58 ` sudo -s -H (was: Tramp 2.0 -> 2.1 migration woes) Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nq7ihugcby.fsf@alcatel-lucent.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=rfrancoise@debian.org \
    --cc=trentbuck@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.