Re: error while changing file’s mode when saving file with ACL permissions

2024-04-19 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, > I've tested the patch and now it's possible again to edit the remote > files with tramp after changing the option > tramp-warn-only-if-setting-file-attributes-fail to t. Thanks for the feedback. I've pushed the patch to the repositories, will

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-18 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, > Ok I see, a user option would be perfect in that case. Please try the appended patch. Since it changes a macro, you must recompile both tramp.el and tramp-sh.el (in that order). Then try your test, again, setting the new user option

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-18 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, > Would it be an idea to check first if the user can run the chmod > command before calling the tramp-sh-handle-set-file-modes function? Too much hassle, because this would be checked for everybody, with performance degradation. What about a user

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-17 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, > This is the output of the command: > > chmod: changing permissions of ‘/var/www/aaa/index.htm’: Operation not > permitted > tramp_exit_status 1 This doesn't tell us much. Hmm. Could you try to find out, why chmod on that machine does not have

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-17 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, [Pls keep keep tramp-devel@gnu.org in Cc, for the archives] > Here is the output of the tramp debug buffer: Well, let's see. (Next time pls send it as attachment, sending it as plain text adds line formatting, which makes it hard to read) >

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-17 Thread Michael Albinus
Tijs Mallaerts writes: Hi Tijs, > Is it possible to configure tramp so it becomes possible to edit files > that are set up with ACL permissions? Currently when trying to save > such a file the following error is shown: > > tramp-error: Error while changing file’s mode Tramp doesn't do

Tramp 2.6.3

2024-03-31 Thread Michael Albinus
Hello, The Tramp team is happy to announce the release of Tramp 2.6.3. 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 system for editing files, version

Re: tramp readlink slowdown on find-file

2024-03-14 Thread Michael Albinus
Prashant Tak writes: Hi Prashant, > Is there no other way to disable the amount of checking done by tramp? Tramp tries already to minimize the number of checks. It has been optimized over the releases; Tramp 2.7 is the current state. In order to apply improvements, I need to know which Emacs

Re: tramp readlink slowdown on find-file

2024-03-13 Thread Michael Albinus
Prashant Tak writes: Hi Prashant, Pls keep tramp-devel@gnu.org in Cc, for the archives. >> When you connect to the remote host directly via ssh from a shell, does it >> take the same time to call '\readlink --canonicalize-missing /a/b/c/xyz.md'? > > No, that works instantly. Is there a way to

Re: tramp readlink slowdown on find-file

2024-03-13 Thread Michael Albinus
Prashant Tak writes: > Hi Hi Prashant, > while opening a file in tramp, I'm experiencing immense slowdown, > 20+ seconds to open a file. > In the debug buffer I found readlink status check to be consuming ~12 > seconds. Any idea what could be causing this? > > 21:22:47.919689

Re: Review wanted for method for accessing Mock chroots

2024-03-13 Thread Michael Albinus
Tim Landscheidt writes: Hi Tim, >> However: I don't know Mock chroots in detail, but it looks to me like it >> is something what could live in tramp-container.el. What do you think a bout? > > It probably fits quite nicely, but due to my preference for > sticking to distribution packages, I'd

Re: Connection local profile does not change variables

2024-03-11 Thread Michael Albinus
Simon Chevolleau writes: > Hi Michael, Hi Simon, > It looks like my connection profile is indeed set correctly when I > connect to my remote server. > The output looks like this, so I guess this is working at intended, now > I have to figure out why my packages aren't correctly working with

Re: Connection local profile does not change variables

2024-03-10 Thread Michael Albinus
Simon Chevolleau writes: > Hi Michael, Hi Simon, > After looking to local variables using `apropos-local-variable`, it > appears that variables from my connection local profile are not set. > Even by settings this: > (connection-local-set-profiles >nil 'remote-bird) > > What are my best

Re: Connection local profile does not change variables

2024-03-10 Thread Michael Albinus
Simon Chevolleau writes: > Hi TRAMP community, Hi Simon, > I'm trying to set connection local profile work. > I connect to a remote directory through SSH using bookmark. > But when I check the variables, none have changed and > connection-local-criteria is set to nil (indicating that no

Re: Review wanted for method for accessing Mock chroots

2024-02-27 Thread Michael Albinus
Tim Landscheidt writes: > Hi, Hi Tim, > Is there anything blatantly wrong/not backward-compatible/ > not foreward-compatible about it? I saved on (customizable) > variables as it is hard to predict what other users might > want/need to change. Any advice is appreciated. Some few comments

Re: tramp (2.6.0.29.1 nil/nil); Tramp crashes when trying to authenticate ssh with yubikey resident-key that requires user to enter FIDO2 PIN

2024-02-13 Thread Michael Albinus
coder.nov...@mailbox.org writes: Hi, > I have a Yubikey 5 NFC with the USBA port. And the error message now > as I was trying to test for it again suddenly is just gone > now.. unsure why but it works fine now! And no problem, glad I was > able to help get the bug fixed! Good! As said in the

Re: [PATCH] Fix typo in the documentation

2024-02-12 Thread Michael Albinus
Daniel Martín writes: Hi Daniel, > The attached patch fixes a small typo in the TRAMP documentation. Thanks for the patch, I've pushed it to the repositories. Best regards, Michael.

Re: Remote LSP unable to find texlab server

2024-02-12 Thread Michael Albinus
Riccardo Romoli writes: > Michael, Hi Riccardo, > I've been able to solve the issue...even if I do not > understand why...I removed and re-installed some packages, cleared all > the connections and rebooted both my local machine than the severe a > couple of times... Thanks for helping me to

Re: Remote LSP unable to find texlab server

2024-02-09 Thread Michael Albinus
Riccardo Romoli writes: > Good morning Michael, Hi Riccardo, > Did you really start with emacs -Q, and have sent > the *whole* log? > > I'm not an expert emacs user so it has been quite difficult to be able > to run the command you suggested without errors. Due to the spacemacs >

Re: tramp (2.6.0.29.1 nil/nil); Tramp crashes when trying to authenticate ssh with yubikey resident-key that requires user to enter FIDO2 PIN

2024-02-09 Thread Michael Albinus
coder.nov...@mailbox.org writes: Hi, > I tested it today and it does let me authenticate the key! But while it's > asking me to touch the key, it does display the following text in the buffer > ``` > File error: [[Regexp ‘^^M*User presence confirmed[ > ^M]*\|^^M*\(Enter PIN for .*\)[ >

Re: Remote LSP unable to find texlab server

2024-02-08 Thread Michael Albinus
Riccardo Romoli writes: > Hi Michael, Hi Riccardo, > I tried your suggestion but nothing changed. I started a new emacs, > cleared the tramp cache but again the same issue. I attached the log > as you requested, hoping this could help. Let me know. The log looks strange. - It is incomplete.

Remote LSP unable to find texlab server

2024-02-08 Thread Michael Albinus
Riccardo Romoli writes: > Hi, Hi Riccardo, in the future, pls don't use an empty Subject. I've found your message in my junk folder. > I need to setup lsp to work on LaTeX file in a remote machine. I > installed texlab both in local and in remote machine and add the path > to the remote

Re: tramp (2.6.0.29.1 nil/nil); Tramp crashes when trying to authenticate ssh with yubikey resident-key that requires user to enter FIDO2 PIN

2024-02-03 Thread Michael Albinus
Michael Albinus writes: Hi, >> Also here's the traces attached as a file. > > Thanks. Unfortunately, you haven't send the full traces, so I cannot see > whether the messages "Confirm user presence for key ...:" and "Enter > PIN:" disturb each other. Hmm.

Re: tramp (2.6.0.29.1 nil/nil); Tramp crashes when trying to authenticate ssh with yubikey resident-key that requires user to enter FIDO2 PIN

2024-01-30 Thread Michael Albinus
 Von meinem iPad gesendet > Am 30.01.2024 um 16:08 schrieb coder.nov...@mailbox.org: > Also to add, if I disable x11-sshaskpass, because of that error still > showing in the buffer, I am unable to enter the pin and it makes Tramp and > Emacs lock up > >> On 01/30/2024 8:21 AM CST

Re: tramp (2.6.0.29.1 nil/nil); Tramp crashes when trying to authenticate ssh with yubikey resident-key that requires user to enter FIDO2 PIN

2024-01-28 Thread Michael Albinus
coder.nov...@mailbox.org writes: > Sorry for the delay! Here's the output > > ssh server ... Thanks, that helps. Tramp 2.6.2 (Emacs 29.2) supports already OTP input, as it would be appropriate for the PIN. However, it doesn't know the PIN prompt as used by Yubikey yet. Could you pls install

Re: tramp (2.6.0.29.1 nil/nil); Tramp crashes when trying to authenticate ssh with yubikey resident-key that requires user to enter FIDO2 PIN

2024-01-28 Thread Michael Albinus
coder.nov...@mailbox.org writes: Hi, > I'm using my Yubikey 5 to authenticate ssh on my server. The resident > key I created for it requires both the FIDO2 PIN and touching the key > to authenticate it. When I try to log into the server with Tramp, the > program immediately crashes with `File

Re: Unexpected "recover" from non-existing tramp-login-program

2024-01-28 Thread Michael Albinus
Tim Landscheidt writes: Hi Tim, >>> while working with docker-tramp 0.1.1 and not setting >>> docker-tramp-docker-executable correctly on a Fedora system, > >> First of all, docker-tramp from M(?)ELPA is deprecated. Since Tramp 2.6 >> (Eamcs 29), Tramp has an own implementation for docker

Re: Multi-hop completion with TRAMP 2.5.4-pre/Emacs 28.3?

2024-01-26 Thread Michael Albinus
Tim Landscheidt writes: > Hi, Hi Tim, > lisp/net/tramp-container.el appears to have code introduced > in Emacs 29.1 (?) that allows for multi-hop completion. No, it is added to Tramp 2.7 (Emacs 30). See new user option tramp-completion-multi-hop-methods, which tells for which methods this is

Re: Unexpected "recover" from non-existing tramp-login-program

2024-01-26 Thread Michael Albinus
Tim Landscheidt writes: > Hi, Hi Tim, > while working with docker-tramp 0.1.1 and not setting > docker-tramp-docker-executable correctly on a Fedora system, First of all, docker-tramp from M(?)ELPA is deprecated. Since Tramp 2.6 (Eamcs 29), Tramp has an own implementation for docker

Re: tramp-parse-passwd does not seem to work if getent is available?

2024-01-22 Thread Michael Albinus
Tim Landscheidt writes: > Hi, Hi Tim, Thanks for the report! > Looking at the code: > > | (defun tramp-parse-passwd (filename) > | "Return a list of (user host) tuples allowed to access. > | Host is always \"localhost\"." > | (with-tramp-connection-property nil "parse-passwd" > | (if

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2024-01-08 Thread Michael Albinus
"Kirill A. Korinsky" writes: > Hi Michael, Hi Kirill, >> tramp-sh.el is loaded dynamically. It overrides your patch. So rather call >> >> --8<---cut here---start->8--- >> emacs -Q -l tramp -l tramp-sh -l >>

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2024-01-08 Thread Michael Albinus
"Kirill A. Korinsky" writes: > Hi Michael, Hi Kirill, > When I run: > >> emacs -Q -l tramp --eval '(load-file >> "~/Downloads/patched-tramp-bundle-read-file-names.el")' >> /ssh:playground.island.local: tramp-sh.el is loaded dynamically. It overrides your patch. So rather call

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2024-01-08 Thread Michael Albinus
"Kirill A. Korinsky" writes: Hi Kirill, >> I don't understand. Does this happen when remote /tmp is not writable? >> Tramp shall show you the error message, and cease to work - at least >> that's the intention of the patch. > > After your patch it works without any error in Message buffer. > >

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2024-01-08 Thread Michael Albinus
"Kirill A. Korinsky" writes: > Hi Michael, Hi Kirill, >> On 8. Jan 2024, at 11:37, Michael Albinus wrote: >> >> The error "/bin/sh: can't create temporary file /tmp/shZPInbtKR: >> Permission denied" isn't propagated properly by Tramp. Could you,

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2024-01-08 Thread Michael Albinus
"Kirill A. Korinsky" writes: > Greetings, Hi Kirill, > When I run emacs your way I have: > > In *Messages* >> For information about GNU Emacs and the GNU system, type C-h C-a. >> Tramp: Opening connection nil for playground.island.local using ssh...failed >> signal: Wrong type argument: "listp

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2024-01-07 Thread Michael Albinus
"Kirill A. Korinsky" writes: > Hi Michael, Hi Kirill, > I've achieved that on OpenBSD where I've switched /tmp to ramdisk. > > It uses so-called mfs driver which inherits permissions from the > mountpoint. That sounds a little bit too expansive for my test environment. I've tried to

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2024-01-07 Thread Michael Albinus
"Kirill A. Korinsky" writes: > Greetings, Hi Kirill, > I can easy reproduce this error by remove write access to /tmp folder on > remote host like that: > > ssh some.host sudo chmod -w /tmp Which kind of remote machine do you use? I cannot apply this, neither on a remote Ubuntu, a remote

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2024-01-06 Thread Michael Albinus
"Kirill A. Korinsky" writes: Hi Kirill, >>> Meanwhile I was able to localise the issue: permission to /tmp on server >>> side. >>> As soon as I fixed it and my user may write into it, everything works fine. >> >> Good to know there's no bug. Thanks for letting us know. > > I really think that

Re: Tramp 2.7.0

2024-01-06 Thread Michael Albinus
Jim Porter writes: Hi Jim, >> The Tramp team is happy to announce the release of Tramp 2.7.0. > > I noticed that this version doesn't seem to be on GNU ELPA (the latest > version I see is Tramp 2.6.2.0). I suppose that's intentional, since > the announcement for 2.6.2 mentions ELPA, and this

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2023-12-31 Thread Michael Albinus
"Kirill A. Korinsky" writes: > Greeting, Hi Kirill, > Meanwhile I was able to localise the issue: permission to /tmp on server side. > > As soon as I fixed it and my user may write into it, everything works fine. Good to know there's no bug. Thanks for letting us know. > wbr, Kirill Best

Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

2023-12-31 Thread Michael Albinus
"Kirill A. Korinsky" writes: > Greetings, Hi Kirill, > I'd like to report that I can't connect to the same server that I've > used for a couple of days. > > An attempt to read anything from via C-c f /ssh:tramp-test-server: fails > as below. I've created unique record at /etc/hosts for this

Tramp 2.7.0

2023-12-30 Thread Michael Albinus
Hello, The Tramp team is happy to announce the release of Tramp 2.7.0. 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 system for editing files, version

Tramp 2.6.2

2023-12-30 Thread Michael Albinus
Hello, The Tramp team is happy to announce the release of Tramp 2.6.2. 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 system for editing files, version

Re: Is there any way to make direct-async-process support tramp-remote-path?

2023-12-22 Thread Michael Albinus
Liu Bo writes: > Hi, Hi, > I found direct-async-process really make tramp faster(especially > magit), but since it dose not use tramp-remote-path so I can't make > command that need extra programs work, like eglot or > consult-ripgrep(says command not found). > > So is there any way to make

Re: Is there any way to make direct-async-process support tramp-remote-path?

2023-12-18 Thread Michael Albinus
Liu Bo writes: Hi, > Hi, I found direct-async-process really make tramp faster(especially > magit), but since it dose not use tramp-remote-path so I can't make > command that need extra programs work, like eglot or > consult-ripgrep(says command not found). > > So is there any way to make

Re: tramp (2.7.0-pre master/463cd87f0590970cfd2918ba7028304e0f712001); tramp-signal-process doesn't accept string arguments

2023-11-30 Thread Michael Albinus
Philipp Stephani writes: Hi Philipp, > That works in all cases I've tested, thanks! Thanks for the feedback. I've pushed it to the Tramp repository, branches tramp-2-6-stable and master. It will appear with Tramp 2.6.2 on GNU ELPA, later this year. I've pushed it also to the Emacs master

Re: tramp (2.7.0-pre master/463cd87f0590970cfd2918ba7028304e0f712001); tramp-signal-process doesn't accept string arguments

2023-11-30 Thread Michael Albinus
Philipp Stephani writes: Hi Philipp, > Almost, but one case is still missing. Try: > > emacs -Q -batch -eval '(progn (require (quote tramp)) (let ((proc > (start-process "sleep" nil "sleep" "60"))) (signal-process (number-to-string > (process-id proc)) (quote ABRT' > > This will fail

Re: tramp (2.7.0-pre master/463cd87f0590970cfd2918ba7028304e0f712001); tramp-signal-process doesn't accept string arguments

2023-11-29 Thread Michael Albinus
Philipp writes: Hi Philipp, > The function `tramp-signal-process' should accept a process name as a > string (to be converted to a process via `get-process') or a process ID > converted to a string, as documented for `signal-process'. Yep. What about the appended patch? Best regards, Michael.

Re: tramp (HEAD/b20b7910b413c13352213d37cac8e948ad554dc3); CR-LF woes again — PATCH ATTACHED

2023-11-22 Thread Michael Albinus
Dominique Quatravaux writes: Hi Dominique, > --8<---cut here---start->8--- > (when (search-forward-regexp (rx (not space)) > (line-end-position) t) > --8<---cut here---end--->8--- > > Could

Re: tramp (HEAD/b20b7910b413c13352213d37cac8e948ad554dc3); CR-LF woes again — PATCH ATTACHED

2023-11-22 Thread Michael Albinus
Dominique Quatravaux writes: Hi Dominique, > When accessing some file over the /kubernetes: Tramp connection type, > browsing goes sideways the instant I am done typing in the “hostname” > (i.e. in this case, the pod name). It appears that for some reason or > other, the CR/LF situation is

Re: Orderless matches all TRAMP methods

2023-11-17 Thread Michael Albinus
Michael Albinus writes: Hi Peter, >> I experience the following problem when trying to complete local filenames >> when TRAMP is loaded. >> >> This isn’t correct, since none of these match "/zzz". > > Thanks, I can reproduce it. I'll debug next days (

Re: Orderless matches all TRAMP methods

2023-11-15 Thread Michael Albinus
Peter Oliver writes: Hi Peter, > I experience the following problem when trying to complete local filenames > when TRAMP is loaded. > > In "emacs-29.1.90 -Q", I run: > > (package-initialize) > (require 'orderless) > (setq completion-styles '(orderless)) > > Then, I type: > > C-x C-f C-a C-k

Re: tramp (2.6.0.29.1) : incorrect parsing of group with "-" in name

2023-10-27 Thread Michael Albinus
brickviking writes: Hi Gaël & brickviking, > After tinkering with this, I can confirm the initial bug, which > affects me much like it does Gael. My user is a member of groups, one > of which has a hyphen in it. > /bin/id: > uid=1001(viking) gid=1001(viking) groups=1001(viking),27(sudo),29 >

Re: Connection local profiles uses default instead of created one

2023-10-23 Thread Michael Albinus
Simon Chevolleau writes: > Dear TRAMP community, Hi Simon, > I'm trying to figure out how to set connection local profiles properly. > The problem is, when connecting through ssh using TRAMP, it never uses > the profile I want. When a connection-local variable is set in different profiles (as

Re: Installing TRAMP with package.el fails on startup

2023-10-17 Thread Michael Albinus
Martin Kjær Jørgensen writes: > Hey, Hi Martin, > I'm using 'GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, > cairo version 1.16.0) of 2023-08-30, modified by Debian' with ... > > (setq package-install-upgrade-built-in t) > > ... set in order to update built-in packages.

Re: Strange behavior of newline code

2023-10-09 Thread Michael Albinus
Takahiro OHKUBO writes: Hi Takahiro, > I have updated Emacs from 28.2 to 29.1 and when editing a file > with unix newline code using tramp via ssh, the newline code is > forced to be "^M". This behavior was not seen in Emacs 28.2. This sounds like bug#64164 / bug#65022. It will be fixed in

Re: tramp (2.6.0-pre master/b30b33ed9b3cdacecebef73ad1131f03c635de7a); tramp over MFA/totp

2023-09-16 Thread Michael Albinus
Randy Yates writes: > Michael, Hi Randy, > Thank you. The patch worked perfectly. Thanks for the feedback. I've pushed the patch, slightly changed and added documentation, to the repositories. Will appear with Emacs 29.2. Will also be part of the next GNU ELPA Tramp release, scheduled later

Re: tramp (2.6.0-pre master/b30b33ed9b3cdacecebef73ad1131f03c635de7a); tramp over MFA/totp

2023-09-15 Thread Michael Albinus
Randy Yates writes: Hi Randy, > My organization has recently enabled MFA/totp over ssh on all our linux > systems. We are using JumpCloud and it was apparently configured by > JumpCloud automatically when they turned MFA on. > > I am able to ssh from one linux box (ubuntu 18.04)

Re: Reopening ssh file with sudo

2023-09-10 Thread Michael Albinus
Joseph Garvin writes: Hi Joseph, > That hangs for me too. I set tramp-verbose to 10, then did a C-g, got > this trace: You've tried it with the running Emacs instance. Could you pls start a new Emacs instance like "emacs -Q -l tramp"? Then eval the code I've sent, and rerun your tests. If it

Re: Reopening ssh file with sudo

2023-09-10 Thread Michael Albinus
Joseph Garvin writes: Hi Joseph, > Yeah, I haven't tried automating tramp much before so I'm not super > familiar with what best practice is here. I'm on 29.1. OK, so I've used the opportunity to write a more stable command `tramp-revert-buffer-with-sudo'. Works for buffers visitng a file, and

Re: Reopening ssh file with sudo

2023-09-10 Thread Michael Albinus
Joseph Garvin writes: Hi Joseph, > I originally posted this on the emacs stack exchange > (https://emacs.stackexchange.com/questions/78768/reopen-with-sudo-command-that-works-through-tramp) > but they suggested I try here. > > I have tried to define this command: > > ``` > (defun

Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent)

2023-09-09 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > Thank you, this confirmed that the tramp version is shipped by the > emacs system pacakge (/usr/share/emacs/29.1/lisp/net/tramp.elc) and > not the doom framework (~/.config/emacs) like I originally thought (I > might have looked at the "other versions" field

Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent)

2023-09-09 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > Thank you, I've upgraded doom's packages to the latest version, which > bumped tramp up to version 2.6.1.1. > > I've tried looking for a way to upgrade it to 2.6.1.2 (package is > managed by straight.el and doom's documentation doesn't mention that > you can

Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent)

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > Then I've tried connecting with all the emacs plugins loaded (Doom > Emacs framework, helm), but sadly something is still giving a > "tramp-error - wrong-type-argument "listp i". Do you know if there are > other options to isolate emacs before loading all the

Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent)

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > Sure, please see the (truncated) debug buffer at log level 10. Yes, the debug buffer tells us more. > This time emacs didn't unfreeze immediately after removing the gpg > card. It prompted for the PIN and unfroze on the second attempt. I > don't know

Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent)

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: > Apologies Micheal for sending this message twice - I'm new to mailing > lists and I forgot to add CC. Sorry, I've seen this later only. So you're brave and keep the Cc :-) Best regards, Michael.

Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent)

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > Thank you, it seems to get stuck on a few tramp functions freezing > emacs - however it returns after I physically remove the gpg smart > card. Please see the truncated output from the debug buffer: Please send next time the debug buffer as attachment, and

Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent)

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: > Hi Hi Daniel, > I'm wondering if anyone is able to use Tramp with a gpg smart card or > a gpg agent that manages the ssh socket (so acts as an ssh agent)? > > For me it fails with file-error "Tramp failed to connect. If this > happens repeatedly, try\n ‘M-x

