From 6f2a247611dc746abc1d378c52dabc502d4a4dda Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 15 Feb 2009 21:32:54 +0100 Subject: [PATCH] Bugfix: Make cycling work in plain list item at end of file Reported by Wanrong Lin. --- lisp/ChangeLog | 3 +++ lisp/org.el | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5c4827fc2..1ce566542 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-02-15 Carsten Dominik + * org.el (org-show-entry): Make this work correctly also if it is + the last entry in the file. + * org-list.el (org-toggle-checkbox): Make double prefix set the checkbox to "[-]". (org-fix-bullet-type): Only replace bullet it it is changed. diff --git a/lisp/org.el b/lisp/org.el index de9242ed0..3c20af217 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15309,9 +15309,10 @@ Show the heading too, if it is currently invisible." (outline-flag-region (max (point-min) (1- (point))) (save-excursion - (re-search-forward - (concat "[\r\n]\\(" outline-regexp "\\)") nil 'move) - (or (match-beginning 1) (point-max))) + (if (re-search-forward + (concat "[\r\n]\\(" outline-regexp "\\)") nil t) + (match-beginning 1) + (point-max))) nil)) (error nil))))