summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2011-05-31 09:23:52 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2011-05-31 09:23:52 +0200
commita958e3bc8f8647914f9e79f376914205e08aecfa (patch)
tree5bf51e95fc01ce379345faf97eb023105c404819
parentd1f33de0c8e4976842688b87d565dd926f54d4dc (diff)
downloadorg-mode-a958e3bc8f8647914f9e79f376914205e08aecfa.tar.gz
Fix issue with buffer-undo-list being t in some buffers
* lisp/org.el (org-self-insert-command): Catch the case of buffer-undo-list eq t.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 498c606..0777e89 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16922,7 +16922,7 @@ overwritten, and the table is not marked as requiring realignment."
(if (>= org-self-insert-command-undo-counter 20)
(setq org-self-insert-command-undo-counter 1)
(and (> org-self-insert-command-undo-counter 0)
- buffer-undo-list
+ buffer-undo-list (listp buffer-undo-list)
(not (cadr buffer-undo-list)) ; remove nil entry
(setcdr buffer-undo-list (cddr buffer-undo-list)))
(setq org-self-insert-command-undo-counter