Re: tramp remote host mismatch problems

2018-11-04 Thread Michael Albinus
"Alex V. Koval" writes: > Hi Michael, Hi Alex, > I am happy to write to you again, and for a start I would like to tell > you big BIG THANK YOU! For providing this excellent tramp module which I and > thousands of emacs users are using worldwide! For the records, Tramp was invented by Kai

Re: Error with GZIP

2018-11-03 Thread Michael Albinus
Live System User writes: > Hi, Hi, > I cannot get it to fail again with my full configuratiom -- just that > one time (after the GZIP modifications on master but the error > ocurred on Emacs 25.2) >> >>> A wild guess: did Emacs 25.2 use info that was cached/saved >>> from

Re: Error with GZIP

2018-11-02 Thread Michael Albinus
Live System User writes: Hi, >> # emacs -Q --eval '(setq tramp-verbose 6)' > > Unfortunately, I am unable to get it to fail again; Please try then # emacs --eval '(setq tramp-verbose 6)' > A wild guess: did Emacs 25.2 use info that was cached/saved > from mater. perhaps

Re: Error with GZIP

2018-11-02 Thread Michael Albinus
Live System User writes: > Hi, Hi, > I am experiencing the following error: > > Tramp: Decoding local file ‘/tmp/tramp.313908NW’ with ‘(lambda (beg > end) (base64-decode-region beg end) (let ((coding-system-for-write > (quote binary)) (coding-system-for-read (quote binary)) >

Re: tramp (2.2.13.25.2); dired-do-find-regexp does not work across ssh:

2018-10-31 Thread Michael Albinus
Francesco Potortì writes: Hi Francesco, > In an ssh: dired buffer with one or more marked files, pressing A > (dired-do-find-regexp) always produces a message saying that it did not > find the regexp. This is . It is not a bug in Tramp, but in xref. I've fixed

Re: windows cmd.exe shell

2018-10-30 Thread Michael Albinus
"Ben Hyde" writes: Hi Ben, > It has, after decades of resistance, become fairly easy[1] to run > and openssh’s sshd service on window. I’m embarrassed to ask this, > but does this august gathering have any sage advice about how to > leverage that via tramp? Well, I also resist to use MS

Re: supposed "Directory has changed on disk; type g to update Dired"

2018-10-30 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > $ emacs -nw -Q -L ~/Downloads/tramp/lisp/ /ssh:my.remote.host: > SPC [dired-next-line]... > RET [dired-find-file] > SPC [dired-next-line]... > q [quit-window] > RET [dired-find-file] > "Directory has changed on disk; type g to update Dired" > C-h l

Re: tramp (2.2.13.25.2); setting GZIP environment variable breaks tramp

2018-10-29 Thread Michael Albinus
Francesco Potortì writes: Hi Francesco, > I applied it and the problem I had observed has gone. Thanks Thanks for the feedback. I've applied it to the repositories; will appear with next Emacs 26.2. Best regards, Michael. ___ Tramp-devel mailing

Re: tramp (2.2.13.25.2); setting GZIP environment variable breaks tramp

2018-10-27 Thread Michael Albinus
Michael Albinus writes: Hi Francesco, >> One more thing, since I am at it: maybe nowadays the first compression >> program to check should be lzop, which is fast > > Will check, to be added in Tramp master when suceesful. I've searched a little bit for benchmarks. Looks l

Re: tramp (2.2.13.25.2); setting GZIP environment variable breaks tramp

2018-10-26 Thread Michael Albinus
Francesco Potortì writes: Hi Francesco, > If you decide on either and send me a patch I can try that. I plan to apply the following patch: diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el index 3f83697..19773e3 100644 --- a/lisp/tramp-sh.el +++ b/lisp/tramp-sh.el @@ -4436,7 +4436,8 @@ means

Re: tramp (2.2.13.25.2); setting GZIP environment variable breaks tramp

2018-10-26 Thread Michael Albinus
Francesco Potortì writes: Hi Francesco, >>Could you please check, whether "gzip -q ..." suppresses such a warning >>for you? I would add "-q" then for the gzip calls inside Tramp. > > No, the warning is there even with -q. :-( > $ echo | gzip -c >/dev/null 2>/dev/null > > $ echo | env

Re: tramp (2.2.13.25.2); setting GZIP environment variable breaks tramp

2018-10-26 Thread Michael Albinus
Francesco Potortì writes: Hi Francesco, > Recently gzip started to emit a warning (on stderr, I believe) saying > that setting the GZIP env var is deprecated. > > I never cared too much about it until tramp stopped working. After some > time, I discovered that GZIP was the culprit. > > For

Re: supposed "Directory has changed on disk; type g to update Dired"

2018-10-21 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi, > MA> ... this sounds like an error. I'll try to reproduce it. Which > MA> Emacs/Tramp version are you using? > emacs-version "25.2.2" > tramp-version "2.4.0" I still cannot reproduce it any longer, since it was fixed back in March. What system do you run Emacs?

Re: Does tramp respect (remote) TMPDIR?

2018-10-20 Thread Michael Albinus
Frederick Bartlett writes: > Hi! Hi Fred, > The problem seems to be that I do not have write rights to /tmp -- nor > do I have the permissions necessary to change permissions on /tmp. > (And I don't want to deal with my firm's IT bureaucracy. ;) > > So I set $TMPDIR -- but that still failed.

Re: Quick guide improvements

2018-10-20 Thread Michael Albinus
"Kai Großjohann" writes: Hi Kai, > May I suggest to call it the "simplest" remote file name, instead of > the "most simple" remote file name? Thanks, I've pushed this to the repositories. > Kai Best regards, Michael. ___ Tramp-devel mailing list

Re: supposed "Directory has changed on disk; type g to update Dired"

2018-10-18 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > Reading > (info "(tramp) Frequently Asked Questions") > In .emacs I did > (setq > remote-file-name-inhibit-cache 3600 > tramp-completion-reread-directory-timeout 3600) > and restarted emacs. > > Alas, I still get lots of > "Directory has changed on disk;

Re: Quick guide improvements

2018-10-17 Thread Michael Albinus
積丹尼 Dan Jacobson writes: >>> server, the most simple remote file name is >>> >>> ‘/ssh:u...@example.com:/path/to/file’. > > MA> Why is this example better than the used one? > > Just put on its own line for clearer reading. Hmm, it is a kind of style. Being it the "Short introduction how to

Re: mention how to eliminate Checking vc-registered completely

2018-10-17 Thread Michael Albinus
積丹尼 Dan Jacobson writes: > Disable version control to avoid delays: > > (setq vc-ignore-dir-regexp > (format "\\(%s\\)\\|\\(%s\\)" > vc-ignore-dir-regexp > tramp-file-name-regexp)) > > If this is too radical,

Re: Command to check for latest version

2018-10-17 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > MA> In the *Packages* buffer, you call "M-x package-menu-mark-upgrades". > > (I meant bypassing all the intermediary systems, and checking directly to > the source...) This won't happen as Tramp command. But you could always run "git pull" over the Tramp

Re: Command to check for latest version

2018-10-17 Thread Michael Albinus
積丹尼 Dan Jacobson writes: > OK (but even if it is in ELPA one still might want to check if we are > using the latest version...) In the *Packages* buffer, you call "M-x package-menu-mark-upgrades". Best regards, Michael. ___ Tramp-devel mailing list

Re: Quick guide improvements

2018-10-17 Thread Michael Albinus
Dan Jacobson writes: Hi Dan, > 5.2 Using ‘ssh’ and ‘plink’ > === > > If your local host runs an SSH client, and the remote host runs an SSH > server, the most simple remote file name is > ‘/ssh:user@host:/path/to/file’. The remote file name ‘/ssh::’ opens a > remote

Re: Command to check for latest version

2018-10-17 Thread Michael Albinus
Dan Jacobson writes: Hi Dan, > Maybe have a command > tramp-check-for-latest-tramp-version > which goes out on the network and checks and tells us if we are using > the latest version... There are plans to bring Tramp into GNU ELPA. This would include the possibility to upgrade to the recent

Re: What is minimumally needed to activate TRAMP?

2018-10-15 Thread Michael Albinus
Live System User writes: > Hi, Hi, > What is minimumally needed to activate TRAMP? > > I tried the following on the current master: > > 0. emacs -Q -nw > > 1. C-x C-f /ssh:/localhost:/tmp/test.txt It would suffice if you try "C-x C-f /ssh:localhost:/tmp/test.txt". > It

Re: Can't pick up info dir

2018-10-03 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > MA> (I know that the Tramp manual is speaking about > MA> `Info-default-directory-list'. If `Info-directory-list' is working for > MA> you, I'll change.) > > Please do. I've done this already with yesterday's patch. Best regards, Michael.

Re: Unify tramp/INSTALL and (info "(tramp) Installation")

2018-10-02 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > Please be sure the same things are mentioned in > tramp/INSTALL and > (info "(tramp) Installation"). > > Currently each doesn't mention the existence of the other. > > And worse, e.g., ln -s is only mentioned in one. Thus the other half of > the users will

Re: Can't pick up info dir

2018-10-01 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > ;;Dan's simple TRAMP installation instructions: > ;;As we know, emacs will never contain the freshest tramp. > ;;So download the freshest version, (no git for me, as that > ;;always uses more disk space.) and run tar zxvf on it, > ;;cd into the directory

Re: tramp (2.4.1-pre); Cannot move cursor back to /method:host: part when finding remote file

2018-10-01 Thread Michael Albinus
Maarten Grachten writes: > Hi Michael, Hi Maarten, >> I'm not sure this is a Tramp issue. I can reproduce the problem when I >> start Emacs with my (rather extensive) configuration. It does not happen >> when starting "emacs -Q". So I suspect a completion package is in the way. >> Which one do

Re: mention http download link

2018-10-01 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, >>2 Obtaining Tramp. >>** >> >>TRAMP is included as part of Emacs (since Emacs version 22.1). >> >> TRAMP is also freely packaged for download on the Internet at >>. > > That asks for a password. > > Please mention

Re: The “//” fix confuses cygwin-mount

2018-09-29 Thread Michael Albinus
Andy Moreton writes: Hi Andy, > I assume your patch is against standalone tramp. After patching emacs > master, the problem is fixed: Thanks for checking. I've committed the patch to Emacs' master branch. Best regards, Michael. ___ Tramp-devel

Re: The “//” fix confuses cygwin-mount

2018-09-28 Thread Michael Albinus
Andy Moreton writes: Hi Andy, >> I don't know cygwin-mount.el. On the marmalade repo, I found it in >> version "2001". Installed and evall'ed locally, and rerun the test > > To get cygwin-mount.el to do anything useful, you must: > 1) Install Cygwin (e.g. in "c:\cygwin") > 2) Set

Re: The “//” fix confuses cygwin-mount

2018-09-28 Thread Michael Albinus
Andy Moreton writes: Hi Andy, > On Fri 28 Sep 2018, Michael Albinus wrote: > >> On an MS Windows machine, I have installed >> >> GNU Emacs 26.1 (build 1, x86_64-unknown-cygwin) >> of 2018-05-28 >> >> (That's the version distributed by Cygwin.).

Re: The “//” fix confuses cygwin-mount

2018-09-28 Thread Michael Albinus
Chris Zheng writes: > Hello Michael, Hi Chris, > I’m afraid the following commit is still needed for MS-Windows user > using cygwin-mount because this problem is return. > > 2849477af22a1e20a86da7743562495e00b3a1b7 > Author: Michael Albinus > AuthorDate: Thu Mar 2

Re: tramp (2.2.13.25.2); emacs thinks 2 files are the same and they are not

2018-09-26 Thread Michael Albinus
Jon SCHEWE writes: Hi Jon, >> This problem is known, and solved already in Tramp 2.4, which will be >> part of the upcoming Emacs 27. In an ad-hoc multi-hop file name, host >> names must match for methods like "su", "sg", "sudo", "doas", and "ksu". >> > So this requires that the hostname for

Re: tramp (2.2.13.25.2); emacs thinks 2 files are the same and they are not

2018-09-26 Thread Michael Albinus
Jon SCHEWE writes: Hi Jon, > I first visited the file > /su:jschewe-adm@localhost|sudo:root@localhost:/etc/logcheck/ignore.d.server/local > and made changes to it. I verified outside of emacs that this edited the > file on my local system. > > I then asked emacs to visit the file >

Re: tramp (2.3.3.26.1); Faild savid file under su which located in other partision

2018-09-24 Thread Michael Albinus
Роберт Севумян writes: > Michael, hello. Hi Robert, > #Failed operation > [root@localhost /]# cp -f -p /tmp/tramp.test.conf > /boot/EFI/refind/refind.conf > cp: failed to preserve ownership '/boot/EFI/refind/refind.conf': > Permission denied > > My boot sector is in vfat format: > # /dev/sda1

Re: tramp (2.3.3.26.1); Faild savid file under su which located in other partision

2018-09-24 Thread Michael Albinus
alrobe...@rambler.ru writes: Hi, > Reproduce steps > 1) Open file in boot sector with su using tramp (in my case it was > /boot/EFI/refind/refind.conf) > a) C-x C-f /su::localhost > b) Enter password > c) /boot/EFI/refind/refind.conf > 2) Edit opened file > 3) Save file (by

Re: Would like to have tramp pass sudo arg

2018-09-03 Thread Michael Albinus
Tom Wurgler writes: Hi Tom, > I have the following code, which works well to a point: > > (defun sudo-shell-as-user (host user arg) > "Use sudo to open a shell on HOST as USER > The password it asks for is the root password on the specified > machine." > (interactive "sMachine? \nsUser? ")

Re: Tramp and magit

2018-08-15 Thread Michael Albinus
S Neaves writes: > Hello List, Hi Sam, > i.e. I can not get magit to work on my server accessed with tramp > correctly. > > (require 'tramp) > (push "/cm/shared/tools/git-2.18.0/bin/git" tramp-remote-path) > > to my .emacs > > and deleting my tramp file in .emacs.d > > If I use dired over

Re: distinguish tramp from non-tramp buffer

2018-08-11 Thread Michael Albinus
Ernesto Alfonso writes: Hi Ernesto, > Thanks Michael, that seems to work. Since this question has been asked several times on the mailing list, I've added it to the "Frequently Asked Questions" of the manual. > Ernesto Best regards, Michael. ___

Re: distinguish tramp from non-tramp buffer

2018-08-10 Thread Michael Albinus
Ernesto Alfonso writes: > Hi, Hi Ernesto, > I'm not too familiar with tramp internals and I was looking for a way > to easily determine whether a given buffer is using tramp or not, and > optionally to determine the method in use. The buffer-local variable `default-directory' will help. It

Re: tramp (2.2.13.25.1); TRAMP hangs if .inputrc binds C-j

2018-07-26 Thread Michael Albinus
Davor Cubranic writes: Hi Davor, > I use this in my .inputrc, which lets me keep all my bindings except for > Ctrl-J when in TRAMP: > > $if term=dumb > # don't bind Control-J or it messes up TRAMP > $else > "\C-j": next-history > $endif Thanks, I've updated the text. Best regards, Michael.

Re: tramp (2.2.13.25.1); TRAMP hangs if .inputrc binds C-j

2018-07-25 Thread Michael Albinus
Davor Cubranic writes: Hi Davor, > I’d be very happy with adding something to the docs, as it took me a > long time to find the reason. Most advice points to shell config files > being the culprit, especially the prompt, and it was pure luck that I > found one user’s report yesterday that

Re: tramp (2.2.13.25.1); TRAMP hangs if .inputrc binds C-j

2018-07-25 Thread Michael Albinus
Davor Cubranic writes: Hi Davor, > My TRAMP connections were hanging waiting for remote shell prompt to > multiple hosts and platforms. I finally tracked down the issue to having > "Control-j: next-history" in my .inputrc. If I define that binding > conditionally only on non-dumb terminals,

Re: // and ~

2018-07-10 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > Users would often like to add ~ or //bla_bla > to the end of e.g., > /adb::/sdcard/DCIM/mei/temp/ > as the usual emacs shortcut to just a local directory, > but tramp does not detect it. A double slash or "/~" expand only the file name part of the remote file

Re: Cannot execute org babel shell script over tramp to remote termux (Android) due to tmpdir issues

2018-07-06 Thread Michael Albinus
Matt Mello writes: > Michael, Hi Matt, > Obviously, anything could be in the org babel script, because it > either runs or it doesn't. So, there isn't a lot of value in what I > have sent here. I see. And finally, you've tracked down the problem already to

Re: Cannot execute org babel shell script over tramp to remote termux (Android) due to tmpdir issues

2018-07-06 Thread Michael Albinus
Matt Mello writes: Hi Matt, > This worked: > > set-variable org-babel-remote-temporary-directory > "/data/data/com.termux/files/home/" According to the directory listing in the traces, "/data/data/com.termux/files/home/tmp" might be the better choice. And maybe there exist also

Re: Cannot execute org babel shell script over tramp to remote termux (Android) due to tmpdir issues

2018-07-06 Thread Michael Albinus
Matt Mello writes: > ​Actually, Michael, this may be an org-babel issue: > > https://lists.gnu.org/archive/html/emacs-orgmode/2013-09/msg00992.html > > Isn't that ​your post? Yes. > If the code in your post has been incorporated into the codebase, then > that would be an issue, right? Yes, it

Re: Cannot execute org babel shell script over tramp to remote termux (Android) due to tmpdir issues

2018-07-05 Thread Michael Albinus
Matt Mello writes: Hi Matt, > This worked: > > set-variable org-babel-remote-temporary-directory > "/data/data/com.termux/files/home/" > > Since this is currently the only thing I do remotely, I can just > hardcode this into my init script. Let's call it a workaround. We have connection-local

Re: Cannot execute org babel shell script over tramp to remote termux (Android) due to tmpdir issues

2018-07-05 Thread Michael Albinus
Matt Mello writes: Hi Matt, > When I hit C-c C-c in the bash script, it attempts to run it on the > remote termux/Android environment and always gives this error: > > " > Tramp: Decoding remote file ‘/scp:phone#8022:/tmp/ob-input-NNFaG8’ > using ‘base64 -d -i >%s’...failed >

Tramp 2.4.0

2018-06-29 Thread Michael Albinus
Hello, The Tramp team is happy to announce the release of Tramp 2.4.0. This is the development version, covering new features. Tramp is a remote file editing package for Emacs. Tramp uses different methods like ssh or scp to access files on remote hosts as if they were local files. Access to

Tramp 2.3.4

2018-06-27 Thread Michael Albinus
Hello, The Tramp team is happy to announce the release of Tramp 2.3.4. This is mainly a maintenance release. Tramp is a remote file editing package for Emacs. Tramp uses different methods like ssh or scp to access files on remote hosts as if they were local files. Access to the remote file

Re: Problem with tramp and magit

2018-06-22 Thread Michael Albinus
Stephan Lindner writes: > Hi Michael, Hi Stephan, [pls keep the Cc, for the archives] > I searched a bit around and included the following in .profile in my > remote home directory: > > | PATH=/home/users/lindners/bin:$PATH > | export PATH > > I also added the following to my init.el: > >

Re: Problem with tramp and magit

2018-06-22 Thread Michael Albinus
Stephan Lindner writes: > Hi there, Hi Stephan, > I cannot use magit when accessing a project on my server via tramp. I > think this is a question that was asked before > (https://emacs.stackexchange.com/questions/35055/magit-with-tramp-is-not-working-with-git-correctly) > but I could not >

Re: tramp (2.3.3.26.1); Tramp hangs when trying to connect in emacs for OSX 26.1

2018-06-18 Thread Michael Albinus
Jeffrey Gennari writes: > Hi Michael, Hi Jeffrey, > I wanted to let you know that after performing a fresh installation of > emacs and my loaded packages, I am now able to connect using > Tramp. I’m not entirely sure of the problem, but it appears that the > git-gutter package+

Re: tramp (2.3.3.26.1); minor doc issue -- env var vs abbrev

2018-06-13 Thread Michael Albinus
Ken Raeburn writes: Hi Ken, > In the TRAMP info file, under "Frequently Asked Questions", question > "How to shorten long file names when typing in TRAMP?", approach #5 > demonstrates updating directory-abbrev-alist, and says: > > *Note* that file name cannot be edited here because

Re: tramp (2.2.13.25.1); tramp-file-name-handler: Permission denied when loading or saving files larger than 14406 bytes via tramp.

2018-06-12 Thread Michael Albinus
"Jeffrey S. Oishi" writes: > Hi, Hi Jeffrey, > I am trying to use tramp to edit not-very-large files on a remote > server. I have used tramp from other machines on this same server > without problem. Smaller files do not have any problems. However, with > files above at least 14406 bytes (I

Re: tramp (2.3.3.26.1); Tramp hangs when trying to connect in emacs for OSX 26.1

2018-06-12 Thread Michael Albinus
Jeffrey Gennari writes: Hi Jeffrey, > My mistake, I was trying to sanitize a bit. The complete debug buffer > is attached. This is still not a debug buffer. A debug buffer has a header line, telling us Emacs and Tramp version. The other lines start always with a timestamp, a function name, and

Re: tramp (2.3.3.26.1); Tramp hangs when trying to connect in emacs for OSX 26.1

2018-06-12 Thread Michael Albinus
Jeffrey Gennari writes: > Hi Michael, Hi Jeffrey, > I ran this command: > > emacs -Q --eval '(setq tramp-verbose 10)' --eval '(setq > tramp-debug-buffer t)' /ssh:jsg@pd2 Really? I would expect /ssh:jsg@pd2: > And the bug buffer changed a bit. It is below. I’m trying the latest tramp > now.

Re: Set PS1 on login?

2018-06-12 Thread Michael Albinus
yary writes: > ...you can pass information in the TERM environment variable, which is > always copied (there may be a length limit however). You'll still have > to make sure that the remote shell doesn't restrict the TERM variable > to designate a known terminal type. Pass the -t option to ssh

Re: Set PS1 on login?

2018-06-11 Thread Michael Albinus
John Collins writes: > Hello, Hi John, > Happy (mostly) tramp user here that is also very new to it. As someone > working with remote machines that I do not own or control, TRAMPs > inability to handle fancy prompts is highly crippling. It's stated in > the FAQ that "tramp needs a clean

Re: tramp (2.3.3.26.1); Tramp hangs when trying to connect in emacs for OSX 26.1

2018-06-09 Thread Michael Albinus
Jeffrey Gennari writes: > Hi Michael, Hi Jeffrey, > Attached is the base64 encoded debug buffer. Thanks. The prompt from the remote shell is a single "$", no space. In theory, this shouldn't matter; Tramp shall recognize this prompt as well. Strange. What puzzles me a bit is, that Tramp

Re: tramp (2.3.3.26.1); Tramp hangs when trying to connect in emacs for OSX 26.1

2018-06-08 Thread Michael Albinus
Jeffrey Gennari writes: > Hi Michael, Hi Jeffrey, > Yes, the space is there and the connection is still hanging? The debug > file is the same as before. I cannot decide whether it is correct or not. The debug file shows as process output: --8<---cut

Re: tramp (2.3.3.26.1); Tramp hangs when trying to connect in emacs for OSX 26.1

2018-05-31 Thread Michael Albinus
Jeffrey Gennari writes: Hi Jeffrey, > When attempting to connect over SSH tramp hangs with the message “Found > remote shell prompt on …"and I must hit C-g to > quit. The debug output is below. Is this new with Emacs 26.1, or did it happen also with older Emacs / Tramp versions?

Re: tramp (2.2.13.25.2); mac(GUI) tramp to linux over ssh not response

2018-05-26 Thread Michael Albinus
yu.z...@joudou.com (Yu Zhao 赵宇) writes: Hi, > mac(GUI) tramp to linux over ssh not response. > I am trying to ssh to a local machine, to which raw ssh works. > I did this: > > /ssh:IPARDDRESS:~ > /ssh:USER@IPADDRESS:~ > > the ~ will not show up in minibuffer and it did not reponse for a long

Re: tramp (2.2.13.25.2); need ls --color=never

2018-05-10 Thread Michael Albinus
Francesco Potortì writes: Hi Francesco, > When logging to a LibreELEC system I need ls --color=none. The > LibreELEC is a stripped-down Linux system with non-standard file system > organisation, and it is not easy or immediate, nor useful in my opinion, > to try and change its

Re: password caching not working as hoped on remote machine

2018-04-23 Thread Michael Albinus
Craig Hicks writes: > Hi Micheal Albinus Hi Craig, I'm back and alive :-) > What I am using is > > /ssh:user@machine|sudo:machine:/home/user > > which starts me in root unable to use exit to drop down to user. Before continuing, we shall examine your Tramp

Re: tramp-shell-open doesn't work with rc shell

2018-04-20 Thread Michael Albinus
Jeff Mickey writes: Hi Jeff, >> Thanks for this. I don't object if you provide a patch, could be >> applied to Tramp if it passes the tests. The quoting of the values >> is just because the underlying shell; any kind of >> `tramp-shell-quote-argument' should work instead. >

Re: tramp-shell-open doesn't work with rc shell

2018-04-20 Thread Michael Albinus
Jeff Mickey writes: Hi Jeff, > In tramp-open-shell, there is this line: > > (tramp-send-command vec (format (concat "exec env > TERM='%s' INSIDE_EMACS='%s,tramp:%s' " "ENV=%s %s > PROMPT_COMMAND='' PS1=%s PS2='' PS3='' %s %s") > tramp-terminal-type

Re: [PATCH] * tramp-sh.el (tramp-remote-path): Add termux's bin path.

2018-04-15 Thread Michael Albinus
tumashu writes: Hi, > +"/opt/bin" "/opt/sbin" "/opt/local/bin" > "/data/data/com.termux/files/usr/bin") That looks like macOS specific, doesn't it? Or Android? In that case I wouldn't like to add it to the default; you're always able to add it in your init file. Best

Re: The “//” fix confuses cygwin-mount

2018-03-26 Thread Michael Albinus
Chris Zheng writes: > Hello Michael, Hi Chris, >> I've hijacked the laptop of my wife (Windows user), so I could reproduce >> the problem. Shall be fixed now, patch pushed to the repositories. Could >> you, pls test? > > Yes. It is fixed. Thanks for testing. > Thank

Re: The “//” fix confuses cygwin-mount

2018-03-26 Thread Michael Albinus
Chris Zheng writes: > Hello Michael, Hi Chris, > It isn’t a Cygwin Emacs. It’s native compiled under Windows using > MSYS2 and MinGW-w64. I’m in master branch at I've hijacked the laptop of my wife (Windows user), so I could reproduce the problem. Shall be fixed now,

Re: The “//” fix confuses cygwin-mount

2018-03-23 Thread Michael Albinus
Chris Zheng writes: > Hello Michael, Hi Chris, > Reproduction steps: > > Suppose I want to connect to 222.222.222.222 with user kel. > > 1. emacs -Q > > 2. C-x C-f /scpx:kel@222.222.222.222:/ RET Then a dired buffer showing > the root directory is opened. > > 3. With

Re: The “//” fix confuses cygwin-mount

2018-03-23 Thread Michael Albinus
Chris Zheng writes: > Hello Michael, Hi Chris, > However, I observed that when I go to /scpx:E:/ with “C-x C-f”, and > “C-x C-f” again, the minibuffer shows “/scpx:E://”. Is this intended? I cannot reproduce it, but I work on a GNU/Linux machine. Maybe it behaves

Re: The “//” fix confuses cygwin-mount

2018-03-22 Thread Michael Albinus
Chris Zheng writes: > Hello Michael, Hi Chris, >> Sorry, I meant this: >> >> --8<---cut here---start->8--- >>(concat (file-remote-p filename) >>(tramp-run-real-handler >>

Re: The “//” fix confuses cygwin-mount

2018-03-22 Thread Michael Albinus
Michael Albinus <michael.albi...@gmx.de> writes: Hi Chris, > Does it work, if you change the patch like this: Sorry, I meant this: --8<---cut here---start->8--- (concat (file-remote-p filename)

Re: The “//” fix confuses cygwin-mount

2018-03-22 Thread Michael Albinus
Chris Zheng writes: > Dear Michael, Hi Chris, > I’m sorry to tell you that the fix isn’t right, as > > (tramp-drop-volume-letter "c:/msys64/foo") ⇒ "/msys64/foo" > > which is still wrong. The “/msys64” should be removed, too. Why does (substitute-in-file-name "/foo")

Re: The “//” fix confuses cygwin-mount

2018-03-22 Thread Michael Albinus
Chris Zheng writes: > Dear List, Hi Chris, > The commit c24c5dc4a4cc18e7f1ec949efcfe1d4bae541d02 confuses the > cygwin-mount that serves the translation from “/c/Windows” to > “C:/Windows/” under MS-Windows. With the above commit and > cygwin-mount, > >

Re: Tramp on Windows connects to Linux but not to OSX

2018-03-15 Thread Michael Albinus
Michael Albinus <michael.albi...@gmx.de> writes: Hi, > Could you try the following patch? It is created on the development > version of tramp-sh.el, line numbers might vary. FTR, I've committed the patch to the Tramp repository. Will be available with the next Tramp versions.

Re: Tramp on Windows connects to Linux but not to OSX

2018-03-13 Thread Michael Albinus
Schönes Wetter Schönes Gefühl writes: Hi, > I've tried adding the recommended lines to ~/.profile but there's no > change in situation. Anyway, that same problem happens in another Mac > mini computer on which no iTerm2 installed, i.e. the problem must be > related to the

Re: Tramp completely freezes Emacs with OpenSSH on Windows

2018-02-28 Thread Michael Albinus
Nick Clifford writes: > Hi, Hi Nick, > I just installed Emacs on my Windows machine for remote file editing > using Tramp. However, I noticed than whenever I try to connect to a > remote server (C-x C-f /ssh:home:), Tramp just displays "Opening > connection for home using

Re: tramp-default-method not applied anymore

2018-02-12 Thread Michael Albinus
Gilles Pion writes: >> This was already done: > > I've compiled Emacs using archive emacs-26.0.91.tar.xz from > alpha.gnu.org, dated 22 Jan 2018, the rlogin.el included don't include > those fixes. That's why I've shown the commit entry :-) Date: Sat Feb 3

Re: tramp-default-method not applied anymore

2018-02-12 Thread Michael Albinus
p version?) This was already done: --8<-------cut here---start->8--- commit e23de39e22ccdf594b0ee84959f6df9d01af25a2 Author: Michael Albinus <michael.albi...@gmx.de> Date: Sat Feb 3 11:08:33 2018 +0100 Fix Bug#30324 * lisp/net/rlogin.el (rlogin

Re: tramp-default-method not applied anymore

2018-02-12 Thread Michael Albinus
Gilles Pion writes: Hi Gilles, > I now have to explicitly a method in remote path names: > "/:@". Yes, this is intended. Read etc/NEWS of Emacs 26.1: --8<---cut here---start->8--- *** The method part of remote file names is

Re: Tramp on Windows connects to Linux but not to OSX

2018-02-07 Thread Michael Albinus
Schönes Wetter Schönes Gefühl writes: Hi Schönes Wetter Schönes Gefühl :-) > Using Emacs-25.2.1 on Windows XP and 7, I try to connect to my Mac > mini (OSX 10.7.4 Lion and 10.5.8 Leopard) using Tramp & plink method. > After I enter the password, it hangs on with the "Found

Re: Is quotes in tramp-find-inline-compress needed in MS-Windows?

2018-02-02 Thread Michael Albinus
Chris Zheng writes: > Hello Michael, Hi Chris, > I thought about this command, and the results are > > M-& echo xyzzy | "gzip" | "gzip -d" RET > ⇒ Not a command error for "gzip -d". Well, this is indeed an error! Thanks for reporting. > M-& echo xyzzy | "gzip" |

Re: Is quotes in tramp-find-inline-compress needed in MS-Windows?

2018-02-02 Thread Michael Albinus
Chris Zheng writes: > Hi Michael, Hi Chris, >> This would easy to implement. Sorry that I don't test myself; I do not >> run MS Windows anywhere. > > M-& echo xyzzy | "gzip" | "gzip" "-d" RET > ⇒ Success. Thanks for the test. I've committed the appended patch to

Re: Is quotes in tramp-find-inline-compress needed in MS-Windows?

2018-02-01 Thread Michael Albinus
Chris Zheng writes: > Hi all, Hi Chris, > The function `tramp-find-inline-compress' in tramp-sh.el has the code: > > (format > ;; Windows shells need the program file name after > ;; the pipe symbol be quoted if they use forward > ;; slashes as directory separators.

Re: tramp (2.3.3.26.1); Ctrl+C don't sends signal on the remote shell

2017-12-11 Thread Michael Albinus
a...@ua2web.com (Alex V. Koval) writes: > Hello Michael and others, Hi Alex, [your email address doesn't work] > I’ve just upgraded to 26.0.90 recently to do some pre-release testing of > new Emacs and I think I’ve found a bug. > > Expected behavior: > > 1. When I press Ctrl+C twice before

Re: GDB over TRAMP: problem with user I/O

2017-12-10 Thread Michael Albinus
Live System User writes: > Hi Michael, Hi, >> I have no idea how to fix this. Handling remote ttys simply does not >> work as gdb expects. > > Take a look at gdbserver (part of the GDB gdb-gdbserver package > on Gnu/Linux). Thanks for the hint. Unfortunately, while

Re: GDB over TRAMP: problem with user I/O

2017-12-10 Thread Michael Albinus
Vladilen Kozin writes: Hi Vladilen, > Ran into problem with GDB over TRAMP. To me it looks like a bug in TRAMP > but could be that I've missed some settings required for such setup. Hence > posting here instead of bugs for now. First of all, I could reproduce it. But

File name handler for archive files

2017-12-09 Thread Michael Albinus
Hi, it has been requested from time to time in the Emacs ML, so I gave it a try. With commit d338325c2b to the Emacs master repository, I've implemented file name handlers for archive files. Given you have a file /path/to/archive.tar, you can open this now via "C-x C-f /path/to/archive.tar/" in

Tramp 2.3.3

2017-12-08 Thread Michael Albinus
Hello, The Tramp team is happy to announce the release of Tramp 2.3.3. This is mainly a maintenance release. Tramp is a remote file editing package for Emacs. Tramp uses different methods like ssh or scp to access files on remote hosts as if they were local files. Access to the remote file

Re: GDB over TRAMP: problem with user I/O

2017-12-07 Thread Michael Albinus
Vladilen Kozin writes: > Hi. Hi Vladilen, > Cross-posting from emacs-help, since unfrotunately I haven't received > any pointers. This may not even be a bug but some weird interplay > between TRAMP / GDB / IO buffer or TTY. I've seen this already on the emacs-help

Re: Finding buffers visiting TRAMP sudo files

2017-10-28 Thread Michael Albinus
"Basil L. Contovounesios" writes: > Hi Michael, Hi Basil, > FWIW, and from what you have explained, this sounds like it > would involve a disproportionate amount of effort for such > specialised functionality (which would not even necessarily > help much in scratching my

Re: Finding buffers visiting TRAMP sudo files

2017-10-27 Thread Michael Albinus
"Basil L. Contovounesios" writes: Hi Basil, >> Maybe one could argue that the inode number shall equal >> for both files, but the device numbers must differ. > > Hmm, for me on GNU/Linux the device numbers are indeed > different but the inode number is always the same: > >

Re: Finding buffers visiting TRAMP sudo files

2017-10-27 Thread Michael Albinus
"Basil L. Contovounesios" writes: Hi Basil, > ### Issue > > Normally the function find-buffer-visiting (or even the > simpler get-file-buffer) is up to this challenge, but not so > when the file has been opened via TRAMP sudo syntax. First of all: which Emacs / Tramp versions

Re: say how to avoid making TeX files on installation

2017-10-15 Thread Michael Albinus
積丹尼 Dan Jacobson <jida...@jidanni.org> writes: Hi Dan, >>>>>> "MA" == Michael Albinus <michael.albi...@gmx.de> writes: > MA> When running 'make', Tramp avoids calls of programs, which > MA> were not detected during 'configure'. > > c

Re: say how to avoid making TeX files on installation

2017-10-12 Thread Michael Albinus
積丹尼 Dan Jacobson writes: > (info "(tramp) Installation parameters") says > > Warnings let ‘configure’ (and the whole installation process) > continue, but parts of Tramp aren’t installed. This can happen with > missing or wrong versions of ‘texi2dvi’ or

Re: History perhaps is put in the wrong place in the manual

2017-10-11 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > (info "(tramp) Top") says > > * Obtaining Tramp:: How to obtain TRAMP. > * History:: History of TRAMP. > * Installation::Installing TRAMP with your Emacs. > > I'm not sure History belongs in

Re: *'s end up getting rendered throughout the Info page

2017-10-11 Thread Michael Albinus
積丹尼 Dan Jacobson writes: Hi Dan, > (info "(tramp) Obtaining Tramp") says > ] *cd ~/emacs* >^ ^ > These *'s end up getting rendered throughout the Info page. This is produced by texinfo. In tramp.texi, this is marked as @strong{cd ~/emacs}. It looks

<    2   3   4   5   6   7   8   9   10   11   >