From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: Reporting error to user... Date: Tue, 05 Mar 2013 08:51:50 +0400 Message-ID: <87hakqih3t.fsf@yandex.ru> References: <87fw0cmht6.fsf@gavenkoa.example.com> <87k3po1de2.fsf@gmail.com> <871ubvufz3.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362459134 7545 80.91.229.3 (5 Mar 2013 04:52:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Mar 2013 04:52:14 +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 Tue Mar 05 05:52:38 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 1UCjrg-0007GH-6p for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Mar 2013 05:52:36 +0100 Original-Received: from localhost ([::1]:52059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCjrK-0002KP-Ic for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Mar 2013 23:52:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCjr6-0002K9-SE for help-gnu-emacs@gnu.org; Mon, 04 Mar 2013 23:52:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCjr3-0000U4-3r for help-gnu-emacs@gnu.org; Mon, 04 Mar 2013 23:52:00 -0500 Original-Received: from mail-lb0-f181.google.com ([209.85.217.181]:57165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCjr2-0000Ty-Sq for help-gnu-emacs@gnu.org; Mon, 04 Mar 2013 23:51:57 -0500 Original-Received: by mail-lb0-f181.google.com with SMTP id gm6so4463659lbb.40 for ; Mon, 04 Mar 2013 20:51:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=YWc7WRuA1g7GpceFAa5a3gvY1HIM6Mc3PyO0sSYtrh8=; b=YUlBh5ufaAcDSEy8H+lZN04cCQ4F6RmhIZ7ctPQ7uIbBiFajhCLIbp0I+VvF/YrPDl HhkFlhfCMidRrGUlXIOCAZSnT5HmJsMEDlV9E+ewANrGON2XEEqM5zqZDIjImTiGUQi4 /wbLTt0JL/vwmBqSU6tUp5ExQeYOZI0Jr+4Az4oys+hBxlBdikG2tsvB8nt2FtBJdwOm 11K0+gx4eCmG1ZaRabtlNjX0XGj31yhDuhmqs9p+5XdpNrxDO4F8GcH2XBZjCWNK/u8N y2xghXZoGCztXJrTs1HlehtwuTyVXCwrpRG23Pj66FaRDLNGKz9L8xKFERSPaJ/q6Pmk xDnA== X-Received: by 10.112.99.100 with SMTP id ep4mr4941145lbb.13.1362459115537; Mon, 04 Mar 2013 20:51:55 -0800 (PST) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPS id oy10sm13060623lab.8.2013.03.04.20.51.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 04 Mar 2013 20:51:54 -0800 (PST) In-Reply-To: <871ubvufz3.fsf@gavenkoa.example.com> (Oleksandr Gavenko's message of "Mon, 04 Mar 2013 21:23:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.181 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:89356 Archived-At: Oleksandr Gavenko writes: > How to backport 'user-error' into early Emacs versions? Do I need to write > a wrapper: > > (defun my-user-error (format &rest args) > (if (fboundp 'user-error)) > (apply 'user-error format args) > (apply 'error format args)) > > in my mode and use 'my-user-error' instead if 'user-error'? You can just copy the implementation, it's trivial.