* ignore-errors in XEmacs
@ 2013-09-20 9:11 Thien-Thi Nguyen
0 siblings, 0 replies; 3+ messages in thread
From: Thien-Thi Nguyen @ 2013-09-20 9:11 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 439 bytes --]
I'd like to replace
(condition-case () BODY (error nil))
in mic-paren.el w/ ‘ignore-errors’, which is nowadays supplied by GNU
Emacs subr.el (i.e., "built in"). Is it likewise built in w/ XEmacs?
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ignore-errors in XEmacs
[not found] <mailman.2561.1379668126.10748.help-gnu-emacs@gnu.org>
@ 2013-09-24 21:31 ` Stefan Monnier
2013-09-25 5:36 ` Thien-Thi Nguyen
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2013-09-24 21:31 UTC (permalink / raw)
To: help-gnu-emacs
> I'd like to replace
> (condition-case () BODY (error nil))
> in mic-paren.el w/ ‘ignore-errors’, which is nowadays supplied by GNU
> Emacs subr.el (i.e., "built in"). Is it likewise built in w/ XEmacs?
I don't know about that, but I do recommend you carefully consider each
use: throwing all errors to /dev/null is sometimes the right thing to
do, but if errors really shouldn't happen (and yet, you want to protect
yourself from bugs in other packages), then it's better to use something
like with-demote-errors, so errors don't get in the way but they aren't
hidden under the carpet.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ignore-errors in XEmacs
2013-09-24 21:31 ` Stefan Monnier
@ 2013-09-25 5:36 ` Thien-Thi Nguyen
0 siblings, 0 replies; 3+ messages in thread
From: Thien-Thi Nguyen @ 2013-09-25 5:36 UTC (permalink / raw)
To: Stefan Monnier; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]
() Stefan Monnier <monnier@iro.umontreal.ca>
() Tue, 24 Sep 2013 17:31:26 -0400
> Is [ignore-errors] likewise built in w/ XEmacs?
I don't know about that, but I do recommend you carefully consider
each use: throwing all errors to /dev/null is sometimes the right
thing to do, but if errors really shouldn't happen (and yet, you
want to protect yourself from bugs in other packages), then it's
better to use something like with-demote-errors, so errors don't
get in the way but they aren't hidden under the carpet.
I agree in principle.
If it were my code i would have avoided ‘ignore-errors’ from the
beginning, but here i am trying to honor the intent of mic (as far as
i can deduce), so the indicated path is necessarily more circumspect.
(This is not an argument against your recommendation, btw.)
Anyway, in case anyone is interested, i think XEmacs 21.5, available
many years now but still "beta", has ‘ignore-errors’, but it requires
cl.el:
http://www.xemacs.org/Documentation/21.5/html/cl_14.html
(thus, NOT "built in"). If anyone knows otherwise, please correct me.
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-25 5:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-20 9:11 ignore-errors in XEmacs Thien-Thi Nguyen
[not found] <mailman.2561.1379668126.10748.help-gnu-emacs@gnu.org>
2013-09-24 21:31 ` Stefan Monnier
2013-09-25 5:36 ` Thien-Thi Nguyen
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.