Re: Reopening ssh file with sudo

2023-09-07 Thread Michael Albinus
Joseph Garvin writes: Hi Joseph, > I originally posted this on the emacs stack exchange > (https://emacs.stackexchange.com/questions/78768/reopen-with-sudo-command-that-works-through-tramp) > but they suggested I try here. "They" is me :-) > I have tried to define this command: > > ``` >

Re: [PATCH] Provide completion candidates for remote containers over a TRAMP connection

2023-09-04 Thread Michael Albinus
Gene Goykhman writes: > Hi Michael, Hi Gene, > Here is my proposed patch (against Emacs master) for adding > documentation for `tramp-completion-multi-hop-methods' to tramp.texi > and also announcing the update in etc/NEWS. > > Please feel free to edit as you see fit or I'm happy to make any

Re: [PATCH] Provide completion candidates for remote containers over a TRAMP connection

2023-08-31 Thread Michael Albinus
Gene Goykhman writes: > Hi Michael, Hi Gene, >> > I think this is a great idea. What about calling the variable >> > `tramp-completion-multi-hop-methods', with a default of '("docker" >> > "podman")? I am not confident including "kubernetes" here as I have >> > not tested it but could do so if

Re: [PATCH] Provide completion candidates for remote containers over a TRAMP connection

2023-08-31 Thread Michael Albinus
Gene Goykhman writes: > Hi Michael, Hi Gene, >> For the futere I could imagine more different values. t and nil are fine >> ATM, but if there are more methods which support this feature, it could >> be a list. '("docker" "podman" "kubernetes") would enable this for the >> respective methods,

Re: tramp (2.7.0-pre HEAD/dc0839de9b3654837ec8f5e66d187319b9eecd6f); bracktrace when saving modified remote file

2023-08-29 Thread Michael Albinus
Gregor Zattler writes: Hi Gregor, > When I saved a modified buffer to it*'s associated > remote file (via ssh on an Univention Corporate Server > (debian/buster)), the file was saved but I got a > backtrace, see below. > > I tried to reproduce (modify, save) with tramp-verbose > set to 9 but no

Re: [PATCH] Provide completion candidates for remote containers over a TRAMP connection

2023-08-29 Thread Michael Albinus
Gene Goykhman writes: > Hi Michael, Hi Gene, > I have also incorporated your other suggestions and added a `defcustom > tramp-completion-remote-containers' to allow the user to turn this > feature on. It is off by default, but I can change this if you feel it > appropriate. Well, yes. I

Re: [PATCH] Provide completion candidates for remote containers over a TRAMP connection

2023-08-28 Thread Michael Albinus
Gene Goykhman writes: Hi Gene, >> No. Don't do that. Instead, bind tramp-last-hop-directory to nil in that >> let-clause: > > I'm not sure how best to handle the lifetime of > tramp--last-hop-directory. It needs to be explicity set to nil in > tramp-completion-handle-file-name-all-completions

Re: [PATCH] Provide completion candidates for remote containers over a TRAMP connection

2023-08-23 Thread Michael Albinus
Gene Goykhman writes: Hi Gene, I've seen your name on file at the FSF. Congratulations! > Following up on > https://lists.gnu.org/archive/html/tramp-devel/2023-08/msg1.html, I have > prepared a patch to add remote container completion support to TRAMP. Thanks for this! As usual, I have

Re: emacs dired + tramp seeing invalid characters

2023-08-19 Thread Michael Albinus
Michael Albinus writes: Hi Kiran, >> I am using TRAMP with emacs, when use dired to browse files on remote >> machine i see lot of invalid characters >> for example >> for docs i see [01;34mdocs [0m/ >> similarly for home i see [01;34mhome [0m/ > > This is c

Re: emacs dired + tramp seeing invalid characters

2023-08-19 Thread Michael Albinus
kiran dasoju writes: > Hi Hi Kiran, > I am using TRAMP with emacs, when use dired to browse files on remote > machine i see lot of invalid characters > for example > for docs i see [01;34mdocs [0m/ > similarly for home i see [01;34mhome [0m/ This is colrized ls output ("[01;34m" is blue). Do

Re: Tramp over eshell local vs. remote directories

2023-08-13 Thread Michael Albinus
Reza Housseini writes: Hi Reza, >> Yes, this is intended. "cd" is a built-in command of eshell, and it >> interprets the directory name like a Lisp file name. "~" is your local >> home directory. If you do "C-x C-f ~", you will always open your local >> home directory, whereever you call it

Re: Slow initial connection to remote

2023-08-12 Thread Michael Albinus
adam bobrow writes: > Hey Michael, Hi Adam, > Can't thank you enough, I didn't expect that level of support! I hope > you didn't spend too much time going over that huge log :) No problem. These days I'm working on Tramp optimizations, so your request was a nice opportunity to check the

Re: Tramp over eshell local vs. remote directories

2023-08-11 Thread Michael Albinus
Reza Housseini writes: > Hi Michael Hi Reza, > I open a virgin emacs with emacs -Q and then connect to a remote > server via dired: C-x d /ssh:user@remote.server:/some/directory and > from there open a eshell M-x eshell. > Now when I change directory in the eshell with cd ~ I go back to my >

Re: Slow initial connection to remote

2023-08-10 Thread Michael Albinus
adam bobrow writes: > HI, Hi Adam, > While connecting a remote host using Tramp, I encounter an > indeterminate 20 seconds delay after a successful initial connection. Yes. You seem to have a slow connection to that host (no surpise going to AWS), but Tramp must support this as well. > From

Re: tramp (2.6.1 HEAD/3ff676c2f98cb6c47fecb37f31a589a910dd3876); docker-container ssh multi-hop support

2023-08-07 Thread Michael Albinus
Gene Goykhman writes: > Hi Michael, Hi Gene, >> Well, you disable this for all completions. I don't know whether we want >> this. It is useful for the very first hop, and not only for the docker >> method, but for all methods. > > I agree, and it doesn't seem that TRAMP currently allows that

Re: tramp (2.6.1 HEAD/3ff676c2f98cb6c47fecb37f31a589a910dd3876); docker-container ssh multi-hop support

2023-08-07 Thread Michael Albinus
Michael Albinus writes: Hi, >> I've made some progress and have published a gist with my current >> approach to multi-hop Docker container completion in TRAMP. I'd >> appreciate comments and suggestions, and whether this is a reasonable >> direction to take or if I'm mis

Re: tramp (2.6.1 HEAD/3ff676c2f98cb6c47fecb37f31a589a910dd3876); docker-container ssh multi-hop support

2023-08-07 Thread Michael Albinus
Gene Goykhman writes: Hi Gene & Kristofer, Sorry for the delay, but bug fixing has priority ... > I've made some progress and have published a gist with my current > approach to multi-hop Docker container completion in TRAMP. I'd > appreciate comments and suggestions, and whether this is a

Re: Errors when installing Tramp from ELPA on Emacs 29.1

2023-08-02 Thread Michael Albinus
Michael Albinus writes: Hi Jim, >> When installing Tramp from GNU ELPA on Emacs 29.1, I get a bunch of >> errors (see the attached "tramp-compile.log"). In addition, when I >> start Emacs up the next time, I get this error in the *Messages* >> buffer: >&

Re: tramp (2.6.1 HEAD/3ff676c2f98cb6c47fecb37f31a589a910dd3876); docker-container ssh multi-hop support

2023-07-31 Thread Michael Albinus
Gene Goykhman writes: Hi Gene & Kristofer, > I've made some progress and have published a gist with my current > approach to multi-hop Docker container completion in TRAMP. I'd > appreciate comments and suggestions, and whether this is a reasonable > direction to take or if I'm missing

Re: Errors when installing Tramp from ELPA on Emacs 29.1

2023-07-31 Thread Michael Albinus
Jim Porter writes: Hi Jim, > When installing Tramp from GNU ELPA on Emacs 29.1, I get a bunch of > errors (see the attached "tramp-compile.log"). In addition, when I > start Emacs up the next time, I get this error in the *Messages* > buffer: > > Error loading autoloads: (void-function

Re: tramp (2.7.0-pre master/27944247d161f0ed65bbb34959c4493f7984987a); Error in remote grep-find from Windows host

2023-07-27 Thread Michael Albinus
Richard Copley writes: Hi Richard, >> Thanks for the report and the analysis! Could you pls check, whether the >> appended patch fixes this? > > Thank you. Yes, that works. Thanks for the feedback. I've pushed the fix to the repositories. Best regards, Michael.

Re: tramp (2.7.0-pre master/27944247d161f0ed65bbb34959c4493f7984987a); Error in remote grep-find from Windows host

2023-07-27 Thread Michael Albinus
Richard Copley writes: Hi Richard, > Recipe starting from 'emacs -Q', on Windows assuming a PuTTy session > called "session" is configured: > > C-x C-f /plink:session:/tmp RET > M-x grep-find RET > x RET > > This occurs because 'null-device' is let-bound to nil in 'grep-find', > and this is not

Re: tramp (2.6.1 HEAD/3ff676c2f98cb6c47fecb37f31a589a910dd3876); docker-container ssh multi-hop support

2023-07-24 Thread Michael Albinus
Gene Goykhman writes: > Hello and thank you for making TRAMP amazing! Hi Gene, > I don't know whether this is a bug or currently unsupported > functionality, but I am trying to get docker-container support through an > ssh connection and it is not working. docker-container works fine for >

Re: [EXTERNAL] Re: tramp (2.5.2.28.1 nil/nil); stdin is not a tty

2023-07-11 Thread Michael Albinus
"Ali, Md *" writes: Hi, pls keep tramp-devel in CC, for the archives. > I was trying to connect to docker container. > /docker:containerid:/home > > And I got error > docker exec -it container_id sh && exit || exit > stdin is no a tty > exit > > I am running emacs 28.1 on windows 10. You are

Re: tramp (2.5.2.28.1 nil/nil); stdin is not a tty

2023-07-11 Thread Michael Albinus
"Ali, Md *" writes: Hi, could you pls be more verbose? What have you done, and when did you see the error message? Best regards, Michael.

Tramp 2.6.1

2023-06-29 Thread Michael Albinus
Hello, The Tramp team is happy to announce the release of Tramp 2.6.1. 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 system for editing files, version

Re: tramp (2.6.0.29.1 nil/nil); Provides option to disable shortened multi-hop tramp file name

2023-06-21 Thread Michael Albinus
Warren Lynn writes: > Hi Michael, Hi Warren, > I verified your latest patch works. Thanks a lot for your quick > action. Thanks for the feedback. I've pushed the patch to the Tramp and Emacs repositories. It will appear on GNU ELPA with Tramp 2.6.1, scheduled for next week. And also, months

Re: tramp (2.6.0.29.1 nil/nil); Provides option to disable shortened multi-hop tramp file name

2023-06-21 Thread Michael Albinus
Warren Lynn writes: > Hi Michael, Hi Warren, > I actually put in a similar patch as yours myself, and found that is > not enough. The tricky part is when tramp-make-tramp-file-name is > called by tramp-make-tramp-hop-name, the hop name must be omitted (set > to nil). Otherwise, we will get

Re: tramp (2.6.0.29.1 nil/nil); Provides option to disable shortened multi-hop tramp file name

2023-06-20 Thread Michael Albinus
Michael Albinus writes: Hi Warren, >> Again, I was upgrading from Emacs 26.3 to 29.0.91 (Linux), and found >> shortened multi-hop tramp file names are mandatory now. I am sure many >> people like this feature, but my own preference is to have every >> multi-hop tr

Re: tramp (2.6.0.29.1 nil/nil); tramp-sh-handle-get-home-directory should handle user name better

2023-06-20 Thread Michael Albinus
Warren Lynn writes: Hi Warren, > Thanks for explaining the rationale behind all of this. Right now the > hack of overriding " tramp-sh-handle-get-home-directory " works for my > current need, so I will take that path for now (that's why we all love > Emacs, right? :-) ) Great, so I guess this

Re: tramp (2.6.0.29.1 nil/nil); tramp-sh-handle-get-home-directory should handle user name better

2023-06-20 Thread Michael Albinus
Warren Lynn writes: Hi Warren, > But regarding the concept of "user" and "home directory", I have some > different opinions. > > 1. I support the idea of expanding the tramp syntax so it can cover > wider cases, such as k8 namespace (or even context?) mentioned in your > email. As much as I

Re: tramp (2.6.0.29.1 nil/nil); Provides option to disable shortened multi-hop tramp file name

2023-06-20 Thread Michael Albinus
Warren Lynn writes: Hi Warren, > Again, I was upgrading from Emacs 26.3 to 29.0.91 (Linux), and found > shortened multi-hop tramp file names are mandatory now. I am sure many > people like this feature, but my own preference is to have every > multi-hop tramp file name to be self-contained,

  1   2   3   4   5   6   7   8   9   10   >