[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Odd backtrace in condition-case
From: |
Andy Moreton |
Subject: |
Re: Odd backtrace in condition-case |
Date: |
Mon, 20 May 2019 19:22:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) |
On Mon 20 May 2019, Lars Ingebrigtsen wrote:
> I usually run with `debug-on-error' set, but lately I've started getting
> these backtraces:
> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
> capitalize(nil)
> timezone-make-arpa-date(2000 0 0 "01:00:00" (3600 "CET"))
> timezone-make-date-arpa-standard("Session")
> date-to-time("Session")
> (condition-case nil (date-to-time "Session") (error nil))
> Shouldn't the `error' clause in condition-case catch all errors?
`date-to-time' has:
(condition-case-unless-debug err
(encode-time (parse-time-string
(timezone-make-date-arpa-standard date)))
As you have `debug-on-error' set, this looks like the expected
behaviour.
The `condition-case-unless-debug' was added by Stefan in commit
cb411c609d43 on April 19th. Perhaps this is left over debugging code ?
AndyM