* bug#12643: 24.2.50; TRAMP and ps-spool functions
@ 2012-10-14 9:21 Peter Dyballa
2012-10-14 9:47 ` Andreas Schwab
0 siblings, 1 reply; 6+ messages in thread
From: Peter Dyballa @ 2012-10-14 9:21 UTC (permalink / raw)
To: 12643
Hello!
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, now a local copy of something previously remote, and I would assume that GNU Emacs will offer my home directory or the directory where it was launched from as the place to save the buffer and not that remote site\x17. 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? Can this deviating behaviour be customised?
In GNU Emacs 24.2.50.1 (i386-apple-darwin10.8.0, X toolkit, Xaw3d scroll bars)
of 2012-10-10 on Sumac.local
Bzr revision: 110494 eggert@cs.ucla.edu-20121010063916-igfiv4cgf4olll6c
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
Configured using:
`configure '--build=x86_64-apple-darwin10.8.0'
'--host=i386-apple-darwin10.8.0' '--target=i386-apple-darwin10.8.0'
'--with-wide-int' '--without-pop' '--without-sound' '--without-gpm'
'--without-dbus' '--without-selinux' '--with-x-toolkit=athena'
'--disable-ns-self-contained' '--without-xpm' '--without-jpeg'
'--without-tiff' '--without-gif' '--without-png' '--without-rsvg'
'--x-libraries=/usr/X11/lib' '--x-includes=/usr/X11/include'
'--enable-locallisppath=/Library/Application
Support/Emacs/calendar24:/Library/Application Support/Emacs' 'CFLAGS=-g
-H -pipe -fPIC -fno-common -Os -march=core2 -mtune=core2 -m32
-fomit-frame-pointer -msse4.2' 'LDFLAGS=-m32 -Wl,-dead_strip_dylibs
-Wl,-bind_at_load -Wl,-t' 'CPPFLAGS=-I/sw/include' 'CC=clang'
'CXX=clang++'
'PKG_CONFIG_PATH=/sw/lib/xft2/lib/pkgconfig:/sw/share/pkgconfig:/sw/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig:/usr/lib/pkgconfig'
'build_alias=x86_64-apple-darwin10.8.0'
'host_alias=i386-apple-darwin10.8.0'
'target_alias=i386-apple-darwin10.8.0''
Important settings:
value of $LC_CTYPE: de_DE.UTF-8
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Fundamental
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
--
Mit friedvollen Grüßen
Pete
Time flies like an error – but fruit flies like a banana!
- (almost) Groucho Marx
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#12643: 24.2.50; TRAMP and ps-spool functions
2012-10-14 9:21 bug#12643: 24.2.50; TRAMP and ps-spool functions Peter Dyballa
@ 2012-10-14 9:47 ` Andreas Schwab
2012-10-14 10:26 ` Peter Dyballa
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2012-10-14 9:47 UTC (permalink / raw)
To: Peter Dyballa; +Cc: 12643
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."
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#12643: 24.2.50; TRAMP and ps-spool functions
2012-10-14 9:47 ` Andreas Schwab
@ 2012-10-14 10:26 ` Peter Dyballa
2012-10-14 11:51 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Peter Dyballa @ 2012-10-14 10:26 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 12643
Am 14.10.2012 um 11:47 schrieb Andreas Schwab:
> What is so special about this buffer that it wouldn't make sense to
> store it somewhere remote?
Well, it's meant to be printed. This, I think, cannot yet be performed on the remote system. So it's connected to the local system. I can't see any sense on saving that spool buffer on the remote system. If I would want to distribute it via FTP I would upload it accordingly. And then I certainly would need to use an account that is not anonymous…
>
>> 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.
OK, a bit more work needed! Whenever a TRAMP related buffer has the focus, GNU Emacs is in TRAMP mode and I have to break out of it by using the extra slash.
So no bug at all?
--
Mit friedvollen Grüßen
Pete
If my theory of relativity is proven successful, Germany will claim me as a German, and France will declare that I am a citizen of the world. Should my theory prove untrue, France will say that I am a German, and Germany will declare that I am a Jew.
– Albert Einstein, 1929
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#12643: 24.2.50; TRAMP and ps-spool functions
2012-10-14 10:26 ` Peter Dyballa
@ 2012-10-14 11:51 ` Eli Zaretskii
2016-08-23 14:09 ` Michael Albinus
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2012-10-14 11:51 UTC (permalink / raw)
To: Peter Dyballa; +Cc: schwab, 12643
> From: Peter Dyballa <Peter_Dyballa@Freenet.DE>
> Date: Sun, 14 Oct 2012 12:26:11 +0200
> Cc: 12643@debbugs.gnu.org
>
> Am 14.10.2012 um 11:47 schrieb Andreas Schwab:
>
> > What is so special about this buffer that it wouldn't make sense to
> > store it somewhere remote?
>
> Well, it's meant to be printed.
Not necessarily. Typing "M-x ps-print-buffer RET" _would_ indeed
indicate that you want to print. But if the user invokes
ps-spool-buffer, she might well mean to save it in a file and print it
elsewhere, or do something entirely different that doesn't involve
printing.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#12643: 24.2.50; TRAMP and ps-spool functions
2012-10-14 11:51 ` Eli Zaretskii
@ 2016-08-23 14:09 ` Michael Albinus
2016-08-31 9:31 ` Michael Albinus
0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2016-08-23 14:09 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Peter Dyballa, schwab, 12643
Eli Zaretskii <eliz@gnu.org> writes:
>> > What is so special about this buffer that it wouldn't make sense to
>> > store it somewhere remote?
>>
>> Well, it's meant to be printed.
>
> Not necessarily. Typing "M-x ps-print-buffer RET" _would_ indeed
> indicate that you want to print. But if the user invokes
> ps-spool-buffer, she might well mean to save it in a file and print it
> elsewhere, or do something entirely different that doesn't involve
> printing.
This bug report stays open for years. I believe everything is said, and
there's no bug or missing feature. If nobody complaints, I'll close it
next days.
Best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-08-31 9:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-14 9:21 bug#12643: 24.2.50; TRAMP and ps-spool functions Peter Dyballa
2012-10-14 9:47 ` Andreas Schwab
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
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).