all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: Budi <budikusasi@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: debug-ignored-errors usage
Date: Tue, 30 Apr 2019 23:13:52 -0300	[thread overview]
Message-ID: <CABczVwcYV6r3OsXWyfwcuKWLRTQn97sfXaDfMi+3KJzfkAzSyw@mail.gmail.com> (raw)
In-Reply-To: <CAH0GyZAzvLaQWUMngpZRds5Sz1MQyRtuJLesVKU10xU1n4M==w@mail.gmail.com>

Budi <budikusasi@gmail.com> writes:

> How's the usage of debug-ignored-errors ?
> I've tried with no benefit whatsoever;
>
> (setq debug-ignored-errors (beginning-of-buffer))
>

Not sure what is that you are trying to achieve, but with the
expression you wrote you are setting debug-ignored-errors to the return
value of beginning-of-buffer, which is nil when called like that.  So
you end up not ignoring errors.

The doc string (which you can read by typing
`C-h v debug-ignored-errors RET') says it is a list, and with emacs -Q
its value is:
(beginning-of-line beginning-of-buffer end-of-line end-of-buffer
end-of-file buffer-read-only file-supersession mark-inactive user-error)

This setting is done in the file lisp/bindings.el, so you might want to
take a look at that file to see how it's done.  Also notice
beginning-of-buffer is already an element of debug-ignored-errors.

If you really want to set debug-ignored-errors to only
beginning-of-buffer you can do the following:
(setq debug-ignored-errors '(beginning-of-buffer))

Best regards,
Mauro.


  reply	other threads:[~2019-05-01  2:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-01  1:00 debug-ignored-errors usage Budi
2019-05-01  2:13 ` Mauro Aranda [this message]
2019-05-03  2:41 ` Emanuel Berg
2019-05-03  3:14   ` Eric Abrahamsen
2019-05-03  4:16     ` Emanuel Berg
2019-05-03  4:33       ` Eric Abrahamsen
2019-05-03  4:59         ` Emanuel Berg
2019-05-03  5:03           ` Eric Abrahamsen
2019-05-03 20:18       ` Stefan Monnier
2019-05-03 23:06         ` Emanuel Berg
2019-05-03  4:18     ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABczVwcYV6r3OsXWyfwcuKWLRTQn97sfXaDfMi+3KJzfkAzSyw@mail.gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=budikusasi@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.