From: Thierry Volpiatto <thievol@posteo.net>
To: Juri Linkov <juri@linkov.net>
Cc: Eli Zaretskii <eliz@gnu.org>,
Charles Choi <kickingvegas@gmail.com>,
71401@debbugs.gnu.org
Subject: bug#71401: dired-async-mode breaks dired-vc-rename-file
Date: Mon, 17 Jun 2024 05:49:30 +0000 [thread overview]
Message-ID: <87v828xgnp.fsf@posteo.net> (raw)
In-Reply-To: <86r0cwsvgw.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 16 Jun 2024 19:40:31 +0300")
Juri Linkov <juri@linkov.net> writes:
> tags 71401 wontfix
> close 71401 30.0.50
> thanks
>
>>> **** Title
>>> dired-async-mode breaks dired-vc-rename-file
>>>
>>> **** Description
>>> If dired-vc-rename-file is t and dired-async-mode is enabled, then
>>> renaming a version controlled file such that the version control
>>> software is aware of it will fail.
>>>
>>> **** Environment
>>> Emacs 29.3
>>>
>>> **** Steps to Reproduce
>>> 1. Set dired-vc-rename-file to t
>>> 2. Enable dired-async-mode.
>>> 3. With a git repo, rename a file via Dired.
>>>
>>> **** Expected Result
>>> The renamed file should be reflected in git.
>>>
>>> **** Actual Result
>>> The file is renamed and considered deleted by git.
>>
>> Juri, could you please look into this?
>
> It took me a while to find that dired-async-mode is implemented
> in the package emacs-async. Then tried to rename with Wdired,
> and it works. Then tried to rename with R, and it fails with:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> make-process(:name "emacs" :buffer #<buffer *emacs*> :stderr #<buffer *emacs:err*> ...
> async-start-process("emacs" ...
> apply(async-start-process "emacs" ...
> async-start((lambda nil (require 'cl-lib) (require 'dired-aux) ...
> dired-async-create-files(dired-rename-file "Move" ...
> dired-async--smart-create-files(...
> dired-create-files(dired-rename-file "Move" ...
> dired-do-create-files(move dired-rename-file "Move" nil t "Rename")
> dired-do-rename(nil)
> funcall-interactively(dired-do-rename nil)
> command-execute(dired-do-rename)
>
> Then noticed that this backtrace doesn't include the function
> that uses dired-vc-rename-file. So I disabled dired-vc-rename-file,
> and got the same error.
>
> This means that the bug is not in Emacs and should be reported to the
> maintainers of the emacs-async package.
The error is coming from emacs --batch -l nil ....
which result in (wrong-type-argument stringp nil).
My guess is that you installed async and dired-async by manually loading
the files without adding the directory to load-path, so (locate-library
"async") returns nil.
If you install properly the async package you will have no error
either with dired-vc-rename-file enabled or not.
--
Thierry
next prev parent reply other threads:[~2024-06-17 5:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 17:33 bug#71401: dired-async-mode breaks dired-vc-rename-file Charles Choi
2024-06-15 8:33 ` Eli Zaretskii
2024-06-16 16:40 ` Juri Linkov
2024-06-16 17:25 ` Eli Zaretskii
2024-06-17 5:49 ` Thierry Volpiatto [this message]
2024-06-17 6:13 ` Thierry Volpiatto
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v828xgnp.fsf@posteo.net \
--to=thievol@posteo.net \
--cc=71401@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=juri@linkov.net \
--cc=kickingvegas@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.