diff options
author | Bastien Guerry <bzg@gnu.org> | 2014-10-12 07:18:57 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@gnu.org> | 2014-10-12 07:18:57 +0200 |
commit | a9789a1d8c20a0f5b889930a808bc234c443b7ef (patch) | |
tree | 85fad36b2b312d9749ab9bf39df3ee1684127db6 /lisp/org/org.el | |
parent | 20f02f27686767bdb0a68c2164c012741d2c635e (diff) | |
download | emacs-a9789a1d8c20a0f5b889930a808bc234c443b7ef.tar.gz |
Merge Org 8.2.9
Diffstat (limited to 'lisp/org/org.el')
-rw-r--r-- | lisp/org/org.el | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el index c4f8325de33..2b5603ce5af 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -7571,7 +7571,7 @@ headline or the item and create a new headline/item with the text in the current line after point \(see `org-M-RET-may-split-line' on how to modify this behavior). -With one universal prefix argument, set the user option +With one universal prefirx argument, set the user option `org-insert-heading-respect-content' to t for the duration of the command. This modifies the behavior described above in this ways: on list items and at the beginning of normal lines, force @@ -9099,14 +9099,16 @@ if `orgstruct-heading-prefix-regexp' is not empty." (if fallback (let* ((orgstruct-mode) (binding - (loop with key = ,key - for rep in - '(nil - ("<\\([^>]*\\)tab>" . "\\1TAB") - ("<\\([^>]*\\)return>" . "\\1RET") - ("<\\([^>]*\\)escape>" . "\\1ESC") - ("<\\([^>]*\\)delete>" . "\\1DEL")) - do + (let ((key ,key)) + (catch 'exit + (dolist + (rep + '(nil + ("<\\([^>]*\\)tab>" . "\\1TAB") + ("<\\([^>]*\\)return>" . "\\1RET") + ("<\\([^>]*\\)escape>" . "\\1ESC") + ("<\\([^>]*\\)delete>" . "\\1DEL")) + nil) (when rep (setq key (read-kbd-macro (let ((case-fold-search)) @@ -9114,7 +9116,8 @@ if `orgstruct-heading-prefix-regexp' is not empty." (car rep) (cdr rep) (key-description key)))))) - thereis (key-binding key)))) + (when (key-binding key) + (throw 'exit (key-binding key)))))))) (if (keymapp binding) (org-set-transient-map binding) (let ((func (or binding |