From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#28792: 26.0.60; Deleting to a custom trash directory in Dired gives error Date: Thu, 12 Oct 2017 13:31:49 +0000 Message-ID: References: <83zi8wld5l.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045f8c56a4d0f0055b5990e2" X-Trace: blaine.gmane.org 1507815701 6295 195.159.176.226 (12 Oct 2017 13:41:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 13:41:41 +0000 (UTC) Cc: self@gkayaalp.com, eggert@cs.ucla.edu, 28792@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 15:41:37 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2djp-0008ES-OG for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 15:41:26 +0200 Original-Received: from localhost ([::1]:45613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2djx-00015t-51 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 09:41:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2dbn-0002uD-DS for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 09:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2dbi-0000Ut-Kh for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 09:33:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2dbi-0000Uj-HZ for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 09:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2dbi-0007Yd-8p for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 09:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2017 13:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28792-submit@debbugs.gnu.org id=B28792.150781512828981 (code B ref 28792); Thu, 12 Oct 2017 13:33:02 +0000 Original-Received: (at 28792) by debbugs.gnu.org; 12 Oct 2017 13:32:08 +0000 Original-Received: from localhost ([127.0.0.1]:35027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2daq-0007XN-7k for submit@debbugs.gnu.org; Thu, 12 Oct 2017 09:32:08 -0400 Original-Received: from mail-lf0-f42.google.com ([209.85.215.42]:46705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2dao-0007Ws-CK for 28792@debbugs.gnu.org; Thu, 12 Oct 2017 09:32:06 -0400 Original-Received: by mail-lf0-f42.google.com with SMTP id g70so5950008lfl.3 for <28792@debbugs.gnu.org>; Thu, 12 Oct 2017 06:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7m1s+34YrovfRzVWXiq2al8N0BQ2HiJvgeYO2JECcoE=; b=h2cmduXGXhH9dHUTY3JMti9wJ+W/+3/+M+vEH0ft7aIz80L8NGiqSpuRavquxQi6MI lZmUdOkGHbp4ALARXsnNjbzj0g8wKkDwldgBKkz6lTNxqgxjzn8L7nb5SrZ/BxoAgBso VJdSx565F8QQB6ahkUZYS6EcMroAuXCTj+xeIjnAB8z1EbQtuhG0n3OUgmZ56m7pB6qi Vm+mfDI1NmoaKIUKzeuBugPNoO1cNHlbD4prIPCQgE7eqTTQhdK/bwZ87x2hybmC7/Mt BZ7SZphc0VqRDb6vO8B6VgutHeeECqRIn3+mf5Hkl41VsE5HG9p+U2UxfU/n74uQCxaR yD2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7m1s+34YrovfRzVWXiq2al8N0BQ2HiJvgeYO2JECcoE=; b=I+6AnkI9/QSxNE/qDTFf/8eElASmrkWlPUNDWVku6xLD/CKcpnzmeEYCPUER5G7x1Y CsJ8Mj77L0KFaAS6vTQ2nxfVZq7UE9xIlGd35cQl99ypeSz+dA52cEnyaTQDo/FcZ9lS crwRhqEXvpnCxfUgoh7OgxFJucAhJ02Ek+n7ZUGbPLEs9aat24CdlU1jgZMXtbbxpfHA O11KtbQcidjcPxknvKUOM3a3BcM1Pjwf4k9W14UhM+HwbfDVxDOjUM4OT/rE3Tl3SVEZ ekMn0jKMkb1cXlKKv8GUxl1VDSsjgkoxXexD8j9b+KjkaWmM4tIehW2GipsO13IoG7vk T2Hw== X-Gm-Message-State: AMCzsaUs6WGxyMLS2mtp6flhjQVeJlIkA1GY0AftZODue5wzUvctWENB tR2Cctsh/tkDpbPGxQJe7uKTGlKLnh7pekVBWoo= X-Google-Smtp-Source: AOwi7QBzmCIkrPCujImYgZVCyK45Rk7h8laP82uHCNONPo1EVuPCGky4St9UaLnM6nM0XSVxOH8906gpuF1jqg5XUoU= X-Received: by 10.46.87.12 with SMTP id l12mr148810ljb.44.1507815120488; Thu, 12 Oct 2017 06:32:00 -0700 (PDT) In-Reply-To: <83zi8wld5l.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138275 Archived-At: --f403045f8c56a4d0f0055b5990e2 Content-Type: text/plain; charset="UTF-8" On Thu, Oct 12, 2017 at 9:16 AM Eli Zaretskii 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 --f403045f8c56a4d0f0055b5990e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Oct 12= , 2017 at 9:16 AM Eli Zaretskii <eliz@gn= u.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.=C2=A0 The capitalization<= br> seems okay, too.

OK, but it seems non-s= tandard 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 ho= w would

(file-error Non-regular file Is a director= y /home/kmodi/.emacs.d/foo)=C2=A0

help?
= =C2=A0
As for lack of backtrace, th= at's because the error comes from a C
primitive.

For the lack of better under= standing, isn't it possible to set the "severity" of certain = messages to be of Error status (or something like that), so that a backtrac= e automatically analogous to what I get on my above-mentioned debug-on-mess= age setting?
--

Kaushal M= odi

--f403045f8c56a4d0f0055b5990e2--