Hi Robert,
Ar an t-aonú lá déag de mí Eanair, scríobh Robert Pluim:
Hi Aidan, the following revision (according to hg bisect)
$ hg bisect -b
The first bad revision is:
changeset: 5377:eac2e6bd5b2c
user: Aidan Kehoe <kehoea(a)parhasard.net>
date: Thu Mar 17 21:50:34 2011 +0000
summary: Correct some minor problems in my last change.
Is causing this error:
Debugger entered--Lisp error: (no-catch :skip t)
org-agenda-get-timestamps()
org-agenda-get-day-entries("/cygdrive/c/Documents and
Settings/RPluim/org/AcmePacket.org" (1 11 2012) :deadline :scheduled
:timestamp :sexp)
apply(org-agenda-get-day-entries "/cygdrive/c/Documents and
Settings/RPluim/org/AcmePacket.org" (1 11 2012) (:deadline :scheduled
:timestamp :sexp))
[...]
Note that this happens only when byte-compiling org-agenda.el, running
it uncompiled works fine. I've attached org-agenda.el
Thanks for the very detailed bug report. I’ve reproduced, and committed the
below, which should address it.
# HG changeset patch
# User Aidan Kehoe <kehoea(a)parhasard.net>
# Date 1326543365 0
# Node ID 5bda701e9e7c0dff05fa01010e151be8e0c0dd10
# Parent f4d74be744622833a2a78e5e2eebcac7f849be93
Be more careful about non-quoted-symbol TAGs, #'byte-compile-catch
lisp/ChangeLog addition:
2012-01-14 Aidan Kehoe <kehoea(a)parhasard.net>
* bytecomp.el (byte-compile-catch):
Be more careful about non-quoted-symbol TAGs here; thank you
Robert Pluim in
CAMTcmTeLaZVrABnP-1MRUA3ZpZ=h2S_YVxKWDDNuc5bAyJD-gg(a)mail.gmail.com !
tests/ChangeLog addition:
2012-01-14 Aidan Kehoe <kehoea(a)parhasard.net>
* automated/lisp-tests.el:
Check that `byte-compile-catch' doesn't strip keyword (as such,
non-quoted) TAGs.
diff -r f4d74be74462 -r 5bda701e9e7c lisp/ChangeLog
--- a/lisp/ChangeLog Wed Jan 11 16:38:50 2012 -0700
+++ b/lisp/ChangeLog Sat Jan 14 12:16:05 2012 +0000
@@ -1,4 +1,11 @@
- 2012-01-08 Vin Shelton <acs(a)xemacs.org>
+2012-01-14 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * bytecomp.el (byte-compile-catch):
+ Be more careful about non-quoted-symbol TAGs here; thank you
+ Robert Pluim in
+ CAMTcmTeLaZVrABnP-1MRUA3ZpZ=h2S_YVxKWDDNuc5bAyJD-gg(a)mail.gmail.com !
+
+2012-01-08 Vin Shelton <acs(a)xemacs.org>
* cus-face.el: autoload custom-set-face-bold.
diff -r f4d74be74462 -r 5bda701e9e7c lisp/bytecomp.el
--- a/lisp/bytecomp.el Wed Jan 11 16:38:50 2012 -0700
+++ b/lisp/bytecomp.el Sat Jan 14 12:16:05 2012 +0000
@@ -4382,8 +4382,9 @@
optimized away--just byte compile and return the BODY."
(let* ((symbol (car-safe (cdr-safe (nth 1 form))))
(not-present '#:not-present)
- (block (and symbol (symbolp symbol)
- (get symbol 'cl-block-name not-present)))
+ (block (cond ((null symbol) not-present)
+ ((not (symbolp symbol)) not-present)
+ (t (get symbol 'cl-block-name not-present))))
(elt (and (not (eq block not-present)) (list block)))
(byte-compile-active-blocks
(if elt
diff -r f4d74be74462 -r 5bda701e9e7c tests/ChangeLog
--- a/tests/ChangeLog Wed Jan 11 16:38:50 2012 -0700
+++ b/tests/ChangeLog Sat Jan 14 12:16:05 2012 +0000
@@ -1,3 +1,9 @@
+2012-01-14 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * automated/lisp-tests.el:
+ Check that `byte-compile-catch' doesn't strip keyword (as such,
+ non-quoted) TAGs.
+
2012-01-01 Aidan Kehoe <kehoea(a)parhasard.net>
* automated/completion-tests.el: New.
diff -r f4d74be74462 -r 5bda701e9e7c tests/automated/lisp-tests.el
--- a/tests/automated/lisp-tests.el Wed Jan 11 16:38:50 2012 -0700
+++ b/tests/automated/lisp-tests.el Sat Jan 14 12:16:05 2012 +0000
@@ -2911,6 +2911,9 @@
(Assert (eql 0 (needs-lexical-context 2 nil nil))
"the function special operator doesn't create a lexical
context.")))
+(Assert (eql 10 (catch ':keyword (+ (catch :keyword (throw :keyword 9)) 1)))
+ "checking `byte-compile-catch' doesn't strip keyword TAGs")
+
;; Test symbol-macrolet with symbols with identical string names.
(macrolet
--
‘Iodine deficiency was endemic in parts of the UK until, through what has been
described as “an unplanned and accidental public health triumph”, iodine was
added to cattle feed to improve milk production in the 1930s.’
(EN Pearce, Lancet, June 2011)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta