From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Adding an entry to a user option Date: Fri, 6 Mar 2009 07:17:16 -0800 Message-ID: <002701c99e6e$a37fe970$0200a8c0@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236352721 24071 80.91.229.12 (6 Mar 2009 15:18:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2009 15:18:41 +0000 (UTC) To: "'Stefan Boeters'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 06 16:19:48 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lfbpb-0001ak-Hf for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Mar 2009 16:19:23 +0100 Original-Received: from localhost ([127.0.0.1]:49276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfboG-0000Eq-0m for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Mar 2009 10:18:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lfbns-0000ES-KK for help-gnu-emacs@gnu.org; Fri, 06 Mar 2009 10:17:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lfbnp-0000ED-4m for help-gnu-emacs@gnu.org; Fri, 06 Mar 2009 10:17:35 -0500 Original-Received: from [199.232.76.173] (port=40266 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lfbno-0000E4-Vs for help-gnu-emacs@gnu.org; Fri, 06 Mar 2009 10:17:33 -0500 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:17801) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lfbno-0007fF-Iz for help-gnu-emacs@gnu.org; Fri, 06 Mar 2009 10:17:32 -0500 Original-Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n26FHxhf007259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Mar 2009 15:18:00 GMT Original-Received: from acsmt707.oracle.com (acsmt707.oracle.com [141.146.40.85]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n26FHX4G024968; Fri, 6 Mar 2009 15:17:34 GMT Original-Received: from dradamslap1 (/141.144.64.121) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 06 Mar 2009 15:17:19 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcmeIXMp8huwaQxzR2aEcEnLY4CuwAASxNhg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt707.oracle.com [141.146.40.85] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.49B13E81.003B:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62686 Archived-At: > From: Stefan Boeters Sent: Thursday, March 05, 2009 10:37 AM > I'm new to Emacs -- and this might be a very basic question. But I've > invested some time searching in the FAQ, in the Emacs Wiki and in this > group, but could not find an answer. > > I want to discard a warning, that often pops up and which is not > relevant in my situation. The warning self says how to proceed, in > priciple, in this case: > > "You can disable the popping up of this buffer by adding the entry > (undo discard-info) to the user option `warning-suppress-types'." > > But how can I achieve this? How do I "add an entry to a user option"? > Can someone suggest a piece of code to be added to the _emacs file? > > I would also appreciate to pointed to some documentation where this is > described and which has (obviously) escaped me so far. Grepping the Emacs 23 lisp libraries for `warning-suppress-types' shows that it is referred to in a doc string in `simple.el', but it is defined and used only in library `warnings.el', which is not loaded by default. You cannot customize it using Customize until it has been defined. I think the fact that it is referenced in `simple.el' but undefined by default is a bug - please report it using `M-x report-emacs-bug'. But I warn you that it's likely that Stefan M. will reply that it is normal that most user options are not defined by default. ;-) I guess it all depends whether the doc string in `simple.el' is ever likely to be user-visible without `warnings.el' having yet been loaded. Anyway, to customize option `warning-suppress-types', it first needs to be defined. So load library `warnings.el' (`M-x load-library RET warnings'), then do `M-x customize-option RET warning-suppress-types'. By default, the value is an empty list. Click the `INS' button to insert a new warning-types entry, which is itself apparently a list (so use its own `INS' button to insert individual list elements). The doc string for `warning-suppress-types' is pretty much incomprehensible to me, so I can't help you more with understanding that part. If you too find it unclear, then please mention the doc string when you file the bug. In sum, an Emacs bug or two prevent you from knowing about this and being able to do anything about it.