From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: <bug-gnu-emacs@gnu.org>
Subject: Re: Two Tramp issues
Date: Sat, 03 Aug 2002 10:51:19 +0200 [thread overview]
Message-ID: <vaf1y9gcol4.fsf@INBOX.tok.lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <005701c23a63$513b2880$ce852fc3@x874761> ("Lars Hansen"'s message of "Fri, 2 Aug 2002 22:29:34 +0200")
"Lars Hansen" <larsh@math.ku.dk> writes:
> 1. Bug:
> It seems that current buffer is changed to be the Tramp buffer
> when Tramp handles `make-directory'.
Right. Please try this patch.
--- tramp.el.~2.162.~ Wed Jul 31 17:23:43 2002
+++ tramp.el Sat Aug 3 10:48:04 2002
@@ -2407,13 +2407,14 @@
(with-parsed-tramp-file-name dir nil
(when (tramp-ange-ftp-file-name-p multi-method method)
(tramp-invoke-ange-ftp 'make-directory dir parents))
- (tramp-barf-unless-okay
- multi-method method user host
- (format " %s %s"
- (if parents "mkdir -p" "mkdir")
- (tramp-shell-quote-argument path))
- nil 'file-error
- "Couldn't make directory %s" dir)))
+ (save-excursion
+ (tramp-barf-unless-okay
+ multi-method method user host
+ (format " %s %s"
+ (if parents "mkdir -p" "mkdir")
+ (tramp-shell-quote-argument path))
+ nil 'file-error
+ "Couldn't make directory %s" dir))))
;; CCC error checking?
(defun tramp-handle-delete-directory (directory)
> 2. Question:
> Is it correct that previosly a function such as eg. `make-directory'
> was not caught by the "file name magic" when `make-directory' was
> called with a relative file name and default-directory was a Tramp
> file name -- but that this is now corrected ?
> It so, is this change documented ?
Well, this is possible. I recently did this change:
2002-07-26 Kai Großjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
* tramp.el (tramp-coding-commands): New variable.
(tramp-find-inline-encoding): New function.
(tramp-handle-make-directory, tramp-handle-delete-directory)
(tramp-handle-delete-file): Do expand-file-name on arg.
This is from the ChangeLog in Tramp. Maybe this detail got lost in
the ChangeLog in Emacs.
kai
--
A large number of young women don't trust men with beards. (BFBS Radio)
prev parent reply other threads:[~2002-08-03 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 20:29 Two Tramp issues Lars Hansen
2002-08-03 8:51 ` Kai Großjohann [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vaf1y9gcol4.fsf@INBOX.tok.lucy.cs.uni-dortmund.de \
--to=kai.grossjohann@cs.uni-dortmund.de \
--cc=bug-gnu-emacs@gnu.org \
/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 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).