all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Charles Choi <kickingvegas@gmail.com>, 71401@debbugs.gnu.org
Subject: bug#71401: dired-async-mode breaks dired-vc-rename-file
Date: Sun, 16 Jun 2024 19:40:31 +0300	[thread overview]
Message-ID: <86r0cwsvgw.fsf@mail.linkov.net> (raw)
In-Reply-To: <86msnmvc5d.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Jun 2024 11:33:02 +0300")

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.





  reply	other threads:[~2024-06-16 16:40 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 [this message]
2024-06-16 17:25     ` Eli Zaretskii
2024-06-17  5:49     ` Thierry Volpiatto
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=86r0cwsvgw.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=71401@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --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.