From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jarek Czekalski Newsgroups: gmane.emacs.devel Subject: Re: Request: Use message instead of message_with_string for user visible output? Date: Mon, 28 Oct 2013 09:04:58 +0100 Message-ID: <526E1AAA.9060308@poczta.onet.pl> References: <83wql0f1ej.fsf@gnu.org> <87ob6byfug.fsf@dpaduchikh.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382947511 15252 80.91.229.3 (28 Oct 2013 08:05:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2013 08:05:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 28 09:05:16 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Vahp3-0002Tp-8y for ged-emacs-devel@m.gmane.org; Mon, 28 Oct 2013 09:05:13 +0100 Original-Received: from localhost ([::1]:40305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vahp2-0004r8-Rg for ged-emacs-devel@m.gmane.org; Mon, 28 Oct 2013 04:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vahov-0004ny-4M for emacs-devel@gnu.org; Mon, 28 Oct 2013 04:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vahop-0007ht-Vg for emacs-devel@gnu.org; Mon, 28 Oct 2013 04:05:05 -0400 Original-Received: from smtpo15.poczta.onet.pl ([213.180.142.146]:57518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vahop-0007ho-KT for emacs-devel@gnu.org; Mon, 28 Oct 2013 04:04:59 -0400 Original-Received: from [192.168.17.9] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3d7T4B50TszZCfpn for ; Mon, 28 Oct 2013 09:04:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1382947498; bh=c6Zqs+1nexn7VGDftZ973OCaEkDxR2prZvfLxdtgnUo=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Z4CRjTIjmkikBGqU07mSV/KNEEe2qDnlJ0cQ7Xwh5B3+V0mzXmxliVwrhjFoZX9ig 5OQ36oO/cj+vtlLFW8oPPg3meW1UMj/00lTjRQDMmuORL2u3CPvp2h1ks2JxfstVyE mf+ijkUr91YNXe13m7RZ8SLSlUuroSXyjeWU7rlE= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.180.142.146 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164594 Archived-At: W dniu 2013-10-27 23:07, T.V. Raman pisze: > My personal preference > would be to not to muck with command-error-function -- I played > with it a bit last week -- it feels like too heavy a hammer, and > at the end of the day might also produce too much output. Raman, in this thread [1] we are given green light to improve command-error-function. Could you provide an example of the operation, that would be handled badly by command-error-function? For me it seems to be the best solution. For example it delivers "read only" message properly. Further, if "key undefined" was also populated as an error-message, it would not require special handling by Emacspeak. This is all a song of the future (Emacs 25), but why not having a good plan? By now you could start using command-error-function as if it was our private variable, later it would be made better accessible for packages and then we would adjust to new standards. Jarek [1] http://emacs.1067599.n5.nabble.com/command-error-function-default-handler-tp300931.html