From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: General variable for verbosity level. (was: saveplace: don't ask for coding system) Date: Mon, 3 Dec 2007 20:22:35 +0000 Message-ID: References: <198E2B70-D060-41D8-8BC2-A9614C2729CC@inf.ed.ac.uk> <6C0C2889-2C17-4E5C-BDB3-CB4F51BE163A@gmail.com> <877ijwlhb8.fsf_-_@red-bean.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196713380 1080 80.91.229.12 (3 Dec 2007 20:23:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2007 20:23:00 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Karl Fogel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 03 21:23:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IzHol-00062v-Pu for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 21:23:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzHoV-0001DI-9X for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 15:22:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzHoS-0001CJ-5R for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:22:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzHoQ-0001BM-8w for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:22:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzHoQ-0001BJ-6T for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:22:42 -0500 Original-Received: from hu-out-0506.google.com ([72.14.214.239]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzHoP-0003g1-PP for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:22:42 -0500 Original-Received: by hu-out-0506.google.com with SMTP id 23so3661153huc for ; Mon, 03 Dec 2007 12:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=8ZnyxM/KS0iL7XBzzGwdvY3zLXjXoaBx4RYczOpOAaM=; b=wzl6NBHdQfUtNBOmBmwzlEI90DCGw5Amecp/dcFbI/vYWkpbbrB+fDhjPzmj3L2xKMuK7iMA11gGgJROXEjBrSOw6o3AnMsXG6mCFMuB6UFD2bb+d2hR549dMi354u5f81fFfZKx5u1/uXU4sqp8Mq+OxjuGZaM6tzSYWdxcvbw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=rDHj+K0jZeT8kHsbv/7TMawhGKjdmA2q9ymwVhfmUGkp8QzMFijywtn7LrfcWBMfkrVBYL6a3rRJqqN8K9vmtnLrvsH2Q/nP5H2EgZ7hWV+70zILMUyHxy+roP65/WNlvHxmc271ai3GBmgwmPX2TcjyDl3pOJyV+wzOhDR1MzY= Original-Received: by 10.78.146.11 with SMTP id t11mr8063751hud.1196713359117; Mon, 03 Dec 2007 12:22:39 -0800 (PST) Original-Received: from scarlett.lan ( [81.129.18.245]) by mx.google.com with ESMTPS id g12sm12362815nfb.2007.12.03.12.22.37 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Dec 2007 12:22:37 -0800 (PST) In-Reply-To: <877ijwlhb8.fsf_-_@red-bean.com> X-Mailer: Apple Mail (2.915) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84592 Archived-At: On 3 Dec 2007, at 01:04, Karl Fogel wrote: > > message-verbosity-level > Variable: Say which messages are printed by `maybe-message' (which > see) > in non-interactive contexts. Yes, I would either log all messages to *Messages*, or also create a customization variable: log-verbosity-level Variable: Maximum level of messages logged to *Messages* by `maybe- message'. > But should `message-verbosity-level' be a > number, or something else? It could be, for example, a symbol: I think the symbol would be okay, because it is easier to understand, and also quite easy to extend. But some modes (like tramp-mode) already have a numeric system of up to ten verbosity levels. So, perhaps one could allow for numbers, and allow symbols as a clearer form that translate directly to numbers, e.g. `none' would be 0, `important' 2, `verbose' 5, `all' 10. That way, verbosity is indicates as an integer 0..10, with 10 being the most verbose. That way, we would not lose any specificity in modes like tramp-mode, but retain a clean and simply interface for the user. (But to be honest, either way looks good to me.) There could be a recommendation for externally maintained modes to take use maybe-message, or take this verbosity level as the default for an existing verbosity customization.