all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Peter Dyballa <Peter_Dyballa@Freenet.DE>
Cc: 12643@debbugs.gnu.org
Subject: bug#12643: 24.2.50; TRAMP and ps-spool functions
Date: Sun, 14 Oct 2012 11:47:48 +0200	[thread overview]
Message-ID: <m2obk5v0zf.fsf@linux-m68k.org> (raw)
In-Reply-To: <FD7E6E3D-01DB-4B80-B432-5FA131734BBF@Freenet.DE> (Peter Dyballa's message of "Sun, 14 Oct 2012 11:21:34 +0200")

Peter Dyballa <Peter_Dyballa@Freenet.DE> writes:

> When I open /ftp:anonymous@ftp.math.s.chiba-u.ac.jp:/emacs and then invoke
> ps-spool-buffer-with-faces I get a *PostScript* buffer. When I want to
> save it (C-x C-w), GNU Emacs offers in mini-buffer with a prompt:
>
> 	Write file: /ftp:anonymous@ftp.math.s.chiba-u.ac.jp:/emacs/
>
> which does not seem clever. The *PostScript* buffer is something local,

What is so special about this buffer that it wouldn't make sense to
store it somewhere remote?

> Saving that buffer by adding for example "~/" plus some characters and
> hoping that file name completion will handle this, also fails since
> GNU Emacs still assumes the "~/" has to be expanded on the remote
> system where this user (anonymous) does not exist. This seems to be
> another bug, since I can open a file from directory X and type
>
> 	C-x C-w ~/<whatever>
>
> and the file name is expanded and the file is saved in my home
> directory. Why is TRAMP behaving differently?

This is a very useful feature of TRAMP, because it makes it convenient
to refer to other directories on the remote host.

> Can this deviating behaviour be customised?

If you want to refer to a local directory you only need to type an extra
slash before the local file name.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





  reply	other threads:[~2012-10-14  9:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-14  9:21 bug#12643: 24.2.50; TRAMP and ps-spool functions Peter Dyballa
2012-10-14  9:47 ` Andreas Schwab [this message]
2012-10-14 10:26   ` Peter Dyballa
2012-10-14 11:51     ` Eli Zaretskii
2016-08-23 14:09       ` Michael Albinus
2016-08-31  9:31         ` 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=m2obk5v0zf.fsf@linux-m68k.org \
    --to=schwab@linux-m68k.org \
    --cc=12643@debbugs.gnu.org \
    --cc=Peter_Dyballa@Freenet.DE \
    /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.