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#28797: 26.0.90; Improve printing of error on catching file-error in dired Date: Thu, 12 Oct 2017 14:56:08 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e08287c48255640055b5abe5b" X-Trace: blaine.gmane.org 1507820232 15962 195.159.176.226 (12 Oct 2017 14:57:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 14:57:12 +0000 (UTC) To: 28797@debbugs.gnu.org, drew.adams@oracle.com, npostavs@gmail.com, tino.calancha@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 16:57:05 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 1e2ev2-0003JA-EY for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 16:57:04 +0200 Original-Received: from localhost ([::1]:45960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2ev9-0000lU-Oj for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 10:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2ev3-0000js-6X for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 10:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2ev2-0007sx-51 for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 10:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2ev2-0007st-1a for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 10:57:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2ev1-0001aC-Qa for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 10:57:03 -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 14:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" , Drew Adams , Noam Postavsky , Tino Calancha Original-Received: via spool by submit@debbugs.gnu.org id=B.15078202006047 (code B ref -1); Thu, 12 Oct 2017 14:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2017 14:56:40 +0000 Original-Received: from localhost ([127.0.0.1]:36221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2eue-0001ZT-BZ for submit@debbugs.gnu.org; Thu, 12 Oct 2017 10:56:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2euc-0001ZE-Bd for submit@debbugs.gnu.org; Thu, 12 Oct 2017 10:56:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2euV-0007VM-3p for submit@debbugs.gnu.org; Thu, 12 Oct 2017 10:56:33 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2euU-0007V9-Te for submit@debbugs.gnu.org; Thu, 12 Oct 2017 10:56:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2euS-0000OA-V1 for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 10:56:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2euN-0007RD-40 for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 10:56:29 -0400 Original-Received: from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e]:54453) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2euM-0007Qz-WE for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 10:56:23 -0400 Original-Received: by mail-qt0-x22e.google.com with SMTP id z19so14096978qtg.11 for ; Thu, 12 Oct 2017 07:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qk+Hu3kPZY77XXzZXwks3+RzNEEorQA0yjsFNpUs4ag=; b=T1XyWJBkgON0Dmi1HCptadPlvOD6KIbyDXUy8VwfaBe3FxC/tKI3mubi9NMzGtvfit IhgBbVwZCGYUD9tLrIp8wPE7M1WUYFx1i79fJ6kmtt73foWX4WZ9DMOQwIMYCfXmCWN3 MlWSZ8zF92sAyBfRdkAcS/k08J1Yr1E30OUnh1mz+0n+/wsdIJ8pKwOXur9PtHEBc+iX ENWAsJsI2dqx7GvjSAQ1A4gn8n353zTVWaIp+rZ9tAB+GRTjWMXa53UhfJ6sQV+crlGN 4FpyOktKrFmKF5bxKn9agEufgqA5m/8bR87Cs8dchDwCYQysJpJOyP5MzkbfxsETP2bq HK3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qk+Hu3kPZY77XXzZXwks3+RzNEEorQA0yjsFNpUs4ag=; b=bnglNmMaqrWhQSFOCHVyy+Jmi3DtnKxTklMJMvjN0MT3lRzVn2fAeGQ2qdVa2XqaAl Yt9nFgl6GS6Nms4tVv0x+ZqG2RAr0BEXARHzQtxHr63tDlOCj9TQpc/9AxnBAUG4dsPQ vSZfUFHe01bOVqME8xjVZWFxSlGdpBA6Otf3c+CTnoUoUbqNflPnPiIfsuyJl1td6VfI sY1Uy4PDK8oZC7kHjR9ETwU5OXHo2+1U9brXlCj7dIORGHh6UELga68rnvrQtlxq8guO S9icA3LtS9AOQCxOiwhCtwg+d1H9zz6uK+F0H5Ohc5lHWbKnAUzhE37sLnqg3auhrsuU 3mdw== X-Gm-Message-State: AMCzsaWRnMd/zJe7PM7OfROtUaLTSTZpaT+FhuPo6L7eKmg8lMJNpJQQ wzp9/rbAteZaX8wiYqm31b2pjOsTISuWVBRBXKs= X-Google-Smtp-Source: AOwi7QCkQIUQYwhDqmYHubJd4yxaFZ1nG3iy4pS/bYPCMLaFKWBwf2eTfRz+4uf/xV83yUBcjevsEqTOqMXi1FKyN4I= X-Received: by 10.37.102.15 with SMTP id a15mr1889891ybc.389.1507820178853; Thu, 12 Oct 2017 07:56:18 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:138286 Archived-At: --089e08287c48255640055b5abe5b Content-Type: text/plain; charset="UTF-8" Hello, This is a spin-off bug report from https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28792#29 This bug report is to do with: 1. Improving the format of error messages generated by catching error signals from C, so that the errors look almost like readable English instead of a dump of a list. 2. Those errors should generate a backtrace.. right now, a user needs to update the debug-on-message variable to force back traces for such messages which is, first: more cumbersome than doing M-x toggle-debug-on-error and then recreating the error, and second: not a common knowledge. Excerpt from the above referenced debbugs thread for continuity: ===== 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 the below help? (file-error Non-regular file Is a directory /home/kmodi/.emacs.d/foo) ===== -- Kaushal Modi --089e08287c48255640055b5abe5b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

This is a spin-off bug report fr= om=C2=A0https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28792#29
This bug report is to do with:

1. Imp= roving the format of error messages generated by catching error signals fro= m C, so that the errors look almost like readable English instead of a dump= of a list.
2. Those errors should generate a backtrace.. right n= ow, a user needs to update the debug-on-message variable to force back trac= es for such messages which is, first: more cumbersome than doing M-x toggle= -debug-on-error and then recreating the error, and second: not a common kno= wledge.

Excerpt from the above referenced debbugs = thread for continuity:

=3D=3D=3D=3D=3D
<= div style=3D"color:rgb(33,33,33);font-size:13px">OK, but it seems non-stand= ard compared to error messages from Elisp land.

Shouldn't

(file-er= ror 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 director= y

- Why those parentheses?
- Why are "N" and = "I" capitalized in-between that "sentence".. error mess= ages are usually sentences without ending in period, right?
- Above instead looks like a list p= rinted with 3 elements.

Also, the e= rror is not-informative.. the user is trying to trash foo/ and knows that f= oo/ is a directory.. so how would the below help?

(file-error Non-regular file Is a directory /home/kmodi/.ema= cs.d/foo)=C2=A0
=3D= =3D=3D=3D=3D
<= br>

=
--

Kaushal Modi

--089e08287c48255640055b5abe5b--