all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Adding an entry to a user option
@ 2009-03-05 18:37 Stefan Boeters
  2009-03-06  9:52 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stefan Boeters @ 2009-03-05 18:37 UTC (permalink / raw
  To: help-gnu-emacs

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.

Stefan

--
Den Haag, Netherlands


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Adding an entry to a user option
  2009-03-05 18:37 Stefan Boeters
@ 2009-03-06  9:52 ` Peter Dyballa
  2009-03-06  9:57 ` Nikolaj Schumacher
  2009-03-06 15:17 ` Drew Adams
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2009-03-06  9:52 UTC (permalink / raw
  To: Stefan Boeters; +Cc: help-gnu-emacs


Am 05.03.2009 um 19:37 schrieb Stefan Boeters:

> "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?

Type: C-h v warning-suppress-types RET. The *Help* buffer should be  
able to help you. (I have no warning-suppress-types in use in my GNU  
Emacs 23, so I cant help you.)

--
Greetings

   Pete

And always remember the last words of my grandfather, who said: “A  
truck!”
				— Emo Phillips







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Adding an entry to a user option
  2009-03-05 18:37 Stefan Boeters
  2009-03-06  9:52 ` Peter Dyballa
@ 2009-03-06  9:57 ` Nikolaj Schumacher
  2009-03-06 15:17 ` Drew Adams
  2 siblings, 0 replies; 6+ messages in thread
From: Nikolaj Schumacher @ 2009-03-06  9:57 UTC (permalink / raw
  To: Stefan Boeters; +Cc: help-gnu-emacs

Stefan Boeters <st.boeters@gmail.com> wrote:

> "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?

How to solve this depends on the option's format.  I don't know the
package, so I can't help you there.

But ideally, you should be able to
  M-x customize-variable warning-suppress-types
and add an entry with that text.

Otherwise, you should look up the documentation for the option.  You can
do this with:
  C-h v warning-suppress-types

It might be something like this:
(add-to-list 'warning-suppress-types '(undo discard-info))

But there's no universal answer.


regards,
Nikolaj Schumacher




^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Adding an entry to a user option
  2009-03-05 18:37 Stefan Boeters
  2009-03-06  9:52 ` Peter Dyballa
  2009-03-06  9:57 ` Nikolaj Schumacher
@ 2009-03-06 15:17 ` Drew Adams
  2 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2009-03-06 15:17 UTC (permalink / raw
  To: 'Stefan Boeters', help-gnu-emacs

> 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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Adding an entry to a user option
@ 2009-03-07 18:56 martin rudalics
  0 siblings, 0 replies; 6+ messages in thread
From: martin rudalics @ 2009-03-07 18:56 UTC (permalink / raw
  To: st.boeters; +Cc: help-gnu-emacs

 > 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.

Please write a bug report so Emacs developers will take care of this.

Meanwhile you can try to add an entry like

  '(warning-suppress-types (quote ((undo discard-info)))))

to your customizations which usually reside in your .emacs (or _emacs)
file.  That is, if so far you have customized `debug-on-error' and
`yank-excluded-properties' only, your .emacs should then contain the
following form:

(custom-set-variables
   ;; custom-set-variables was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(debug-on-error t)
  '(warning-suppress-types (quote ((undo discard-info))))
  '(yank-excluded-properties t))

Restart Emacs and tell us whether it works.

Thanks, martin.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Adding an entry to a user option
       [not found] <mailman.2654.1236452395.31690.help-gnu-emacs@gnu.org>
@ 2009-03-13 22:24 ` Stefan Boeters
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Boeters @ 2009-03-13 22:24 UTC (permalink / raw
  To: help-gnu-emacs

Thanks to all who answered.

I reported the problem (if we leave open whether it's a "bug") to bug-
gnu-emacs@gnu.org.

Adding  '(warning-suppress-types (quote ((undo discard-info)))) to
custom-set-variables actually works. Thanks for the tip.

Stefan


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-13 22:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2654.1236452395.31690.help-gnu-emacs@gnu.org>
2009-03-13 22:24 ` Adding an entry to a user option Stefan Boeters
2009-03-07 18:56 martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2009-03-05 18:37 Stefan Boeters
2009-03-06  9:52 ` Peter Dyballa
2009-03-06  9:57 ` Nikolaj Schumacher
2009-03-06 15:17 ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.