changeset 104840:b255a4a2d4f5

(Footnote-text-under-cursor): Check footnote-text-marker-alist before using it (bug#4324).
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 04 Sep 2009 03:09:44 +0000
parents 6e7b745a5ee5
children 02b4657a3268
files lisp/ChangeLog lisp/mail/footnote.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Sep 04 03:00:31 2009 +0000
+++ b/lisp/ChangeLog	Fri Sep 04 03:09:44 2009 +0000
@@ -1,3 +1,8 @@
+2009-09-04  Leo  <sdl.web@gmail.com>  (tiny change)
+
+	* mail/footnote.el (Footnote-text-under-cursor):
+	Check footnote-text-marker-alist before using it (bug#4324).
+
 2009-09-04  Glenn Morris  <rgm@gnu.org>
 
 	* calendar/diary-lib.el (diary-fancy-display): Only switch modes if
--- a/lisp/mail/footnote.el	Fri Sep 04 03:00:31 2009 +0000
+++ b/lisp/mail/footnote.el	Fri Sep 04 03:09:44 2009 +0000
@@ -566,7 +566,8 @@
 		   (Footnote-narrow-to-footnotes)
 		   (and (>= old-point (point-min))
 			(<= old-point (point-max))))))
-	     (>= (point) (cdar footnote-text-marker-alist)))
+	     footnote-text-marker-alist
+             (>= (point) (cdar footnote-text-marker-alist)))
     (let ((i 1)
 	  alist-txt rc)
       (while (and (setq alist-txt (nth i footnote-text-marker-alist))