aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-09-04 03:09:44 +0000
committerStefan Monnier2009-09-04 03:09:44 +0000
commitc0bc6d79eab4c5e38e8eb84558d160f1eb8ed22d (patch)
tree81354dc159d60a09b2fad75d039c158c64dfdf55
parent1c78a735d17167139aa81f927b0241e314e3bd3d (diff)
downloademacs-c0bc6d79eab4c5e38e8eb84558d160f1eb8ed22d.tar.gz
emacs-c0bc6d79eab4c5e38e8eb84558d160f1eb8ed22d.zip
(Footnote-text-under-cursor):
Check footnote-text-marker-alist before using it (bug#4324).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/footnote.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 155b4804ebd..7882d1b1b04 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-09-04 Leo <sdl.web@gmail.com> (tiny change)
2
3 * mail/footnote.el (Footnote-text-under-cursor):
4 Check footnote-text-marker-alist before using it (bug#4324).
5
12009-09-04 Glenn Morris <rgm@gnu.org> 62009-09-04 Glenn Morris <rgm@gnu.org>
2 7
3 * calendar/diary-lib.el (diary-fancy-display): Only switch modes if 8 * calendar/diary-lib.el (diary-fancy-display): Only switch modes if
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el
index 16a6adc1007..81f215dd726 100644
--- a/lisp/mail/footnote.el
+++ b/lisp/mail/footnote.el
@@ -566,7 +566,8 @@ a footnote."
566 (Footnote-narrow-to-footnotes) 566 (Footnote-narrow-to-footnotes)
567 (and (>= old-point (point-min)) 567 (and (>= old-point (point-min))
568 (<= old-point (point-max)))))) 568 (<= old-point (point-max))))))
569 (>= (point) (cdar footnote-text-marker-alist))) 569 footnote-text-marker-alist
570 (>= (point) (cdar footnote-text-marker-alist)))
570 (let ((i 1) 571 (let ((i 1)
571 alist-txt rc) 572 alist-txt rc)
572 (while (and (setq alist-txt (nth i footnote-text-marker-alist)) 573 (while (and (setq alist-txt (nth i footnote-text-marker-alist))