GNU bug report logs -
#28792
26.0.60; Deleting to a custom trash directory in Dired gives error
Previous Next
Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>
Date: Thu, 12 Oct 2017 03:27:01 UTC
Severity: normal
Tags: fixed
Merged with 28519,
28828
Found in versions 26.0.50, 26.0.60, 27.0.50
Fixed in version 26.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 28792 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thu, Oct 12, 2017 at 9:16 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
> FWIW, I see no problem with the error message, we produce such error
> messages in quite a few other places in fileio.c. The capitalization
> seems okay, too.
>
OK, but it seems non-standard compared to error messages from Elisp land.
Shouldn't
(file-error Non-regular file Is a directory /home/kmodi/.emacs.d/foo)
look like:
file-error: Non-regular file: /home/kmodi/.emacs.d/foo is a directory
- Why those parentheses?
- Why are "N" and "I" capitalized in-between that "sentence".. error
messages are usually sentences without ending in period, right?
- Above instead looks like a list printed with 3 elements.
Also, the error is not-informative.. the user is trying to trash foo/ and
knows that foo/ is a directory.. so how would
(file-error Non-regular file Is a directory /home/kmodi/.emacs.d/foo)
help?
> As for lack of backtrace, that's because the error comes from a C
> primitive.
>
For the lack of better understanding, isn't it possible to set the
"severity" of certain messages to be of Error status (or something like
that), so that a backtrace automatically analogous to what I get on my
above-mentioned debug-on-message setting?
--
Kaushal Modi
[Message part 2 (text/html, inline)]
This bug report was last modified 7 years and 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.