[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prevent hook vanishing
From: |
akrl |
Subject: |
Re: prevent hook vanishing |
Date: |
Fri, 18 May 2018 14:42:44 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (berkeley-unix) |
John Mastro <john.b.mastro@gmail.com> writes:
> Why not use `condition-case' in your hook function to catch the error
> and respond appropriately? (There are also `with-demoted-errors' and
> `ignore-errors', if there's nothing that needs to be except to suppress
> the error)
>
> John
Doesn't quite work. I wrap the hooked code around using ignore-errors,
then for instance if I get the following error (from *Messages*):
"Symbol's value as variable is void"
the hook is wiped out.
Bests
akrl
--
akrl@sdf.org
SDF Public Access UNIX System - https://sdf.org