bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#30285: dired-do-chmod vs. top line of dired


From: martin rudalics
Subject: bug#30285: dired-do-chmod vs. top line of dired
Date: Sun, 04 Feb 2018 11:02:17 +0100

> Agreed.  Simplicity is the hallmark of Emacs.

Wouldn't this

-  (let* ((files (dired-get-marked-files t arg))
+  (let* ((files (or (dired-get-marked-files t arg)
+                    (user-error "No files specified")))

call for an extra argument to 'dired-get-marked-files' to emit the
user error right there?  If it's TRT in your cases, it might give
coders a heads-up that it's TRT in their cases as well.

martin





reply via email to

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