unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44343: 28.0.50; wdired: spurious error message when changing permissions
@ 2020-10-31 14:38 Michael Heerdegen
  2020-10-31 15:45 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Heerdegen @ 2020-10-31 14:38 UTC (permalink / raw)
  To: 44343


Hello,

here is the recipe:

#+begin_src emacs-lisp
(require 'wdired)
(setq wdired-allow-to-change-permissions 'advanced)
#+end_src

Then visit some (writable) directory with dired, M-x
wdired-change-to-wdired-mode, and then change a permission bit of some
file.  Then C-c C-c.  I get this error message:

  1 rename actions failed--type ? for details

*Dired log* contains:

| chmod 416 ‘/home/micha/arena.result’ failed
|  
| 1 rename actions failed

Actually there is no need for the error message; changing permission
bits works fine, it succeeds without problems.

But when I read the implementation of `wdired-do-perm-changes'
correctly, it uses the return value of `set-file-modes' to decide
whether setting modes succeeded.  This function always returns nil,
however.

The second, minor issue is that a problem with changing permission bits
is reported as a failed "rename action".


TIA,

Michael.



In GNU Emacs 28.0.50 (build 85, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0)
 of 2020-10-31 built on drachen
Repository revision: f9304de9e09ae621e8790b4f45ab716c43485ce9
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux bullseye/sid






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#44343: 28.0.50; wdired: spurious error message when changing permissions
  2020-10-31 14:38 bug#44343: 28.0.50; wdired: spurious error message when changing permissions Michael Heerdegen
@ 2020-10-31 15:45 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2020-10-31 15:45 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 44343

On Okt 31 2020, Michael Heerdegen wrote:

> But when I read the implementation of `wdired-do-perm-changes'
> correctly, it uses the return value of `set-file-modes' to decide
> whether setting modes succeeded.  This function always returns nil,
> however.

Right, it reports failures via error.

> The second, minor issue is that a problem with changing permission bits
> is reported as a failed "rename action".

I have removed "rename" from the message, since wdired can already
perform three different types of actions.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-31 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-31 14:38 bug#44343: 28.0.50; wdired: spurious error message when changing permissions Michael Heerdegen
2020-10-31 15:45 ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).