Merge branch 'hotfix-7.8.06'

This commit is contained in:
Nicolas Goaziou 2012-03-24 20:35:31 +01:00
commit 6427c6aeaa

View file

@ -865,8 +865,9 @@ Return the number of footnotes removed."
(ndef 0)) (ndef 0))
(while (re-search-forward def-re nil t) (while (re-search-forward def-re nil t)
(let ((full-def (org-footnote-at-definition-p))) (let ((full-def (org-footnote-at-definition-p)))
(delete-region (nth 1 full-def) (nth 2 full-def))) (when full-def
(incf ndef)) (delete-region (nth 1 full-def) (nth 2 full-def))
(incf ndef))))
ndef))) ndef)))
(defun org-footnote-delete (&optional label) (defun org-footnote-delete (&optional label)