emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch: Lazy wdired preprocessing


From: Arthur Miller
Subject: Patch: Lazy wdired preprocessing
Date: Tue, 23 Mar 2021 15:52:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

The original thread seems to have become more of a lisp language thread,
so to make it easier, I made a new one, with more descriptive name.

Attached is new a version of patch. Seems to correctly work with
permissions now. I have also discovered (current-column) function so I
no longer calculate columns in my own code :-).

I have tested on my ext4 file system where my normal system is
installed, and there it works correctly.

I have also tested on one NTFS drive, where I can not change permissions
normally and there is following behaviour, don't know if it is
acceptable or not:

In wdired buffer I can seemingly change permission, but when I save
buffer, then permission is of course not saved and reverted dired buffer
shows correct permission. In Dolphin, it seems to work similar (I can
set pulldown menu in permissions dialog to only read, and press OK, but
it is not saved).

There is also a question what happeneds when one have an empty folder
and switches to wdired buffer. I don't see it handled in old wdired, so
I have added an error condition for that in
wdired-change-to-wdired-mode.

Please test it, there might be some other test condition I haven't
tested. I am attaching both the working file for easy evaluation and
test, and the patch.

best regards
/a

Attachment: 0001-Lazy-wdired-preprocessing.patch
Description: Text Data

Attachment: lazy-wdired.el
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]