diff options
| author | Bastien Guerry | 2013-01-13 11:33:16 +0100 |
|---|---|---|
| committer | Bastien Guerry | 2013-01-13 11:33:16 +0100 |
| commit | a89c8ef024113dbf993db0d379fabbfb06c86520 (patch) | |
| tree | 94b70d44c096cec75cf0dd10686042ef4574928c /lisp/org/org.el | |
| parent | f5e9cbd447d2af41da420a5dde2f28ba75892a37 (diff) | |
| download | emacs-a89c8ef024113dbf993db0d379fabbfb06c86520.tar.gz emacs-a89c8ef024113dbf993db0d379fabbfb06c86520.zip | |
Merge Org 7.9.3d (commit e8f5b0ad).
Diffstat (limited to 'lisp/org/org.el')
| -rw-r--r-- | lisp/org/org.el | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el index 32ed13fc1a3..9409feca178 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -7402,7 +7402,12 @@ even level numbers will become the next higher odd number." | |||
| 7402 | ((< change 0) (max 1 (1+ (* 2 (/ (+ level (* 2 change)) 2)))))) | 7402 | ((< change 0) (max 1 (1+ (* 2 (/ (+ level (* 2 change)) 2)))))) |
| 7403 | (max 1 (+ level (or change 0))))) | 7403 | (max 1 (+ level (or change 0))))) |
| 7404 | 7404 | ||
| 7405 | (org-define-obsolete-function-alias 'org-get-legal-level 'org-get-valid-level "23.1") | 7405 | (if (boundp 'define-obsolete-function-alias) |
| 7406 | (if (or (featurep 'xemacs) (< emacs-major-version 23)) | ||
| 7407 | (define-obsolete-function-alias 'org-get-legal-level | ||
| 7408 | 'org-get-valid-level) | ||
| 7409 | (define-obsolete-function-alias 'org-get-legal-level | ||
| 7410 | 'org-get-valid-level "23.1"))) | ||
| 7406 | 7411 | ||
| 7407 | (defvar org-called-with-limited-levels nil) ;; Dynamically bound in | 7412 | (defvar org-called-with-limited-levels nil) ;; Dynamically bound in |
| 7408 | ;; ̀org-with-limited-levels' | 7413 | ;; ̀org-with-limited-levels' |
| @@ -9684,12 +9689,14 @@ application the system uses for this file type." | |||
| 9684 | "[ \t]:[^ \t\n]+:[ \t]*$"))) | 9689 | "[ \t]:[^ \t\n]+:[ \t]*$"))) |
| 9685 | (not (get-text-property (point) 'org-linked-text))) | 9690 | (not (get-text-property (point) 'org-linked-text))) |
| 9686 | (or (let* ((lkall (org-offer-links-in-entry (current-buffer) (point) arg)) | 9691 | (or (let* ((lkall (org-offer-links-in-entry (current-buffer) (point) arg)) |
| 9687 | (lk (car lkall)) | 9692 | (lk0 (car lkall)) |
| 9693 | (lk (if (stringp lk0) (list lk0) lk0)) | ||
| 9688 | (lkend (cdr lkall))) | 9694 | (lkend (cdr lkall))) |
| 9689 | (when lk | 9695 | (mapcar (lambda(l) |
| 9690 | (prog1 (search-forward lk nil lkend) | 9696 | (search-forward l nil lkend) |
| 9691 | (goto-char (match-beginning 0)) | 9697 | (goto-char (match-beginning 0)) |
| 9692 | (org-open-at-point)))) | 9698 | (org-open-at-point)) |
| 9699 | lk)) | ||
| 9693 | (progn (require 'org-attach) (org-attach-reveal 'if-exists)))) | 9700 | (progn (require 'org-attach) (org-attach-reveal 'if-exists)))) |
| 9694 | ((run-hook-with-args-until-success 'org-open-at-point-functions)) | 9701 | ((run-hook-with-args-until-success 'org-open-at-point-functions)) |
| 9695 | ((and (org-at-timestamp-p t) | 9702 | ((and (org-at-timestamp-p t) |
| @@ -13524,7 +13531,10 @@ ignore inherited ones." | |||
| 13524 | (error nil))))) | 13531 | (error nil))))) |
| 13525 | (if local | 13532 | (if local |
| 13526 | tags | 13533 | tags |
| 13527 | (append (org-remove-uninherited-tags org-file-tags) tags)))))) | 13534 | (reverse (delete-dups |
| 13535 | (reverse (append | ||
| 13536 | (org-remove-uninherited-tags | ||
| 13537 | org-file-tags) tags))))))))) | ||
| 13528 | 13538 | ||
| 13529 | (defun org-add-prop-inherited (s) | 13539 | (defun org-add-prop-inherited (s) |
| 13530 | (add-text-properties 0 (length s) '(inherited t) s) | 13540 | (add-text-properties 0 (length s) '(inherited t) s) |
| @@ -17798,7 +17808,7 @@ BEG and END default to the buffer boundaries." | |||
| 17798 | (list 'org-display-inline-remove-overlay)) | 17808 | (list 'org-display-inline-remove-overlay)) |
| 17799 | (push ov org-inline-image-overlays))))))))) | 17809 | (push ov org-inline-image-overlays))))))))) |
| 17800 | 17810 | ||
| 17801 | (org-define-obsolete-function-alias | 17811 | (define-obsolete-function-alias |
| 17802 | 'org-display-inline-modification-hook 'org-display-inline-remove-overlay "24.3") | 17812 | 'org-display-inline-modification-hook 'org-display-inline-remove-overlay "24.3") |
| 17803 | 17813 | ||
| 17804 | (defun org-display-inline-remove-overlay (ov after beg end &optional len) | 17814 | (defun org-display-inline-remove-overlay (ov after beg end &optional len) |
| @@ -18178,7 +18188,7 @@ If not, return to the original position and throw an error." | |||
| 18178 | (defvar org-table-auto-blank-field) ; defined in org-table.el | 18188 | (defvar org-table-auto-blank-field) ; defined in org-table.el |
| 18179 | (defvar org-speed-command nil) | 18189 | (defvar org-speed-command nil) |
| 18180 | 18190 | ||
| 18181 | (org-define-obsolete-function-alias | 18191 | (define-obsolete-function-alias |
| 18182 | 'org-speed-command-default-hook 'org-speed-command-activate "24.3") | 18192 | 'org-speed-command-default-hook 'org-speed-command-activate "24.3") |
| 18183 | 18193 | ||
| 18184 | (defun org-speed-command-activate (keys) | 18194 | (defun org-speed-command-activate (keys) |
| @@ -18191,7 +18201,7 @@ Use `org-speed-commands-user' for further customization." | |||
| 18191 | (cdr (assoc keys (append org-speed-commands-user | 18201 | (cdr (assoc keys (append org-speed-commands-user |
| 18192 | org-speed-commands-default))))) | 18202 | org-speed-commands-default))))) |
| 18193 | 18203 | ||
| 18194 | (org-define-obsolete-function-alias | 18204 | (define-obsolete-function-alias |
| 18195 | 'org-babel-speed-command-hook 'org-babel-speed-command-activate "24.3") | 18205 | 'org-babel-speed-command-hook 'org-babel-speed-command-activate "24.3") |
| 18196 | 18206 | ||
| 18197 | (defun org-babel-speed-command-activate (keys) | 18207 | (defun org-babel-speed-command-activate (keys) |
| @@ -19026,14 +19036,13 @@ Otherwise, return a user error." | |||
| 19026 | (beginning-of-line 1) | 19036 | (beginning-of-line 1) |
| 19027 | (looking-at "\\(?:#\\+\\(?:setupfile\\|include\\):?[ \t]+\"?\\|[ \t]*<include\\>.*?file=\"\\)\\([^\"\n>]+\\)")) | 19037 | (looking-at "\\(?:#\\+\\(?:setupfile\\|include\\):?[ \t]+\"?\\|[ \t]*<include\\>.*?file=\"\\)\\([^\"\n>]+\\)")) |
| 19028 | (find-file (org-trim (match-string 1)))) | 19038 | (find-file (org-trim (match-string 1)))) |
| 19039 | ((org-at-table.el-p) (org-edit-src-code)) | ||
| 19029 | ((or (org-at-table-p) | 19040 | ((or (org-at-table-p) |
| 19030 | (save-excursion | 19041 | (save-excursion |
| 19031 | (beginning-of-line 1) | 19042 | (beginning-of-line 1) |
| 19032 | (let ((case-fold-search )) (looking-at "[ \t]*#\\+tblfm:")))) | 19043 | (let ((case-fold-search )) (looking-at "[ \t]*#\\+tblfm:")))) |
| 19033 | (call-interactively 'org-table-edit-formulas)) | 19044 | (call-interactively 'org-table-edit-formulas)) |
| 19034 | ((or (org-in-block-p '("src" "example" "latex" "html")) | 19045 | ((org-in-block-p '("src" "example" "latex" "html")) (org-edit-src-code)) |
| 19035 | (org-at-table.el-p)) | ||
| 19036 | (org-edit-src-code)) | ||
| 19037 | ((org-in-fixed-width-region-p) (org-edit-fixed-width-region)) | 19046 | ((org-in-fixed-width-region-p) (org-edit-fixed-width-region)) |
| 19038 | ((org-at-regexp-p org-any-link-re) (call-interactively 'ffap)) | 19047 | ((org-at-regexp-p org-any-link-re) (call-interactively 'ffap)) |
| 19039 | (t (user-error "No special environment to edit here")))) | 19048 | (t (user-error "No special environment to edit here")))) |