[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some developement questions
From: |
Michael Albinus |
Subject: |
Re: Some developement questions |
Date: |
Mon, 03 Sep 2018 15:35:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
hw <address@hidden> writes:
Hi,
> Wouldn't that have killed a lot of buffers that do not require the
> change of the autosave directory?
Maybe. It is the last resort; prior calling this you might call
`tramp-cleanup-this-connection' and kill the buffer in question.
>> For further analysis, I would need the Tramp debug buffer. If you set
>> permanently tramp-verbose to 6, relevant information are traced. Well,
>> at least as long Tramp is mulish ...
>
> You could reproduce it maybe: Edit a remote file in /usr/local/bin
> which belongs to micheal:root. Once Emacs tries to create an autosave,
> tramp freaks out because it does not have permission to create the
> autosave file in that place.
I've tried this, with Emacs 27.0.50, and starting Emacs with the "-Q"
option. The file was autosaved in the "/tmp/" directory as it should
(due to the default value of auto-save-file-name-transforms).
Do you have some other settings? Does the problem happen for you, when
you start "emacs -Q"?
>>> So at least for one case, here are the details, but I won't call it a
>>> bug, only something that could be improved upon, like check permissions
>>> before creating backups and prompt what to do when permissions do not
>>> allow to create one, and applying a change of the backup directory right
>>> away to all connections, or prompt the user if the change should be
>>> applied to all of them now.
>>
>> Again, it is not clear what caused the problem. In order to get Tramp
>> improved, I count on users sending the traces.
>
> file permissions
>
> I had to change the ownership of the directory so Emacs was allowed to
> create the autosave file there to get around the problem. After
> changing the autosave location, I could give the directory back to root.
Again, the default directory for remote auto-save files ist "/tmp". If
it is different for you, you might have set your own values.
>>> That was Emacs 24.x, on Centos, so perhaps this has already been
>>> changed.
>>
>> Well, Emacs 26 is out, and the integrated Tramp shall behave
>> better. Yes, this is my hope all the years ...
>
> There's a way to find out :)
Yep.
Best regards, Michael.
- Re: Some developement questions, (continued)
Re: Some developement questions, hw, 2018/09/02
Re: Some developement questions, hw, 2018/09/02
- Re: Some developement questions,
Michael Albinus <=