diff options
| -rw-r--r-- | lisp/textmodes/org.el | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index 9d843d0b81f..5e15855a69d 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el | |||
| @@ -1103,7 +1103,7 @@ for some files for which the OS does not have a good default. | |||
| 1103 | See `org-file-apps'.") | 1103 | See `org-file-apps'.") |
| 1104 | 1104 | ||
| 1105 | (defconst org-file-apps-defaults-windowsnt | 1105 | (defconst org-file-apps-defaults-windowsnt |
| 1106 | (list | 1106 | (list |
| 1107 | '(remote . emacs) | 1107 | '(remote . emacs) |
| 1108 | (cons t | 1108 | (cons t |
| 1109 | (list (if (featurep 'xemacs) | 1109 | (list (if (featurep 'xemacs) |
| @@ -1132,7 +1132,7 @@ file identifier are | |||
| 1132 | \"ext\" A string identifying an extension | 1132 | \"ext\" A string identifying an extension |
| 1133 | `directory' Matches a directory | 1133 | `directory' Matches a directory |
| 1134 | `remote' Matches a remote file, accessible through tramp or efs. | 1134 | `remote' Matches a remote file, accessible through tramp or efs. |
| 1135 | Remote files most likely should be visited through emacs | 1135 | Remote files most likely should be visited through Emacs |
| 1136 | because external applications cannot handle such paths. | 1136 | because external applications cannot handle such paths. |
| 1137 | t Default for all remaining files | 1137 | t Default for all remaining files |
| 1138 | 1138 | ||
| @@ -2342,7 +2342,7 @@ stacked Non-nil means, allow stacked styles. This works only in HTML | |||
| 2342 | export. When this is set, all marker characters (as given in | 2342 | export. When this is set, all marker characters (as given in |
| 2343 | `org-emphasis-alist') will be allowed as pre/post, aiding | 2343 | `org-emphasis-alist') will be allowed as pre/post, aiding |
| 2344 | inside-out matching. | 2344 | inside-out matching. |
| 2345 | Use customize to modify this, or restart emacs after changing it." | 2345 | Use customize to modify this, or restart Emacs after changing it." |
| 2346 | :group 'org-font-lock | 2346 | :group 'org-font-lock |
| 2347 | :set 'org-set-emph-re | 2347 | :set 'org-set-emph-re |
| 2348 | :type '(list | 2348 | :type '(list |
| @@ -2360,12 +2360,12 @@ Use customize to modify this, or restart emacs after changing it." | |||
| 2360 | ("=" shadow "<code>" "</code>") | 2360 | ("=" shadow "<code>" "</code>") |
| 2361 | ("+" (:strike-through t) "<del>" "</del>") | 2361 | ("+" (:strike-through t) "<del>" "</del>") |
| 2362 | ) | 2362 | ) |
| 2363 | "Special syntax for emphasised text. | 2363 | "Special syntax for emphasized text. |
| 2364 | Text starting and ending with a special character will be emphasized, for | 2364 | Text starting and ending with a special character will be emphasized, for |
| 2365 | example *bold*, _underlined_ and /italic/. This variable sets the marker | 2365 | example *bold*, _underlined_ and /italic/. This variable sets the marker |
| 2366 | characters, the face to bbe used by font-lock for highlighting in Org-mode | 2366 | characters, the face to bbe used by font-lock for highlighting in Org-mode |
| 2367 | emacs buffers, and the HTML tags to be used for this. | 2367 | Emacs buffers, and the HTML tags to be used for this. |
| 2368 | Use customize to modify this, or restart emacs after changing it." | 2368 | Use customize to modify this, or restart Emacs after changing it." |
| 2369 | :group 'org-font-lock | 2369 | :group 'org-font-lock |
| 2370 | :set 'org-set-emph-re | 2370 | :set 'org-set-emph-re |
| 2371 | :type '(repeat | 2371 | :type '(repeat |
| @@ -3451,7 +3451,7 @@ between words." | |||
| 3451 | (call-interactively 'org-table-next-field))))) | 3451 | (call-interactively 'org-table-next-field))))) |
| 3452 | 3452 | ||
| 3453 | ((eq arg t) ;; Global cycling | 3453 | ((eq arg t) ;; Global cycling |
| 3454 | 3454 | ||
| 3455 | (cond | 3455 | (cond |
| 3456 | ((and (eq last-command this-command) | 3456 | ((and (eq last-command this-command) |
| 3457 | (eq org-cycle-global-status 'overview)) | 3457 | (eq org-cycle-global-status 'overview)) |
| @@ -3951,7 +3951,7 @@ would end up with no indentation after the change, nothing at all is done." | |||
| 3951 | (let ((end (save-excursion (outline-next-heading) | 3951 | (let ((end (save-excursion (outline-next-heading) |
| 3952 | (point-marker))) | 3952 | (point-marker))) |
| 3953 | (prohibit (if (> diff 0) | 3953 | (prohibit (if (> diff 0) |
| 3954 | "^\\S-" | 3954 | "^\\S-" |
| 3955 | (concat "^ \\{0," (int-to-string (- diff)) "\\}\\S-"))) | 3955 | (concat "^ \\{0," (int-to-string (- diff)) "\\}\\S-"))) |
| 3956 | col) | 3956 | col) |
| 3957 | (unless (save-excursion (re-search-forward prohibit end t)) | 3957 | (unless (save-excursion (re-search-forward prohibit end t)) |
| @@ -4215,7 +4215,7 @@ If optional TXT is given, check this string instead of the current kill." | |||
| 4215 | (setq status (equal (match-string 0) "[X]")) | 4215 | (setq status (equal (match-string 0) "[X]")) |
| 4216 | (when (eq firstnew 'unknown) | 4216 | (when (eq firstnew 'unknown) |
| 4217 | (setq firstnew (not status))) | 4217 | (setq firstnew (not status))) |
| 4218 | (replace-match | 4218 | (replace-match |
| 4219 | (if (if arg (not status) firstnew) "[X]" "[ ]") t t)) | 4219 | (if (if arg (not status) firstnew) "[X]" "[ ]") t t)) |
| 4220 | (beginning-of-line 2)))))) | 4220 | (beginning-of-line 2)))))) |
| 4221 | 4221 | ||
| @@ -4511,7 +4511,7 @@ this heading. " | |||
| 4511 | (if find-done | 4511 | (if find-done |
| 4512 | (org-archive-all-done) | 4512 | (org-archive-all-done) |
| 4513 | ;; Save all relevant TODO keyword-relatex variables | 4513 | ;; Save all relevant TODO keyword-relatex variables |
| 4514 | 4514 | ||
| 4515 | (let ((tr-org-todo-line-regexp org-todo-line-regexp) ; keep despite compiler | 4515 | (let ((tr-org-todo-line-regexp org-todo-line-regexp) ; keep despite compiler |
| 4516 | (tr-org-todo-keywords org-todo-keywords) | 4516 | (tr-org-todo-keywords org-todo-keywords) |
| 4517 | (tr-org-todo-interpretation org-todo-interpretation) | 4517 | (tr-org-todo-interpretation org-todo-interpretation) |
| @@ -4618,7 +4618,7 @@ When TAG is non-nil, don't move trees, but mark them with the ARCHIVE tag." | |||
| 4618 | (if (org-on-heading-p) | 4618 | (if (org-on-heading-p) |
| 4619 | (progn | 4619 | (progn |
| 4620 | (setq re1 (concat "^" (regexp-quote | 4620 | (setq re1 (concat "^" (regexp-quote |
| 4621 | (make-string | 4621 | (make-string |
| 4622 | (1+ (- (match-end 0) (match-beginning 0))) | 4622 | (1+ (- (match-end 0) (match-beginning 0))) |
| 4623 | ?*)) | 4623 | ?*)) |
| 4624 | " ")) | 4624 | " ")) |
| @@ -4749,7 +4749,7 @@ the children that do not contain any open TODO items." | |||
| 4749 | (org-end-of-subtree) | 4749 | (org-end-of-subtree) |
| 4750 | (throw :skip t)) | 4750 | (throw :skip t)) |
| 4751 | (if (equal (char-after p) ?#) (throw :skip t)))) | 4751 | (if (equal (char-after p) ?#) (throw :skip t)))) |
| 4752 | 4752 | ||
| 4753 | (defun org-agenda-toggle-archive-tag () | 4753 | (defun org-agenda-toggle-archive-tag () |
| 4754 | "Toggle the archive tag for the current entry." | 4754 | "Toggle the archive tag for the current entry." |
| 4755 | (interactive) | 4755 | (interactive) |
| @@ -6190,12 +6190,12 @@ the returned times will be formatted strings." | |||
| 6190 | (apply 'encode-time (org-parse-time-string te))))) | 6190 | (apply 'encode-time (org-parse-time-string te))))) |
| 6191 | (move-marker ins (point)) | 6191 | (move-marker ins (point)) |
| 6192 | (setq ipos (point)) | 6192 | (setq ipos (point)) |
| 6193 | (insert-before-markers "Clock summary at [" | 6193 | (insert-before-markers "Clock summary at [" |
| 6194 | (substring | 6194 | (substring |
| 6195 | (format-time-string (cdr org-time-stamp-formats)) | 6195 | (format-time-string (cdr org-time-stamp-formats)) |
| 6196 | 1 -1) | 6196 | 1 -1) |
| 6197 | "]." | 6197 | "]." |
| 6198 | (if block | 6198 | (if block |
| 6199 | (format " Considered range is /%s/." block) | 6199 | (format " Considered range is /%s/." block) |
| 6200 | "") | 6200 | "") |
| 6201 | "\n\n|L|Headline|Time|\n") | 6201 | "\n\n|L|Headline|Time|\n") |
| @@ -6221,7 +6221,7 @@ the returned times will be formatted strings." | |||
| 6221 | (goto-char ins) | 6221 | (goto-char ins) |
| 6222 | (if (= level 1) (insert-before-markers "|-\n")) | 6222 | (if (= level 1) (insert-before-markers "|-\n")) |
| 6223 | (insert-before-markers | 6223 | (insert-before-markers |
| 6224 | "| " (int-to-string level) "|" hlc hdl hlc " |" | 6224 | "| " (int-to-string level) "|" hlc hdl hlc " |" |
| 6225 | (make-string (1- level) ?|) | 6225 | (make-string (1- level) ?|) |
| 6226 | hlc | 6226 | hlc |
| 6227 | (format "%d:%02d" h m) | 6227 | (format "%d:%02d" h m) |
| @@ -8816,7 +8816,7 @@ With prefix ARG, realign all tags in headings in the current buffer." | |||
| 8816 | nil nil current 'org-tags-history)))) | 8816 | nil nil current 'org-tags-history)))) |
| 8817 | (while (string-match "[-+&]+" tags) | 8817 | (while (string-match "[-+&]+" tags) |
| 8818 | (setq tags (replace-match ":" t t tags)))) | 8818 | (setq tags (replace-match ":" t t tags)))) |
| 8819 | 8819 | ||
| 8820 | (unless (setq empty (string-match "\\`[\t ]*\\'" tags)) | 8820 | (unless (setq empty (string-match "\\`[\t ]*\\'" tags)) |
| 8821 | (unless (string-match ":$" tags) (setq tags (concat tags ":"))) | 8821 | (unless (string-match ":$" tags) (setq tags (concat tags ":"))) |
| 8822 | (unless (string-match "^:" tags) (setq tags (concat ":" tags)))) | 8822 | (unless (string-match "^:" tags) (setq tags (concat ":" tags)))) |
| @@ -9969,7 +9969,7 @@ For file links, arg negates `org-context-in-file-links'." | |||
| 9969 | ((eq major-mode 'image-mode) | 9969 | ((eq major-mode 'image-mode) |
| 9970 | (setq cpltxt (concat "file:" | 9970 | (setq cpltxt (concat "file:" |
| 9971 | (abbreviate-file-name buffer-file-name)) | 9971 | (abbreviate-file-name buffer-file-name)) |
| 9972 | link (org-make-link cpltxt))) | 9972 | link (org-make-link cpltxt))) |
| 9973 | 9973 | ||
| 9974 | ((org-mode-p) | 9974 | ((org-mode-p) |
| 9975 | ;; Just link to current headline | 9975 | ;; Just link to current headline |
| @@ -13352,7 +13352,7 @@ translations. There is currently no way for users to extend this.") | |||
| 13352 | 13352 | ||
| 13353 | ;; Convert LaTeX fragments to images | 13353 | ;; Convert LaTeX fragments to images |
| 13354 | (when (memq :LaTeX-fragments parameters) | 13354 | (when (memq :LaTeX-fragments parameters) |
| 13355 | (org-format-latex | 13355 | (org-format-latex |
| 13356 | (concat "ltxpng/" (file-name-sans-extension | 13356 | (concat "ltxpng/" (file-name-sans-extension |
| 13357 | (file-name-nondirectory | 13357 | (file-name-nondirectory |
| 13358 | org-current-export-file))) | 13358 | org-current-export-file))) |
| @@ -13871,7 +13871,7 @@ org-mode's default settings, but still inferior to file-local settings." | |||
| 13871 | (all_lines | 13871 | (all_lines |
| 13872 | (org-skip-comments (org-split-string | 13872 | (org-skip-comments (org-split-string |
| 13873 | (org-cleaned-string-for-export | 13873 | (org-cleaned-string-for-export |
| 13874 | region :emph-multiline | 13874 | region :emph-multiline |
| 13875 | (if (plist-get opt-plist :LaTeX-fragments) | 13875 | (if (plist-get opt-plist :LaTeX-fragments) |
| 13876 | :LaTeX-fragments)) | 13876 | :LaTeX-fragments)) |
| 13877 | "[\r\n]"))) | 13877 | "[\r\n]"))) |
| @@ -14135,7 +14135,7 @@ lang=\"%s\" xml:lang=\"%s\"> | |||
| 14135 | (setq valid | 14135 | (setq valid |
| 14136 | (if (functionp link-validate) | 14136 | (if (functionp link-validate) |
| 14137 | (funcall link-validate filename current-dir) | 14137 | (funcall link-validate filename current-dir) |
| 14138 | t)) | 14138 | t)) |
| 14139 | (setq file-is-image-p | 14139 | (setq file-is-image-p |
| 14140 | (string-match (org-image-file-name-regexp) filename)) | 14140 | (string-match (org-image-file-name-regexp) filename)) |
| 14141 | (setq thefile (if abs-p (expand-file-name filename) filename)) | 14141 | (setq thefile (if abs-p (expand-file-name filename) filename)) |
| @@ -14991,7 +14991,7 @@ a time), or the day by one (if it does not contain a time)." | |||
| 14991 | (defvar org-cdlatex-texmathp-advice-is-done nil | 14991 | (defvar org-cdlatex-texmathp-advice-is-done nil |
| 14992 | "Flag remembering if we have applied the advice to texmathp already.") | 14992 | "Flag remembering if we have applied the advice to texmathp already.") |
| 14993 | 14993 | ||
| 14994 | (define-minor-mode org-cdlatex-mode | 14994 | (define-minor-mode org-cdlatex-mode |
| 14995 | "Toggle the minor `org-cdlatex-mode'. | 14995 | "Toggle the minor `org-cdlatex-mode'. |
| 14996 | This mode supports entering LaTeX environment and math in LaTeX fragments | 14996 | This mode supports entering LaTeX environment and math in LaTeX fragments |
| 14997 | in Org-mode. | 14997 | in Org-mode. |
| @@ -15119,7 +15119,7 @@ Revert to the normal definition outside of these fragments." | |||
| 15119 | If the cursor is in a LaTeX fragment, create the image and overlay | 15119 | If the cursor is in a LaTeX fragment, create the image and overlay |
| 15120 | it over the source code. If there is no fragment at point, display | 15120 | it over the source code. If there is no fragment at point, display |
| 15121 | all fragments in the current text, from one headline to the next. With | 15121 | all fragments in the current text, from one headline to the next. With |
| 15122 | prefix SUBTREE, display all fragments in the current subtree. With a | 15122 | prefix SUBTREE, display all fragments in the current subtree. With a |
| 15123 | double prefix `C-u C-u', or when the cursor is before the first headline, | 15123 | double prefix `C-u C-u', or when the cursor is before the first headline, |
| 15124 | display all fragments in the buffer. | 15124 | display all fragments in the buffer. |
| 15125 | The images can be removed again with \\[org-ctrl-c-ctrl-c]." | 15125 | The images can be removed again with \\[org-ctrl-c-ctrl-c]." |
| @@ -15207,16 +15207,16 @@ The images can be removed again with \\[org-ctrl-c-ctrl-c]." | |||
| 15207 | (progn | 15207 | (progn |
| 15208 | (org-overlay-put ov 'invisible t) | 15208 | (org-overlay-put ov 'invisible t) |
| 15209 | (org-overlay-put | 15209 | (org-overlay-put |
| 15210 | ov 'end-glyph | 15210 | ov 'end-glyph |
| 15211 | (make-glyph (vector 'png :file movefile)))) | 15211 | (make-glyph (vector 'png :file movefile)))) |
| 15212 | (org-overlay-put | 15212 | (org-overlay-put |
| 15213 | ov 'display | 15213 | ov 'display |
| 15214 | (list 'image :type 'png :file movefile :ascent 'center))) | 15214 | (list 'image :type 'png :file movefile :ascent 'center))) |
| 15215 | (push ov org-latex-fragment-image-overlays) | 15215 | (push ov org-latex-fragment-image-overlays) |
| 15216 | (goto-char end)) | 15216 | (goto-char end)) |
| 15217 | (delete-region beg end) | 15217 | (delete-region beg end) |
| 15218 | (insert link)))))))) | 15218 | (insert link)))))))) |
| 15219 | 15219 | ||
| 15220 | ;; This function borrows from Ganesh Swami's latex2png.el | 15220 | ;; This function borrows from Ganesh Swami's latex2png.el |
| 15221 | (defun org-create-formula-image (string tofile options) | 15221 | (defun org-create-formula-image (string tofile options) |
| 15222 | (let* ((tmpdir (if (featurep 'xemacs) | 15222 | (let* ((tmpdir (if (featurep 'xemacs) |
| @@ -15868,7 +15868,7 @@ See the individual commands for more information." | |||
| 15868 | :style toggle :selected (not org-agenda-skip-archived-trees)] | 15868 | :style toggle :selected (not org-agenda-skip-archived-trees)] |
| 15869 | "--" | 15869 | "--" |
| 15870 | ["Move Subtree to Archive" org-archive-subtree t] | 15870 | ["Move Subtree to Archive" org-archive-subtree t] |
| 15871 | ["Check and Move Children" (org-archive-subtree '(4)) | 15871 | ["Check and Move Children" (org-archive-subtree '(4)) |
| 15872 | :active t :keys "C-u C-c $"]) | 15872 | :active t :keys "C-u C-c $"]) |
| 15873 | "--" | 15873 | "--" |
| 15874 | ("TODO Lists" | 15874 | ("TODO Lists" |
| @@ -15938,14 +15938,14 @@ See the individual commands for more information." | |||
| 15938 | "--" | 15938 | "--" |
| 15939 | ["Export/Publish" org-export t] | 15939 | ["Export/Publish" org-export t] |
| 15940 | ("LaTeX" | 15940 | ("LaTeX" |
| 15941 | ["Org CDLaTeX mode" org-cdlatex-mode :style toggle | 15941 | ["Org CDLaTeX mode" org-cdlatex-mode :style toggle |
| 15942 | :selected org-cdlatex-mode] | 15942 | :selected org-cdlatex-mode] |
| 15943 | ["Insert Environment" cdlatex-environment (fboundp 'cdlatex-environment)] | 15943 | ["Insert Environment" cdlatex-environment (fboundp 'cdlatex-environment)] |
| 15944 | ["Insert math symbol" cdlatex-math-symbol (fboundp 'cdlatex-math-symbol)] | 15944 | ["Insert math symbol" cdlatex-math-symbol (fboundp 'cdlatex-math-symbol)] |
| 15945 | ["Modify math symbol" org-cdlatex-math-modify | 15945 | ["Modify math symbol" org-cdlatex-math-modify |
| 15946 | (org-inside-LaTeX-fragment-p)] | 15946 | (org-inside-LaTeX-fragment-p)] |
| 15947 | ["Export LaTeX fragments as images" | 15947 | ["Export LaTeX fragments as images" |
| 15948 | (setq org-export-with-LaTeX-fragments (not org-export-with-LaTeX-fragments)) | 15948 | (setq org-export-with-LaTeX-fragments (not org-export-with-LaTeX-fragments)) |
| 15949 | :style toggle :selected org-export-with-LaTeX-fragments]) | 15949 | :style toggle :selected org-export-with-LaTeX-fragments]) |
| 15950 | "--" | 15950 | "--" |
| 15951 | ("Documentation" | 15951 | ("Documentation" |
| @@ -16095,13 +16095,13 @@ and :keyword." | |||
| 16095 | (push (org-point-in-group p 0 :radio-target) clist)) | 16095 | (push (org-point-in-group p 0 :radio-target) clist)) |
| 16096 | (goto-char p)) | 16096 | (goto-char p)) |
| 16097 | ((setq o (car (delq nil | 16097 | ((setq o (car (delq nil |
| 16098 | (mapcar | 16098 | (mapcar |
| 16099 | (lambda (x) | 16099 | (lambda (x) |
| 16100 | (if (memq x org-latex-fragment-image-overlays) x)) | 16100 | (if (memq x org-latex-fragment-image-overlays) x)) |
| 16101 | (org-overlays-at (point)))))) | 16101 | (org-overlays-at (point)))))) |
| 16102 | (push (list :latex-fragment | 16102 | (push (list :latex-fragment |
| 16103 | (org-overlay-start o) (org-overlay-end o)) clist) | 16103 | (org-overlay-start o) (org-overlay-end o)) clist) |
| 16104 | (push (list :latex-preview | 16104 | (push (list :latex-preview |
| 16105 | (org-overlay-start o) (org-overlay-end o)) clist)) | 16105 | (org-overlay-start o) (org-overlay-end o)) clist)) |
| 16106 | ((org-inside-LaTeX-fragment-p) | 16106 | ((org-inside-LaTeX-fragment-p) |
| 16107 | ;; FIXME: positions wring. | 16107 | ;; FIXME: positions wring. |
| @@ -16411,7 +16411,7 @@ Show the heading too, if it is currently invisible." | |||
| 16411 | 16411 | ||
| 16412 | 16412 | ||
| 16413 | ;;; Finish up | 16413 | ;;; Finish up |
| 16414 | 16414 | ||
| 16415 | (provide 'org) | 16415 | (provide 'org) |
| 16416 | 16416 | ||
| 16417 | (run-hooks 'org-load-hook) | 16417 | (run-hooks 'org-load-hook) |