From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: Reporting error to user... Date: Mon, 04 Mar 2013 01:09:33 +0530 Message-ID: <87k3po1de2.fsf@gmail.com> References: <87fw0cmht6.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362339599 28005 80.91.229.3 (3 Mar 2013 19:39:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Mar 2013 19:39:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Oleksandr Gavenko Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 03 20:40:23 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UCElh-0006oe-RV for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Mar 2013 20:40:21 +0100 Original-Received: from localhost ([::1]:43709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCElM-0006F4-Hz for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Mar 2013 14:40:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCEl7-0006B3-FR for help-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:39:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCEl6-0007ua-F4 for help-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:39:45 -0500 Original-Received: from mail-pb0-f52.google.com ([209.85.160.52]:58986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCEl6-0007uU-8m for help-gnu-emacs@gnu.org; Sun, 03 Mar 2013 14:39:44 -0500 Original-Received: by mail-pb0-f52.google.com with SMTP id ma3so2652354pbc.25 for ; Sun, 03 Mar 2013 11:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=rZeNOzYSjp+GVyBX8TboSnnJ32ddrehHQjIBTPGK8LE=; b=uf31hT92uMwl0wPA6ZVvJASRrKoizvV0MsEyID+gh3jMZ9hxVCPzggAYxAKkaPi0M4 pkNV5ZpItkyW79HNBumiXEqXNOtaKwDrFs+Dw93muibQXuD+j6dnPF0lp89TKT7iNoQo +PueZ8EwmuZOrrZDrGM14maa/pb+WZr0CuRV8uM9X9cENg16znTsvAz+NJWHGwj2iXKU 3rRg9QzmjXxGiSnn5wxnKd7GFZTwDveoUmjA/d1Nd/hcvBYYFhsiTYsM2QUkC69JtCu/ ZzTNFXprqKMUAby6dO1yAiKYmGD+mKx0cBmhHBoEzeeYAmfncyvGeltBwDcWTcW5aJNg mI0A== X-Received: by 10.66.144.234 with SMTP id sp10mr29062748pab.166.1362339583525; Sun, 03 Mar 2013 11:39:43 -0800 (PST) Original-Received: from debian-6.05 ([115.242.155.185]) by mx.google.com with ESMTPS id gf6sm19579748pbc.24.2013.03.03.11.39.40 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 11:39:42 -0800 (PST) In-Reply-To: <87fw0cmht6.fsf@gavenkoa.example.com> (Oleksandr Gavenko's message of "Sun, 03 Mar 2013 20:58:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.52 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89333 Archived-At: Last couple of sentences down below may interest you. ,---- From (info "(elisp) Signaling Errors") | | -- Function: user-error format-string &rest args | This function behaves exactly like `error', except that it uses | the error symbol `user-error' rather than `error'. As the name | suggests, this is intended to report errors on the part of the | user, rather than errors in the code itself. For example, if you | try to use the command `Info-history-back' (`l') to move back | beyond the start of your Info browsing history, Emacs signals a | `user-error'. Such errors do not cause entry to the debugger, | even when `debug-on-error' is non-`nil'. *Note Error | Debugging::. | `---- Oleksandr Gavenko writes: > I wrote blogging program in Elisp and have to report errors to users (when > required file not found or network authorisation failed). > > How to report error to users? > > I think that showing *Backtrace* buffer from '(error ...)' is not good way to > do this (I have filling that such behavior indicates bug or "not yet > implemented" condition in program). > > (message "...") is better but sometimes another modes hide minibufer text > (like semantic when showing symbol type). > > Would like to hear suggestions... --