Turn org-mode into Org or Org mode
Use Org or Org mode instead of org-mode or Org-mode according to "Documentation standards".
This commit is contained in:
parent
112463cbff
commit
de24694f05
|
@ -27,8 +27,8 @@
|
|||
;;
|
||||
;; - :in-file takes a path to a file of data to be processed by awk
|
||||
;;
|
||||
;; - :stdin takes an Org-mode data or code block reference, the value
|
||||
;; of which will be passed to the awk process through STDIN
|
||||
;; - :stdin takes an Org data or code block reference, the value of
|
||||
;; which will be passed to the awk process through STDIN
|
||||
|
||||
;;; Code:
|
||||
(require 'ob)
|
||||
|
|
|
@ -110,10 +110,10 @@
|
|||
"Confirm before evaluation.
|
||||
\\<org-mode-map>\
|
||||
Require confirmation before interactively evaluating code
|
||||
blocks in Org-mode buffers. The default value of this variable
|
||||
is t, meaning confirmation is required for any code block
|
||||
evaluation. This variable can be set to nil to inhibit any
|
||||
future confirmation requests. This variable can also be set to a
|
||||
blocks in Org buffers. The default value of this variable is t,
|
||||
meaning confirmation is required for any code block evaluation.
|
||||
This variable can be set to nil to inhibit any future
|
||||
confirmation requests. This variable can also be set to a
|
||||
function which takes two arguments the language of the code block
|
||||
and the body of the code block. Such a function should then
|
||||
return a non-nil value if the user should be prompted for
|
||||
|
@ -983,10 +983,10 @@ Return t if a code block was found at point, nil otherwise."
|
|||
"Read key sequence and execute the command in edit buffer.
|
||||
Enter a key sequence to be executed in the language major-mode
|
||||
edit buffer. For example, TAB will alter the contents of the
|
||||
Org-mode code block according to the effect of TAB in the
|
||||
language major-mode buffer. For languages that support
|
||||
interactive sessions, this can be used to send code from the Org
|
||||
buffer to the session for evaluation using the native major-mode
|
||||
Org code block according to the effect of TAB in the language
|
||||
major mode buffer. For languages that support interactive
|
||||
sessions, this can be used to send code from the Org buffer
|
||||
to the session for evaluation using the native major mode
|
||||
evaluation mechanisms."
|
||||
(interactive "kEnter key-sequence to execute in edit buffer: ")
|
||||
(org-babel-do-in-edit-buffer
|
||||
|
@ -2090,21 +2090,21 @@ replace - (default option) insert results after the source block
|
|||
or inline source block replacing any previously
|
||||
inserted results.
|
||||
|
||||
silent -- no results are inserted into the Org-mode buffer but
|
||||
silent -- no results are inserted into the Org buffer but
|
||||
the results are echoed to the minibuffer and are
|
||||
ingested by Emacs (a potentially time consuming
|
||||
process).
|
||||
|
||||
file ---- the results are interpreted as a file path, and are
|
||||
inserted into the buffer using the Org-mode file syntax.
|
||||
inserted into the buffer using the Org file syntax.
|
||||
|
||||
list ---- the results are interpreted as an Org-mode list.
|
||||
list ---- the results are interpreted as an Org list.
|
||||
|
||||
raw ----- results are added directly to the Org-mode file. This
|
||||
is a good option if you code block will output org-mode
|
||||
raw ----- results are added directly to the Org file. This is
|
||||
a good option if you code block will output Org
|
||||
formatted text.
|
||||
|
||||
drawer -- results are added directly to the Org-mode file as with
|
||||
drawer -- results are added directly to the Org file as with
|
||||
\"raw\", but are wrapped in a RESULTS drawer or results
|
||||
macro, allowing them to later be replaced or removed
|
||||
automatically.
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
;;; Commentary:
|
||||
|
||||
;; Since CSS can't be executed, this file exists solely for tangling
|
||||
;; CSS from org-mode files.
|
||||
;; CSS from Org files.
|
||||
|
||||
;;; Code:
|
||||
(require 'ob)
|
||||
|
|
|
@ -150,7 +150,7 @@ specifying a variable of the same value."
|
|||
When called with a prefix argument the resulting
|
||||
.lhs file will be exported to a .tex file. This function will
|
||||
create two new files, base-name.lhs and base-name.tex where
|
||||
base-name is the name of the current org-mode file.
|
||||
base-name is the name of the current Org file.
|
||||
|
||||
Note that all standard Babel literate programming
|
||||
constructs (header arguments, no-web syntax etc...) are ignored."
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
;;; Commentary:
|
||||
|
||||
;; Add org-babel keybindings to the org-mode keymap for exposing
|
||||
;; org-babel functions. These will all share a common prefix. See
|
||||
;; Add Org Babel keybindings to the Org mode keymap for exposing
|
||||
;; Org Babel functions. These will all share a common prefix. See
|
||||
;; the value of `org-babel-key-bindings' for a list of interactive
|
||||
;; functions and their associated keys.
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
;;; Commentary:
|
||||
|
||||
;; Should allow calling functions from org-mode tables using the
|
||||
;; function `org-sbe' as so...
|
||||
;; Should allow calling functions from Org tables using the function
|
||||
;; `org-sbe' as so...
|
||||
|
||||
;; #+begin_src emacs-lisp :results silent
|
||||
;; (defun fibbd (n) (if (< n 2) 1 (+ (fibbd (- n 1)) (fibbd (- n 2)))))
|
||||
|
|
|
@ -67,7 +67,7 @@ then the name of the language is used."
|
|||
(string "File Extension"))))
|
||||
|
||||
(defcustom org-babel-tangle-use-relative-file-links t
|
||||
"Use relative path names in links from tangled source back the Org-mode file."
|
||||
"Use relative path names in links from tangled source back the Org file."
|
||||
:group 'org-babel-tangle
|
||||
:type 'boolean)
|
||||
|
||||
|
@ -95,7 +95,7 @@ The following format strings can be used to insert special
|
|||
information into the output using `org-fill-template'.
|
||||
%start-line --- the line number at the start of the code block
|
||||
%file --------- the file from which the code block was tangled
|
||||
%link --------- Org-mode style link to the code block
|
||||
%link --------- Org style link to the code block
|
||||
%source-name -- name of the code block
|
||||
|
||||
Upon insertion the formatted comment will be commented out, and
|
||||
|
@ -115,7 +115,7 @@ The following format strings can be used to insert special
|
|||
information into the output using `org-fill-template'.
|
||||
%start-line --- the line number at the start of the code block
|
||||
%file --------- the file from which the code block was tangled
|
||||
%link --------- Org-mode style link to the code block
|
||||
%link --------- Org style link to the code block
|
||||
%source-name -- name of the code block
|
||||
|
||||
Upon insertion the formatted comment will be commented out, and
|
||||
|
@ -138,7 +138,7 @@ of tangled comments."
|
|||
:type 'boolean)
|
||||
|
||||
(defcustom org-babel-process-comment-text 'org-remove-indentation
|
||||
"Function called to process raw Org-mode text collected to be
|
||||
"Function called to process raw Org text collected to be
|
||||
inserted as comments in tangled source-code files. The function
|
||||
should take a single string argument and return a string
|
||||
result. The default value is `org-remove-indentation'."
|
||||
|
@ -323,7 +323,7 @@ used to limit the exported source code blocks by language."
|
|||
Call this function inside of a source-code file generated by
|
||||
`org-babel-tangle' to remove all comments inserted automatically
|
||||
by `org-babel-tangle'. Warning, this comment removes any lines
|
||||
containing constructs which resemble org-mode file links or noweb
|
||||
containing constructs which resemble Org file links or noweb
|
||||
references."
|
||||
(interactive)
|
||||
(goto-char (point-min))
|
||||
|
@ -529,7 +529,7 @@ list to be used by `org-babel-tangle' directly."
|
|||
;; de-tangling functions
|
||||
(defvar org-bracket-link-analytic-regexp)
|
||||
(defun org-babel-detangle (&optional source-code-file)
|
||||
"Propagate changes in source file back original to Org-mode file.
|
||||
"Propagate changes in source file back original to Org file.
|
||||
This requires that code blocks were tangled with link comments
|
||||
which enable the original code blocks to be found."
|
||||
(interactive)
|
||||
|
|
|
@ -1421,7 +1421,7 @@ value, don't limit agenda view by outline level."
|
|||
:type 'integer)
|
||||
|
||||
(defgroup org-agenda-time-grid nil
|
||||
"Options concerning the time grid in the Org-mode Agenda."
|
||||
"Options concerning the time grid in the Org Agenda."
|
||||
:tag "Org Agenda Time Grid"
|
||||
:group 'org-agenda)
|
||||
|
||||
|
@ -1493,7 +1493,7 @@ a grid line."
|
|||
:type 'string)
|
||||
|
||||
(defgroup org-agenda-sorting nil
|
||||
"Options concerning sorting in the Org-mode Agenda."
|
||||
"Options concerning sorting in the Org Agenda."
|
||||
:tag "Org Agenda Sorting"
|
||||
:group 'org-agenda)
|
||||
|
||||
|
@ -1599,7 +1599,7 @@ When nil, such items are sorted as 0 minutes effort."
|
|||
:type 'boolean)
|
||||
|
||||
(defgroup org-agenda-line-format nil
|
||||
"Options concerning the entry prefix in the Org-mode agenda display."
|
||||
"Options concerning the entry prefix in the Org agenda display."
|
||||
:tag "Org Agenda Line Format"
|
||||
:group 'org-agenda)
|
||||
|
||||
|
@ -2112,7 +2112,7 @@ When nil, `q' will kill the single agenda buffer."
|
|||
"Variables that must be local in agenda buffers to allow multiple buffers.")
|
||||
|
||||
(defun org-agenda-mode ()
|
||||
"Mode for time-sorted view on action items in Org-mode files.
|
||||
"Mode for time-sorted view on action items in Org files.
|
||||
|
||||
The following commands are available:
|
||||
|
||||
|
@ -2393,7 +2393,7 @@ The following commands are available:
|
|||
["Remove Restriction" org-agenda-remove-restriction-lock org-agenda-restrict])
|
||||
["Write view to file" org-agenda-write t]
|
||||
["Rebuild buffer" org-agenda-redo t]
|
||||
["Save all Org-mode Buffers" org-save-all-org-buffers t]
|
||||
["Save all Org buffers" org-save-all-org-buffers t]
|
||||
"--"
|
||||
["Show original entry" org-agenda-show t]
|
||||
["Go To (other window)" org-agenda-goto t]
|
||||
|
@ -2695,7 +2695,7 @@ More commands can be added by configuring the variable
|
|||
`org-agenda-custom-commands'. In particular, specific tags and TODO keyword
|
||||
searches can be pre-defined in this way.
|
||||
|
||||
If the current buffer is in Org-mode and visiting a file, you can also
|
||||
If the current buffer is in Org mode and visiting a file, you can also
|
||||
first press `<' once to indicate that the agenda should be temporarily
|
||||
\(until the next use of \\[org-agenda]) restricted to the current file.
|
||||
Pressing `<' twice means to restrict to the current subtree or region
|
||||
|
@ -2843,7 +2843,7 @@ Pressing `<' twice means to restrict to the current subtree or region
|
|||
t t))
|
||||
((equal org-keys "L")
|
||||
(unless (derived-mode-p 'org-mode)
|
||||
(user-error "This is not an Org-mode file"))
|
||||
(user-error "This is not an Org file"))
|
||||
(unless restriction
|
||||
(put 'org-agenda-files 'org-restrict (list bfn))
|
||||
(org-call-with-arg 'org-timeline arg)))
|
||||
|
@ -3041,7 +3041,7 @@ L Timeline for current buffer # List stuck projects (!=configure)
|
|||
(call-interactively 'org-toggle-sticky-agenda)
|
||||
(sit-for 2))
|
||||
((and (not restrict-ok) (memq c '(?1 ?0 ?<)))
|
||||
(message "Restriction is only possible in Org-mode buffers")
|
||||
(message "Restriction is only possible in Org buffers")
|
||||
(ding) (sit-for 1))
|
||||
((eq c ?1)
|
||||
(org-agenda-remove-restriction-lock 'noupdate)
|
||||
|
@ -3530,7 +3530,7 @@ removed from the entry content. Currently only `planning' is allowed here."
|
|||
(defun org-check-for-org-mode ()
|
||||
"Make sure current buffer is in org-mode. Error if not."
|
||||
(or (derived-mode-p 'org-mode)
|
||||
(error "Cannot execute org-mode agenda command on buffer in %s"
|
||||
(error "Cannot execute Org agenda command on buffer in %s"
|
||||
major-mode)))
|
||||
|
||||
;;; Agenda prepare and finalize
|
||||
|
@ -4403,7 +4403,7 @@ START-DAY is an absolute time value."
|
|||
(defvar org-agenda-search-history nil)
|
||||
|
||||
(defvar org-search-syntax-table nil
|
||||
"Special syntax table for org-mode search.
|
||||
"Special syntax table for Org search.
|
||||
In this table, we have single quotes not as word constituents, to
|
||||
that when \"+Ameli\" is searched as a work, it will also match \"Ameli's\"")
|
||||
|
||||
|
@ -5220,7 +5220,7 @@ date. It also removes lines that contain only whitespace."
|
|||
(setq string (org-modify-diary-entry-string string))))))
|
||||
|
||||
(defun org-modify-diary-entry-string (string)
|
||||
"Add text properties to string, allowing org-mode to act on it."
|
||||
"Add text properties to string, allowing Org to act on it."
|
||||
(org-add-props string nil
|
||||
'mouse-face 'highlight
|
||||
'help-echo (if buffer-file-name
|
||||
|
@ -8370,7 +8370,7 @@ When called with a prefix argument, include all archive files as well."
|
|||
(message "No tags associated with this line"))))
|
||||
|
||||
(defun org-agenda-goto (&optional highlight)
|
||||
"Go to the entry at point in the corresponding Org-mode file."
|
||||
"Go to the entry at point in the corresponding Org file."
|
||||
(interactive)
|
||||
(let* ((marker (or (org-get-at-bol 'org-marker)
|
||||
(org-agenda-error)))
|
||||
|
@ -8472,7 +8472,7 @@ Point is in the buffer where the item originated.")
|
|||
(org-remove-subtree-entries-from-agenda))
|
||||
(org-back-to-heading t)
|
||||
(funcall cmd)))
|
||||
(error "Archiving works only in Org-mode files"))))))
|
||||
(error "Archiving works only in Org files"))))))
|
||||
|
||||
(defun org-remove-subtree-entries-from-agenda (&optional buf beg end)
|
||||
"Remove all lines in the agenda that correspond to a given subtree.
|
||||
|
@ -8609,13 +8609,13 @@ displayed Org file fills the frame."
|
|||
(run-hooks 'org-agenda-after-show-hook)))))
|
||||
|
||||
(defun org-agenda-goto-mouse (ev)
|
||||
"Go to the Org-mode file which contains the item at the mouse click."
|
||||
"Go to the Org file which contains the item at the mouse click."
|
||||
(interactive "e")
|
||||
(mouse-set-point ev)
|
||||
(org-agenda-goto))
|
||||
|
||||
(defun org-agenda-show (&optional full-entry)
|
||||
"Display the Org-mode file which contains the item at point.
|
||||
"Display the Org file which contains the item at point.
|
||||
With prefix argument FULL-ENTRY, make the entire entry visible
|
||||
if it was hidden in the outline."
|
||||
(interactive "P")
|
||||
|
@ -8626,7 +8626,7 @@ if it was hidden in the outline."
|
|||
|
||||
(defvar org-agenda-show-window nil)
|
||||
(defun org-agenda-show-and-scroll-up (&optional arg)
|
||||
"Display the Org-mode file which contains the item at point.
|
||||
"Display the Org file which contains the item at point.
|
||||
When called repeatedly, scroll the window that is displaying the buffer.
|
||||
With a \\[universal-argument] prefix, use `org-show-entry' instead of
|
||||
`show-subtree' to display the item, so that drawers and logbooks stay
|
||||
|
@ -8653,7 +8653,7 @@ folded."
|
|||
(select-window win))))
|
||||
|
||||
(defun org-agenda-show-1 (&optional more)
|
||||
"Display the Org-mode file which contains the item at point.
|
||||
"Display the Org file which contains the item at point.
|
||||
The prefix arg selects the amount of information to display:
|
||||
|
||||
0 hide the subtree
|
||||
|
@ -8728,7 +8728,7 @@ docstring of `org-agenda-show-1'."
|
|||
(org-agenda-show-1 org-agenda-cycle-counter))
|
||||
|
||||
(defun org-agenda-recenter (arg)
|
||||
"Display the Org-mode file which contains the item at point and recenter."
|
||||
"Display the Org file which contains the item at point and recenter."
|
||||
(interactive "P")
|
||||
(let ((win (selected-window)))
|
||||
(org-agenda-goto t)
|
||||
|
@ -8736,7 +8736,7 @@ docstring of `org-agenda-show-1'."
|
|||
(select-window win)))
|
||||
|
||||
(defun org-agenda-show-mouse (ev)
|
||||
"Display the Org-mode file which contains the item at the mouse click."
|
||||
"Display the Org file which contains the item at the mouse click."
|
||||
(interactive "e")
|
||||
(mouse-set-point ev)
|
||||
(org-agenda-show))
|
||||
|
@ -8805,9 +8805,9 @@ by a remote command from the agenda.")
|
|||
(org-agenda-todo 'previousset))
|
||||
|
||||
(defun org-agenda-todo (&optional arg)
|
||||
"Cycle TODO state of line at point, also in Org-mode file.
|
||||
"Cycle TODO state of line at point, also in Org file.
|
||||
This changes the line at point, all other lines in the agenda referring to
|
||||
the same tree node, and the headline of the tree node in the Org-mode file."
|
||||
the same tree node, and the headline of the tree node in the Org file."
|
||||
(interactive "P")
|
||||
(org-agenda-check-no-diary)
|
||||
(let* ((col (current-column))
|
||||
|
@ -8966,19 +8966,19 @@ If FORCE-TAGS is non nil, the car of it returns the new tags."
|
|||
(org-font-lock-add-tag-faces (point-max)))))
|
||||
|
||||
(defun org-agenda-priority-up ()
|
||||
"Increase the priority of line at point, also in Org-mode file."
|
||||
"Increase the priority of line at point, also in Org file."
|
||||
(interactive)
|
||||
(org-agenda-priority 'up))
|
||||
|
||||
(defun org-agenda-priority-down ()
|
||||
"Decrease the priority of line at point, also in Org-mode file."
|
||||
"Decrease the priority of line at point, also in Org file."
|
||||
(interactive)
|
||||
(org-agenda-priority 'down))
|
||||
|
||||
(defun org-agenda-priority (&optional force-direction)
|
||||
"Set the priority of line at point, also in Org-mode file.
|
||||
"Set the priority of line at point, also in Org file.
|
||||
This changes the line at point, all other lines in the agenda referring to
|
||||
the same tree node, and the headline of the tree node in the Org-mode file.
|
||||
the same tree node, and the headline of the tree node in the Org file.
|
||||
Called with a universal prefix arg, show the priority instead of setting it."
|
||||
(interactive "P")
|
||||
(if (equal force-direction '(4))
|
||||
|
@ -9517,7 +9517,7 @@ a timestamp can be added there."
|
|||
All the standard commands work: block, weekly etc.
|
||||
When `org-agenda-diary-file' points to a file,
|
||||
`org-agenda-diary-entry-in-org-file' is called instead to create
|
||||
entries in that Org-mode file."
|
||||
entries in that Org file."
|
||||
(interactive)
|
||||
(if (not (eq org-agenda-diary-file 'diary-file))
|
||||
(org-agenda-diary-entry-in-org-file)
|
||||
|
@ -9622,7 +9622,7 @@ argument, latitude and longitude will be prompted for."
|
|||
|
||||
;;;###autoload
|
||||
(defun org-calendar-goto-agenda ()
|
||||
"Compute the Org-mode agenda for the calendar date displayed at the cursor.
|
||||
"Compute the Org agenda for the calendar date displayed at the cursor.
|
||||
This is a command that has to be installed in `calendar-mode-map'."
|
||||
(interactive)
|
||||
;; Temporarily disable sticky agenda since user clearly wants to
|
||||
|
|
|
@ -57,7 +57,7 @@ See `org-archive-to-archive-sibling' for more information."
|
|||
|
||||
(defcustom org-archive-mark-done nil
|
||||
"Non-nil means mark entries as DONE when they are moved to the archive file.
|
||||
This can be a string to set the keyword to use. When t, Org-mode will
|
||||
This can be a string to set the keyword to use. When non-nil, Org will
|
||||
use the first keyword in its list that means done."
|
||||
:group 'org-archive
|
||||
:type '(choice
|
||||
|
@ -287,7 +287,7 @@ this heading."
|
|||
;; which would lead to duplication of subtrees
|
||||
(let (this-command) (org-copy-subtree 1 nil t))
|
||||
(set-buffer buffer)
|
||||
;; Enforce org-mode for the archive buffer
|
||||
;; Enforce Org mode for the archive buffer
|
||||
(if (not (derived-mode-p 'org-mode))
|
||||
;; Force the mode for future visits.
|
||||
(let ((org-insert-mode-line-in-empty-file t)
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
;;; Commentary:
|
||||
|
||||
;; See the Org-mode manual for information on how to use it.
|
||||
;; See the Org manual for information on how to use it.
|
||||
;;
|
||||
;; Attachments are managed in a special directory called "data", which
|
||||
;; lives in the same directory as the org file itself. If this data
|
||||
|
|
|
@ -26,11 +26,11 @@
|
|||
;;; Commentary:
|
||||
|
||||
;; This file implements links to BBDB database entries from within Org-mode.
|
||||
;; Org-mode loads this module by default - if this is not what you want,
|
||||
;; Org mode loads this module by default - if this is not what you want,
|
||||
;; configure the variable `org-modules'.
|
||||
|
||||
;; It also implements an interface (based on Ivar Rummelhoff's
|
||||
;; bbdb-anniv.el) for those org-mode users, who do not use the diary
|
||||
;; bbdb-anniv.el) for those Org users, who do not use the diary
|
||||
;; but who do want to include the anniversaries stored in the BBDB
|
||||
;; into the org-agenda. If you already include the `diary' into the
|
||||
;; agenda, you might want to prefer to include the anniversaries in
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
;; =====================================================================
|
||||
;;
|
||||
;; Additionally, the following functions are now available for storing
|
||||
;; bibtex entries within Org-mode documents.
|
||||
;; bibtex entries within Org documents.
|
||||
;;
|
||||
;; - Run `org-bibtex' to export the current file to a .bib.
|
||||
;;
|
||||
|
@ -92,17 +92,17 @@
|
|||
;;
|
||||
;;; History:
|
||||
;;
|
||||
;; The link creation part has been part of Org-mode for a long time.
|
||||
;; The link creation part has been part of Org for a long time.
|
||||
;;
|
||||
;; Creating better capture template information was inspired by a request
|
||||
;; of Austin Frank: http://article.gmane.org/gmane.emacs.orgmode/4112
|
||||
;; and then implemented by Bastien Guerry.
|
||||
;;
|
||||
;; Eric Schulte eventually added the functions for translating between
|
||||
;; Org-mode headlines and Bibtex entries, and for fleshing out the Bibtex
|
||||
;; fields of existing Org-mode headlines.
|
||||
;; Org headlines and Bibtex entries, and for fleshing out the Bibtex
|
||||
;; fields of existing Org headlines.
|
||||
;;
|
||||
;; Org-mode loads this module by default - if this is not what you want,
|
||||
;; Org mode loads this module by default - if this is not what you want,
|
||||
;; configure the variable `org-modules'.
|
||||
|
||||
;;; Code:
|
||||
|
@ -548,7 +548,7 @@ With optional argument OPTIONAL, also prompt for optional fields."
|
|||
(add-hook 'org-execute-file-search-functions 'org-execute-file-search-in-bibtex)
|
||||
|
||||
|
||||
;;; Bibtex <-> Org-mode headline translation functions
|
||||
;;; Bibtex <-> Org headline translation functions
|
||||
(defun org-bibtex (filename)
|
||||
"Export each headline in the current file to a bibtex entry.
|
||||
Headlines are exported using `org-bibtex-headline'."
|
||||
|
@ -699,7 +699,7 @@ Return the number of saved entries."
|
|||
(mapc togtag org-bibtex-tags)))
|
||||
|
||||
(defun org-bibtex-yank ()
|
||||
"If kill ring holds a bibtex entry yank it as an Org-mode headline."
|
||||
"If kill ring holds a bibtex entry yank it as an Org headline."
|
||||
(interactive)
|
||||
(let (entry)
|
||||
(with-temp-buffer (yank 1) (setf entry (org-bibtex-read)))
|
||||
|
@ -708,7 +708,7 @@ Return the number of saved entries."
|
|||
(error "Yanked text does not appear to contain a BibTeX entry"))))
|
||||
|
||||
(defun org-bibtex-import-from-file (file)
|
||||
"Read bibtex entries from FILE and insert as Org-mode headlines after point."
|
||||
"Read bibtex entries from FILE and insert as Org headlines after point."
|
||||
(interactive "fFile: ")
|
||||
(dotimes (_ (org-bibtex-read-file file))
|
||||
(save-excursion (org-bibtex-write))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
;;; org-capture.el --- Fast note taking in Org-mode -*- lexical-binding: t; -*-
|
||||
;;; org-capture.el --- Fast note taking in Org -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2010-2016 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -105,9 +105,9 @@ description A short string describing the template, will be shown during
|
|||
selection.
|
||||
|
||||
type The type of entry. Valid types are:
|
||||
entry an Org-mode node, with a headline. Will be
|
||||
filed as the child of the target entry or as
|
||||
a top-level entry.
|
||||
entry an Org node, with a headline. Will be filed
|
||||
as the child of the target entry or as a
|
||||
top-level entry.
|
||||
item a plain list item, will be placed in the
|
||||
first plain list at the target
|
||||
location.
|
||||
|
@ -118,7 +118,7 @@ type The type of entry. Valid types are:
|
|||
plain text to be inserted as it is.
|
||||
|
||||
target Specification of where the captured item should be placed.
|
||||
In Org-mode files, targets usually define a node. Entries will
|
||||
In Org files, targets usually define a node. Entries will
|
||||
become children of this node, other types will be added to the
|
||||
table or list in the body of this node.
|
||||
|
||||
|
@ -449,7 +449,7 @@ to avoid conflicts with other active capture processes."
|
|||
|
||||
(defvar org-capture-mode-map (make-sparse-keymap)
|
||||
"Keymap for `org-capture-mode', a minor mode.
|
||||
Use this map to set additional keybindings for when Org-mode is used
|
||||
Use this map to set additional keybindings for when Org mode is used
|
||||
for a capture buffer.")
|
||||
|
||||
(defvar org-capture-mode-hook nil
|
||||
|
|
|
@ -382,7 +382,7 @@ play with them."
|
|||
:type 'string)
|
||||
|
||||
(defcustom org-clock-clocked-in-display 'mode-line
|
||||
"When clocked in for a task, org-mode can display the current
|
||||
"When clocked in for a task, Org can display the current
|
||||
task and accumulated time in the mode line and/or frame title.
|
||||
Allowed values are:
|
||||
|
||||
|
@ -966,7 +966,7 @@ If necessary, clock-out of the currently active clock."
|
|||
(throw 'exit nil)))))))))))
|
||||
|
||||
(defun org-clock-resolve (clock &optional prompt-fn last-valid fail-quietly)
|
||||
"Resolve an open org-mode clock.
|
||||
"Resolve an open Org clock.
|
||||
An open clock was found, with `dangling' possibly being non-nil.
|
||||
If this function was invoked with a prefix argument, non-dangling
|
||||
open clocks are ignored. The given clock requires some sort of
|
||||
|
@ -1078,7 +1078,7 @@ to be CLOCKED OUT."))))
|
|||
|
||||
;;;###autoload
|
||||
(defun org-resolve-clocks (&optional only-dangling-p prompt-fn last-valid)
|
||||
"Resolve all currently open org-mode clocks.
|
||||
"Resolve all currently open Org clocks.
|
||||
If `only-dangling-p' is non-nil, only ask to resolve dangling
|
||||
\(i.e., not currently open and valid) clocks."
|
||||
(interactive "P")
|
||||
|
@ -1141,7 +1141,7 @@ This routine returns a floating point number."
|
|||
(defvar org-clock-user-idle-seconds)
|
||||
|
||||
(defun org-resolve-clocks-if-idle ()
|
||||
"Resolve all currently open org-mode clocks.
|
||||
"Resolve all currently open Org clocks.
|
||||
This is performed after `org-clock-idle-time' minutes, to check
|
||||
if the user really wants to stay clocked in after being idle for
|
||||
so long."
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
;; Keywords: org-mode
|
||||
;; Author: John Wiegley <johnw@gnu.org>
|
||||
;; Maintainer: Peter Jones <pjones@pmade.com>
|
||||
;; Description: Adds public key encryption to org-mode buffers
|
||||
;; Description: Adds public key encryption to Org buffers
|
||||
;; URL: http://www.newartisans.com/software/emacs.html
|
||||
;; Compatibility: Emacs22
|
||||
|
||||
|
|
|
@ -26,20 +26,21 @@
|
|||
;; Synopsis
|
||||
;; ========
|
||||
;;
|
||||
;; Allows org-mode to make use of the Emacs `etags' system. Defines tag
|
||||
;; destinations in org-mode files as any text between <<double angled
|
||||
;; brackets>>. This allows the tags-generation program `exuberant ctags' to
|
||||
;; parse these files and create tag tables that record where these
|
||||
;; destinations are found. Plain [[links]] in org mode files which do not have
|
||||
;; <<matching destinations>> within the same file will then be interpreted as
|
||||
;; links to these 'tagged' destinations, allowing seamless navigation between
|
||||
;; multiple org-mode files. Topics can be created in any org mode file and
|
||||
;; will always be found by plain links from other files. Other file types
|
||||
;; recognized by ctags (source code files, latex files, etc) will also be
|
||||
;; available as destinations for plain links, and similarly, org-mode links
|
||||
;; will be available as tags from source files. Finally, the function
|
||||
;; `org-ctags-find-tag-interactive' lets you choose any known tag, using
|
||||
;; autocompletion, and quickly jump to it.
|
||||
;; Allows Org mode to make use of the Emacs `etags' system. Defines
|
||||
;; tag destinations in Org files as any text between <<double angled
|
||||
;; brackets>>. This allows the tags-generation program `exuberant
|
||||
;; ctags' to parse these files and create tag tables that record where
|
||||
;; these destinations are found. Plain [[links]] in org mode files
|
||||
;; which do not have <<matching destinations>> within the same file
|
||||
;; will then be interpreted as links to these 'tagged' destinations,
|
||||
;; allowing seamless navigation between multiple Org files. Topics
|
||||
;; can be created in any org mode file and will always be found by
|
||||
;; plain links from other files. Other file types recognized by ctags
|
||||
;; (source code files, latex files, etc) will also be available as
|
||||
;; destinations for plain links, and similarly, Org links will be
|
||||
;; available as tags from source files. Finally, the function
|
||||
;; `org-ctags-find-tag-interactive' lets you choose any known tag,
|
||||
;; using autocompletion, and quickly jump to it.
|
||||
;;
|
||||
;; Installation
|
||||
;; ============
|
||||
|
@ -110,8 +111,9 @@
|
|||
;; Keeping the TAGS file up to date
|
||||
;; ================================
|
||||
;;
|
||||
;; Tags mode has no way of knowing that you have created new tags by typing in
|
||||
;; your org-mode buffer. New tags make it into the TAGS file in 3 ways:
|
||||
;; Tags mode has no way of knowing that you have created new tags by
|
||||
;; typing in your Org buffer. New tags make it into the TAGS file in
|
||||
;; 3 ways:
|
||||
;;
|
||||
;; 1. You re-run (org-ctags-create-tags "directory") to rebuild the file.
|
||||
;; 2. You put the function `org-ctags-ask-rebuild-tags-file-then-find-tag' in
|
||||
|
@ -147,7 +149,7 @@
|
|||
|
||||
(defvar org-ctags-tag-regexp "/<<([^>]+)>>/\\1/d,definition/"
|
||||
"Regexp expression used by ctags external program.
|
||||
The regexp matches tag destinations in org-mode files.
|
||||
The regexp matches tag destinations in Org files.
|
||||
Format is: /REGEXP/TAGNAME/FLAGS,TAGTYPE/
|
||||
See the ctags documentation for more information.")
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
;;; Commentary:
|
||||
|
||||
;; This file implements links to open files in doc-view-mode.
|
||||
;; Org-mode loads this module by default - if this is not what you want,
|
||||
;; Org mode loads this module by default - if this is not what you want,
|
||||
;; configure the variable `org-modules'.
|
||||
|
||||
;; The links take the form
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
(_ nil)))
|
||||
|
||||
(defcustom org-entities-user nil
|
||||
"User-defined entities used in Org-mode to produce special characters.
|
||||
"User-defined entities used in Org to produce special characters.
|
||||
Each entry in this list is a list of strings. It associates the name
|
||||
of the entity that can be inserted into an Org file as \\name with the
|
||||
appropriate replacements for the different export backends. The order
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
|
||||
;; In an eww buffer function `org-eww-copy-for-org-mode' kills either
|
||||
;; a region or the whole buffer if no region is set and transforms the
|
||||
;; text on the fly so that it can be pasted into an org-mode buffer
|
||||
;; with hot links.
|
||||
;; text on the fly so that it can be pasted into an Org buffer with
|
||||
;; hot links.
|
||||
|
||||
;; C-c C-x C-w (and also C-c C-x M-w) trigger
|
||||
;; `org-eww-copy-for-org-mode'.
|
||||
|
|
|
@ -591,7 +591,7 @@ month and 365.24 days for a year)."
|
|||
|
||||
(defcustom org-n-level-faces (length org-level-faces)
|
||||
"The number of different faces to be used for headlines.
|
||||
Org-mode defines 8 different headline faces, so this can be at most 8.
|
||||
Org mode defines 8 different headline faces, so this can be at most 8.
|
||||
If it is less than 8, the level-1 face gets re-used for level N+1 etc."
|
||||
:type 'integer
|
||||
:group 'org-faces)
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
;;; Commentary:
|
||||
|
||||
;; This file implements links to Gnus groups and messages from within Org-mode.
|
||||
;; Org-mode loads this module by default - if this is not what you want,
|
||||
;; Org mode loads this module by default - if this is not what you want,
|
||||
;; configure the variable `org-modules'.
|
||||
|
||||
;;; Code:
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
;;
|
||||
;;; Commentary:
|
||||
|
||||
;; This file implements globally unique identifiers for Org-mode entries.
|
||||
;; This file implements globally unique identifiers for Org entries.
|
||||
;; Identifiers are stored in the entry as an :ID: property. Functions
|
||||
;; are provided that create and retrieve such identifiers, and that find
|
||||
;; entries based on the identifier.
|
||||
|
@ -200,7 +200,7 @@ This variable is only relevant when `org-id-track-globally' is set."
|
|||
When Org reparses files to remake the list of files and IDs it is tracking,
|
||||
it will normally scan the agenda files, the archives related to agenda files,
|
||||
any files that are listed as ID containing in the current register, and
|
||||
any Org-mode files currently visited by Emacs.
|
||||
any Org file currently visited by Emacs.
|
||||
You can list additional files here.
|
||||
This variable is only relevant when `org-id-track-globally' is set."
|
||||
:group 'org-id
|
||||
|
@ -463,7 +463,7 @@ When CHECK is given, prepare detailed information about duplicate IDs."
|
|||
(if (symbolp org-id-extra-files)
|
||||
(symbol-value org-id-extra-files)
|
||||
org-id-extra-files)
|
||||
;; Files associated with live org-mode buffers
|
||||
;; Files associated with live Org buffers
|
||||
(delq nil
|
||||
(mapcar (lambda (b)
|
||||
(with-current-buffer b
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
;;; Commentary:
|
||||
|
||||
;; This file implements links to Info nodes from within Org-mode.
|
||||
;; Org-mode loads this module by default - if this is not what you want,
|
||||
;; Org mode loads this module by default - if this is not what you want,
|
||||
;; configure the variable `org-modules'.
|
||||
|
||||
;;; Code:
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
;;; Commentary:
|
||||
|
||||
;; This file implements links to an IRC session from within Org-mode.
|
||||
;; Org-mode loads this module by default - if this is not what you want,
|
||||
;; Org mode loads this module by default - if this is not what you want,
|
||||
;; configure the variable `org-modules'.
|
||||
;;
|
||||
;; Please customize the variable `org-modules' to select
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
;;; org-list.el --- Plain lists for Org-mode -*- lexical-binding: t; -*-
|
||||
;;; org-list.el --- Plain lists for Org -*- lexical-binding: t; -*-
|
||||
;;
|
||||
;; Copyright (C) 2004-2016 Free Software Foundation, Inc.
|
||||
;;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
;;; Commentary:
|
||||
|
||||
;; This file implements links to MH-E messages from within Org-mode.
|
||||
;; Org-mode loads this module by default - if this is not what you want,
|
||||
;; Org mode loads this module by default - if this is not what you want,
|
||||
;; configure the variable `org-modules'.
|
||||
|
||||
;;; Code:
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
;;
|
||||
;;; Commentary:
|
||||
;;
|
||||
;; This file contains the code to interact with Richard Moreland's iPhone
|
||||
;; application MobileOrg, as well as with the Android version by Matthew Jones.
|
||||
;; This code is documented in Appendix B of the Org-mode manual. The code is
|
||||
;; not specific for the iPhone and Android - any external
|
||||
;; viewer/flagging/editing application that uses the same conventions could
|
||||
;; be used.
|
||||
;; This file contains the code to interact with Richard Moreland's
|
||||
;; iPhone application MobileOrg, as well as with the Android version
|
||||
;; by Matthew Jones. This code is documented in Appendix B of the Org
|
||||
;; manual. The code is not specific for the iPhone and Android - any
|
||||
;; external viewer/flagging/editing application that uses the same
|
||||
;; conventions could be used.
|
||||
|
||||
(require 'org)
|
||||
(require 'org-agenda)
|
||||
|
|
|
@ -66,12 +66,12 @@
|
|||
|
||||
;; History:
|
||||
;;
|
||||
;; Since version 5.10: Changes are listed in the general org-mode docs.
|
||||
;; Since version 5.10: Changes are listed in the general Org docs.
|
||||
;;
|
||||
;; Version 5.09;; + Version number synchronization with Org-mode.
|
||||
;;
|
||||
;; Version 0.25
|
||||
;; + made compatible with org-mode 4.70 (thanks to Carsten for the patch)
|
||||
;; + made compatible with Org 4.70 (thanks to Carsten for the patch)
|
||||
;;
|
||||
;; Version 0.24
|
||||
;; + minor changes to the table menu
|
||||
|
@ -81,7 +81,7 @@
|
|||
;; + context menu support for org-agenda-undo & org-sort-entries
|
||||
;;
|
||||
;; Version 0.22
|
||||
;; + handles undo support for the agenda buffer (requires org-mode >=4.58)
|
||||
;; + handles undo support for the agenda buffer (requires Org >=4.58)
|
||||
;;
|
||||
;; Version 0.21
|
||||
;; + selected text activates its context menu
|
||||
|
@ -105,7 +105,7 @@
|
|||
;; + added support for checkboxes
|
||||
;;
|
||||
;; Version 0.15
|
||||
;; + org-mode now works with the Agenda buffer as well
|
||||
;; + Org now works with the Agenda buffer as well
|
||||
;;
|
||||
;; Version 0.14
|
||||
;; + added a menu option that converts plain list items to outline items
|
||||
|
@ -125,7 +125,7 @@
|
|||
;;
|
||||
;; Version 0.10
|
||||
;; + added a menu option to remove highlights
|
||||
;; + compatible with org-mode 4.21 now
|
||||
;; + compatible with Org 4.21 now
|
||||
;;
|
||||
;; Version 0.08:
|
||||
;; + trees can be moved/promoted/demoted by dragging with the right
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
|
||||
;; Borrows ideas and a couple of lines of code from org-exp.el.
|
||||
|
||||
;; Thanks to the org-mode mailing list for testing and implementation
|
||||
;; and feature suggestions
|
||||
;; Thanks to the Org mailing list for testing and implementation and
|
||||
;; feature suggestions
|
||||
|
||||
;;; Code:
|
||||
|
||||
|
|
|
@ -81,12 +81,12 @@
|
|||
;; * `org-protocol-open-source' uses the sub-protocol \"open-source\" and maps
|
||||
;; URLs to local filenames defined in `org-protocol-project-alist'.
|
||||
;;
|
||||
;; * `org-protocol-store-link' stores an Org-link (if Org-mode is present) and
|
||||
;; * `org-protocol-store-link' stores an Org link (if Org is present) and
|
||||
;; pushes the browsers URL to the `kill-ring' for yanking. This handler is
|
||||
;; triggered through the sub-protocol \"store-link\".
|
||||
;;
|
||||
;; * Call `org-protocol-capture' by using the sub-protocol \"capture\". If
|
||||
;; Org-mode is loaded, Emacs will pop-up a capture buffer and fill the
|
||||
;; Org is loaded, Emacs will pop-up a capture buffer and fill the
|
||||
;; template with the data provided. I.e. the browser's URL is inserted as an
|
||||
;; Org-link of which the page title will be the description part. If text
|
||||
;; was select in the browser, that text will be the body of the entry.
|
||||
|
@ -646,7 +646,7 @@ CLIENT is ignored."
|
|||
;;; Org specific functions:
|
||||
|
||||
(defun org-protocol-create-for-org ()
|
||||
"Create a org-protocol project for the current file's Org-mode project.
|
||||
"Create a Org protocol project for the current file's project.
|
||||
The visited file needs to be part of a publishing project in
|
||||
`org-publish-project-alist' for this to work. The function
|
||||
delegates most of the work to `org-protocol-create'."
|
||||
|
|
|
@ -250,7 +250,7 @@ this line."
|
|||
:group 'org-table)
|
||||
|
||||
(defcustom org-table-use-standard-references 'from
|
||||
"Should org-mode work with table references like B3 instead of @3$2?
|
||||
"Non-nil means using table references like B3 instead of @3$2.
|
||||
Possible values are:
|
||||
nil never use them
|
||||
from accept as input, do not present for editing
|
||||
|
@ -282,7 +282,7 @@ t accept as input and present for editing"
|
|||
)
|
||||
"List with Calc mode settings for use in `calc-eval' for table formulas.
|
||||
The list must contain alternating symbols (Calc modes variables and values).
|
||||
Don't remove any of the default settings, just change the values. Org-mode
|
||||
Don't remove any of the default settings, just change the values. Org mode
|
||||
relies on the variables to be present in the list."
|
||||
:group 'org-table-calculation
|
||||
:type 'plist)
|
||||
|
@ -499,13 +499,13 @@ Field is restored even in case of abnormal exit."
|
|||
;;;###autoload
|
||||
(defun org-table-create-with-table.el ()
|
||||
"Use the table.el package to insert a new table.
|
||||
If there is already a table at point, convert between Org-mode tables
|
||||
If there is already a table at point, convert between Org tables
|
||||
and table.el tables."
|
||||
(interactive)
|
||||
(require 'table)
|
||||
(cond
|
||||
((org-at-table.el-p)
|
||||
(if (y-or-n-p "Convert table to Org-mode table? ")
|
||||
(if (y-or-n-p "Convert table to Org table? ")
|
||||
(org-table-convert)))
|
||||
((org-at-table-p)
|
||||
(when (y-or-n-p "Convert table to table.el table? ")
|
||||
|
@ -1830,17 +1830,17 @@ lines."
|
|||
;;;###autoload
|
||||
(defun org-table-convert ()
|
||||
"Convert from `org-mode' table to table.el and back.
|
||||
Obviously, this only works within limits. When an Org-mode table is
|
||||
converted to table.el, all horizontal separator lines get lost, because
|
||||
table.el uses these as cell boundaries and has no notion of horizontal lines.
|
||||
A table.el table can be converted to an Org-mode table only if it does not
|
||||
do row or column spanning. Multiline cells will become multiple cells.
|
||||
Beware, Org-mode does not test if the table can be successfully converted - it
|
||||
blindly applies a recipe that works for simple tables."
|
||||
Obviously, this only works within limits. When an Org table is converted
|
||||
to table.el, all horizontal separator lines get lost, because table.el uses
|
||||
these as cell boundaries and has no notion of horizontal lines. A table.el
|
||||
table can be converted to an Org table only if it does not do row or column
|
||||
spanning. Multiline cells will become multiple cells. Beware, Org mode
|
||||
does not test if the table can be successfully converted - it blindly
|
||||
applies a recipe that works for simple tables."
|
||||
(interactive)
|
||||
(require 'table)
|
||||
(if (org-at-table.el-p)
|
||||
;; convert to Org-mode table
|
||||
;; convert to Org table
|
||||
(let ((beg (copy-marker (org-table-begin t)))
|
||||
(end (copy-marker (org-table-end t))))
|
||||
(table-unrecognize-region beg end)
|
||||
|
@ -4208,19 +4208,20 @@ FACE, when non-nil, for the highlight."
|
|||
;;; The orgtbl minor mode
|
||||
|
||||
;; Define a minor mode which can be used in other modes in order to
|
||||
;; integrate the org-mode table editor.
|
||||
;; integrate the Org table editor.
|
||||
|
||||
;; This is really a hack, because the org-mode table editor uses several
|
||||
;; keys which normally belong to the major mode, for example the TAB and
|
||||
;; RET keys. Here is how it works: The minor mode defines all the keys
|
||||
;; necessary to operate the table editor, but wraps the commands into a
|
||||
;; function which tests if the cursor is currently inside a table. If that
|
||||
;; is the case, the table editor command is executed. However, when any of
|
||||
;; those keys is used outside a table, the function uses `key-binding' to
|
||||
;; look up if the key has an associated command in another currently active
|
||||
;; keymap (minor modes, major mode, global), and executes that command.
|
||||
;; There might be problems if any of the keys used by the table editor is
|
||||
;; otherwise used as a prefix key.
|
||||
;; This is really a hack, because the Org table editor uses several
|
||||
;; keys which normally belong to the major mode, for example the TAB
|
||||
;; and RET keys. Here is how it works: The minor mode defines all the
|
||||
;; keys necessary to operate the table editor, but wraps the commands
|
||||
;; into a function which tests if the cursor is currently inside
|
||||
;; a table. If that is the case, the table editor command is
|
||||
;; executed. However, when any of those keys is used outside a table,
|
||||
;; the function uses `key-binding' to look up if the key has an
|
||||
;; associated command in another currently active keymap (minor modes,
|
||||
;; major mode, global), and executes that command. There might be
|
||||
;; problems if any of the keys used by the table editor is otherwise
|
||||
;; used as a prefix key.
|
||||
|
||||
;; Another challenge is that the key binding for TAB can be tab or \C-i,
|
||||
;; likewise the binding for RET can be return or \C-m. Orgtbl-mode
|
||||
|
@ -5263,7 +5264,7 @@ supported. It is also possible to use the following ones:
|
|||
params)))
|
||||
|
||||
;; Put the cursor in a column containing numerical values
|
||||
;; of an Org-Mode table,
|
||||
;; of an Org table,
|
||||
;; type C-c " a
|
||||
;; A new column is added with a bar plot.
|
||||
;; When the table is refreshed (C-u C-c *),
|
||||
|
|
|
@ -73,9 +73,9 @@ When 0, the user is prompted for a value."
|
|||
:type 'string)
|
||||
|
||||
(defcustom org-timer-display 'mode-line
|
||||
"When a timer is running, org-mode can display it in the mode
|
||||
line and/or frame title.
|
||||
Allowed values are:
|
||||
"Define where running timer is displayed, if at all.
|
||||
When a timer is running, Org can display it in the mode line
|
||||
and/or frame title. Allowed values are:
|
||||
|
||||
both displays in both mode line and frame title
|
||||
mode-line displays only in mode line (default)
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
;;; Commentary:
|
||||
|
||||
;; This file implements copying HTML content from a w3m buffer and
|
||||
;; transforming the text on the fly so that it can be pasted into
|
||||
;; an org-mode buffer with hot links. It will also work for regions
|
||||
;; in gnus buffers that have been washed with w3m.
|
||||
;; transforming the text on the fly so that it can be pasted into an
|
||||
;; Org buffer with hot links. It will also work for regions in gnus
|
||||
;; buffers that have been washed with w3m.
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
;; Richard Riley <rileyrgdev at googlemail dot com>
|
||||
;;
|
||||
;; The idea of transforming the HTML content with org-mode style is
|
||||
;; The idea of transforming the HTML content with Org syntax is
|
||||
;; proposed by Richard, I'm just coding it.
|
||||
;;
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
"Copy current buffer content or active region with `org-mode' style links.
|
||||
This will encode `link-title' and `link-location' with
|
||||
`org-make-link-string', and insert the transformed test into the kill ring,
|
||||
so that it can be yanked into an Org-mode buffer with links working correctly."
|
||||
so that it can be yanked into an Org buffer with links working correctly."
|
||||
(interactive)
|
||||
(let* ((regionp (org-region-active-p))
|
||||
(transform-start (point-min))
|
||||
|
@ -107,7 +107,7 @@ so that it can be yanked into an Org-mode buffer with links working correctly."
|
|||
(concat return-content
|
||||
(buffer-substring (point) transform-end))))
|
||||
(org-kill-new return-content)
|
||||
(message "Transforming links...done, use C-y to insert text into Org-mode file")
|
||||
(message "Transforming links...done, use C-y to insert text into Org file")
|
||||
(message "Copy with link transformation complete."))))
|
||||
|
||||
(defun org-w3m-get-anchor-start ()
|
||||
|
|
230
lisp/org.el
230
lisp/org.el
|
@ -25,23 +25,24 @@
|
|||
;;
|
||||
;;; Commentary:
|
||||
;;
|
||||
;; Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
|
||||
;; Org is a mode for keeping notes, maintaining ToDo lists, and doing
|
||||
;; project planning with a fast and effective plain-text system.
|
||||
;;
|
||||
;; Org-mode develops organizational tasks around NOTES files that contain
|
||||
;; information about projects as plain text. Org-mode is implemented on
|
||||
;; top of outline-mode, which makes it possible to keep the content of
|
||||
;; large files well structured. Visibility cycling and structure editing
|
||||
;; help to work with the tree. Tables are easily created with a built-in
|
||||
;; table editor. Org-mode supports ToDo items, deadlines, time stamps,
|
||||
;; and scheduling. It dynamically compiles entries into an agenda that
|
||||
;; utilizes and smoothly integrates much of the Emacs calendar and diary.
|
||||
;; Plain text URL-like links connect to websites, emails, Usenet
|
||||
;; messages, BBDB entries, and any files related to the projects. For
|
||||
;; printing and sharing of notes, an Org-mode file can be exported as a
|
||||
;; structured ASCII file, as HTML, or (todo and agenda items only) as an
|
||||
;; iCalendar file. It can also serve as a publishing tool for a set of
|
||||
;; linked webpages.
|
||||
;; Org mode develops organizational tasks around NOTES files that
|
||||
;; contain information about projects as plain text. Org mode is
|
||||
;; implemented on top of outline-mode, which makes it possible to keep
|
||||
;; the content of large files well structured. Visibility cycling and
|
||||
;; structure editing help to work with the tree. Tables are easily
|
||||
;; created with a built-in table editor. Org mode supports ToDo
|
||||
;; items, deadlines, time stamps, and scheduling. It dynamically
|
||||
;; compiles entries into an agenda that utilizes and smoothly
|
||||
;; integrates much of the Emacs calendar and diary. Plain text
|
||||
;; URL-like links connect to websites, emails, Usenet messages, BBDB
|
||||
;; entries, and any files related to the projects. For printing and
|
||||
;; sharing of notes, an Org file can be exported as a structured ASCII
|
||||
;; file, as HTML, or (todo and agenda items only) as an iCalendar
|
||||
;; file. It can also serve as a publishing tool for a set of linked
|
||||
;; webpages.
|
||||
;;
|
||||
;; Installation and Activation
|
||||
;; ---------------------------
|
||||
|
@ -204,7 +205,7 @@ at the beginning of the string does not affect leading indentation."
|
|||
(declare-function org-babel-tangle-file "ob-tangle" (file &optional target-file lang))
|
||||
;;;###autoload
|
||||
(defun org-babel-load-file (file &optional compile)
|
||||
"Load Emacs Lisp source code blocks in the Org-mode FILE.
|
||||
"Load Emacs Lisp source code blocks in the Org FILE.
|
||||
This function exports the source code using `org-babel-tangle'
|
||||
and then loads the resulting file using `load-file'. With prefix
|
||||
arg (noninteractively: 2nd arg) COMPILE the tangled Emacs Lisp
|
||||
|
@ -217,7 +218,7 @@ file to byte-code before it is loaded."
|
|||
(file-attributes file)))))))
|
||||
(base-name (file-name-sans-extension file))
|
||||
(exported-file (concat base-name ".el")))
|
||||
;; tangle if the org-mode file is newer than the elisp file
|
||||
;; tangle if the Org file is newer than the elisp file
|
||||
(unless (and (file-exists-p exported-file)
|
||||
(> (funcall age file) (funcall age exported-file)))
|
||||
;; Tangle-file traversal returns reversed list of tangled files
|
||||
|
@ -232,7 +233,7 @@ file to byte-code before it is loaded."
|
|||
exported-file)))
|
||||
|
||||
(defcustom org-babel-load-languages '((emacs-lisp . t))
|
||||
"Languages which can be evaluated in Org-mode buffers.
|
||||
"Languages which can be evaluated in Org buffers.
|
||||
This list can be used to load support for any of the languages
|
||||
below, note that each language will depend on a different set of
|
||||
system executables and/or Emacs modes. When a language is
|
||||
|
@ -309,7 +310,7 @@ identifier."
|
|||
|
||||
;;;###autoload
|
||||
(defun org-version (&optional here full message)
|
||||
"Show the org-mode version.
|
||||
"Show the Org version.
|
||||
Interactively, or when MESSAGE is non-nil, show it in echo area.
|
||||
With prefix argument, or when HERE is non-nil, insert it at point.
|
||||
In non-interactive uses, a reduced version string is output unless
|
||||
|
@ -701,18 +702,18 @@ For export specific modules, see also `org-export-backends'."
|
|||
(const :tag " w3m: Special cut/paste from w3m to Org-mode." org-w3m)
|
||||
|
||||
(const :tag "C annotate-file: Annotate a file with org syntax" org-annotate-file)
|
||||
(const :tag "C bookmark: Org-mode links to bookmarks" org-bookmark)
|
||||
(const :tag "C bookmark: Org links to bookmarks" org-bookmark)
|
||||
(const :tag "C bullets: Add overlays to headlines stars" org-bullets)
|
||||
(const :tag "C checklist: Extra functions for checklists in repeated tasks" org-checklist)
|
||||
(const :tag "C choose: Use TODO keywords to mark decisions states" org-choose)
|
||||
(const :tag "C collector: Collect properties into tables" org-collector)
|
||||
(const :tag "C depend: TODO dependencies for Org-mode\n\t\t\t(PARTIALLY OBSOLETE, see built-in dependency support))" org-depend)
|
||||
(const :tag "C drill: Flashcards and spaced repetition for Org-mode" org-drill)
|
||||
(const :tag "C elisp-symbol: Org-mode links to emacs-lisp symbols" org-elisp-symbol)
|
||||
(const :tag "C elisp-symbol: Org links to emacs-lisp symbols" org-elisp-symbol)
|
||||
(const :tag "C eshell Support for links to working directories in eshell" org-eshell)
|
||||
(const :tag "C eval-light: Evaluate inbuffer-code on demand" org-eval-light)
|
||||
(const :tag "C eval: Include command output as text" org-eval)
|
||||
(const :tag "C expiry: Expiry mechanism for Org-mode entries" org-expiry)
|
||||
(const :tag "C expiry: Expiry mechanism for Org entries" org-expiry)
|
||||
(const :tag "C favtable: Lookup table of favorite references and links" org-favtable)
|
||||
(const :tag "C git-link: Provide org links to specific file version" org-git-link)
|
||||
(const :tag "C interactive-query: Interactive modification of tags query\n\t\t\t(PARTIALLY OBSOLETE, see secondary filtering)" org-interactive-query)
|
||||
|
@ -720,18 +721,18 @@ For export specific modules, see also `org-export-backends'."
|
|||
(const :tag "C learn: SuperMemo's incremental learning algorithm" org-learn)
|
||||
(const :tag "C mac-iCal Imports events from iCal.app to the Emacs diary" org-mac-iCal)
|
||||
(const :tag "C mac-link: Grab links and url from various mac Applications" org-mac-link)
|
||||
(const :tag "C mairix: Hook mairix search into Org-mode for different MUAs" org-mairix)
|
||||
(const :tag "C mairix: Hook mairix search into Org for different MUAs" org-mairix)
|
||||
(const :tag "C man: Support for links to manpages in Org-mode" org-man)
|
||||
(const :tag "C mew: Links to Mew folders/messages" org-mew)
|
||||
(const :tag "C mtags: Support for muse-like tags" org-mtags)
|
||||
(const :tag "C notmuch: Provide org links to notmuch searches or messages" org-notmuch)
|
||||
(const :tag "C panel: Simple routines for us with bad memory" org-panel)
|
||||
(const :tag "C registry: A registry for Org-mode links" org-registry)
|
||||
(const :tag "C screen: Visit screen sessions through Org-mode links" org-screen)
|
||||
(const :tag "C registry: A registry for Org links" org-registry)
|
||||
(const :tag "C screen: Visit screen sessions through Org links" org-screen)
|
||||
(const :tag "C secretary: Team management with org-mode" org-secretary)
|
||||
(const :tag "C sqlinsert: Convert Org-mode tables to SQL insertions" orgtbl-sqlinsert)
|
||||
(const :tag "C toc: Table of contents for Org-mode buffer" org-toc)
|
||||
(const :tag "C track: Keep up with Org-mode development" org-track)
|
||||
(const :tag "C sqlinsert: Convert Org tables to SQL insertions" orgtbl-sqlinsert)
|
||||
(const :tag "C toc: Table of contents for Org buffer" org-toc)
|
||||
(const :tag "C track: Keep up with Org mode development" org-track)
|
||||
(const :tag "C velocity Something like Notational Velocity for Org" org-velocity)
|
||||
(const :tag "C vm: Links to VM folders/messages" org-vm)
|
||||
(const :tag "C wikinodes: CamelCase wiki-like links" org-wikinodes)
|
||||
|
@ -859,7 +860,7 @@ cursor keys will then execute Org commands in the following contexts:
|
|||
Outside these contexts, the commands will throw an error.
|
||||
|
||||
When this variable is t and the cursor is not in a special
|
||||
context, Org-mode will support shift-selection for making and
|
||||
context, Org mode will support shift-selection for making and
|
||||
enlarging regions. To make this more effective, the bullet
|
||||
cycling will no longer happen anywhere in an item line, but only
|
||||
if the cursor is exactly on the bullet.
|
||||
|
@ -915,7 +916,7 @@ already archived entries."
|
|||
:group 'org)
|
||||
|
||||
(defcustom org-startup-folded t
|
||||
"Non-nil means entering Org-mode will switch to OVERVIEW.
|
||||
"Non-nil means entering Org mode will switch to OVERVIEW.
|
||||
This can also be configured on a per-file basis by adding one of
|
||||
the following lines anywhere in the buffer:
|
||||
|
||||
|
@ -935,7 +936,7 @@ option, set `org-agenda-inhibit-startup' to nil."
|
|||
(const :tag "show everything, even drawers" showeverything)))
|
||||
|
||||
(defcustom org-startup-truncated t
|
||||
"Non-nil means entering Org-mode will set `truncate-lines'.
|
||||
"Non-nil means entering Org mode will set `truncate-lines'.
|
||||
This is useful since some lines containing links can be very long and
|
||||
uninteresting. Also tables look terrible when wrapped.
|
||||
|
||||
|
@ -1039,22 +1040,22 @@ the following lines anywhere in the buffer:
|
|||
:type 'boolean)
|
||||
|
||||
(defcustom org-insert-mode-line-in-empty-file nil
|
||||
"Non-nil means insert the first line setting Org-mode in empty files.
|
||||
"Non-nil means insert the first line setting Org mode in empty files.
|
||||
When the function `org-mode' is called interactively in an empty file, this
|
||||
normally means that the file name does not automatically trigger Org-mode.
|
||||
To ensure that the file will always be in Org-mode in the future, a
|
||||
line enforcing Org-mode will be inserted into the buffer, if this option
|
||||
normally means that the file name does not automatically trigger Org mode.
|
||||
To ensure that the file will always be in Org mode in the future, a
|
||||
line enforcing Org mode will be inserted into the buffer, if this option
|
||||
has been set."
|
||||
:group 'org-startup
|
||||
:type 'boolean)
|
||||
|
||||
(defcustom org-replace-disputed-keys nil
|
||||
"Non-nil means use alternative key bindings for some keys.
|
||||
Org-mode uses S-<cursor> keys for changing timestamps and priorities.
|
||||
Org mode uses S-<cursor> keys for changing timestamps and priorities.
|
||||
These keys are also used by other packages like shift-selection-mode'
|
||||
\(built into Emacs 23), `CUA-mode' or `windmove.el'.
|
||||
If you want to use Org-mode together with one of these other modes,
|
||||
or more generally if you would like to move some Org-mode commands to
|
||||
If you want to use Org mode together with one of these other modes,
|
||||
or more generally if you would like to move some Org mode commands to
|
||||
other keys, set this variable and configure the keys with the variable
|
||||
`org-disputed-keys'.
|
||||
|
||||
|
@ -1081,7 +1082,7 @@ loading Org."
|
|||
([(shift right)] . [(meta +)])
|
||||
([(control shift right)] . [(meta shift +)])
|
||||
([(control shift left)] . [(meta shift -)]))
|
||||
"Keys for which Org-mode and other modes compete.
|
||||
"Keys for which Org mode and other modes compete.
|
||||
This is an alist, cars are the default keys, second element specifies
|
||||
the alternative to use when `org-replace-disputed-keys' is t.
|
||||
|
||||
|
@ -1106,11 +1107,11 @@ Or return the original if not disputed."
|
|||
(define-key keymap (org-key key) def))
|
||||
|
||||
(defcustom org-ellipsis nil
|
||||
"The ellipsis to use in the Org-mode outline.
|
||||
"The ellipsis to use in the Org mode outline.
|
||||
When nil, just use the standard three dots.
|
||||
When a string, use that string instead.
|
||||
When a face, use the standard 3 dots, but with the specified face.
|
||||
The change affects only Org-mode (which will then use its own display table).
|
||||
The change affects only Org mode (which will then use its own display table).
|
||||
Changing this requires executing \\[org-mode] in a buffer to become
|
||||
effective."
|
||||
:group 'org-startup
|
||||
|
@ -1135,7 +1136,7 @@ effective."
|
|||
:type 'boolean)
|
||||
|
||||
(defgroup org-structure nil
|
||||
"Options concerning the general structure of Org-mode files."
|
||||
"Options concerning the general structure of Org files."
|
||||
:tag "Org Structure"
|
||||
:group 'org)
|
||||
|
||||
|
@ -1318,7 +1319,7 @@ than its value."
|
|||
(integer :tag "Maximum level")))
|
||||
|
||||
(defcustom org-hide-block-startup nil
|
||||
"Non-nil means entering Org-mode will fold all blocks.
|
||||
"Non-nil means entering Org mode will fold all blocks.
|
||||
This can also be set in on a per-file basis with
|
||||
|
||||
#+STARTUP: hideblocks
|
||||
|
@ -1373,7 +1374,7 @@ visibility is cycled."
|
|||
"Number of empty lines needed to keep an empty line between collapsed trees.
|
||||
If you leave an empty line between the end of a subtree and the following
|
||||
headline, this empty line is hidden when the subtree is folded.
|
||||
Org-mode will leave (exactly) one empty line visible if the number of
|
||||
Org mode will leave (exactly) one empty line visible if the number of
|
||||
empty lines is equal or larger to the number given in this variable.
|
||||
So the default 2 means at least 2 empty lines after the end of a subtree
|
||||
are needed to produce free space between a collapsed subtree and the
|
||||
|
@ -1693,7 +1694,7 @@ as possible."
|
|||
:group 'org-structure)
|
||||
|
||||
(defcustom org-imenu-depth 2
|
||||
"The maximum level for Imenu access to Org-mode headlines.
|
||||
"The maximum level for Imenu access to Org headlines.
|
||||
This also applied for speedbar access."
|
||||
:group 'org-imenu-and-speedbar
|
||||
:type 'integer)
|
||||
|
@ -1716,9 +1717,9 @@ do the following:
|
|||
TAB or RET are pressed to move to another field. With optimization this
|
||||
happens only if changes to a field might have changed the column width.
|
||||
Optimization requires replacing the functions `self-insert-command',
|
||||
`delete-char', and `backward-delete-char' in Org-mode buffers, with a
|
||||
slight (in fact: unnoticeable) speed impact for normal typing. Org-mode is
|
||||
very good at guessing when a re-align will be necessary, but you can always
|
||||
`delete-char', and `backward-delete-char' in Org buffers, with a
|
||||
slight (in fact: unnoticeable) speed impact for normal typing. Org is very
|
||||
good at guessing when a re-align will be necessary, but you can always
|
||||
force one with \\[org-ctrl-c-ctrl-c].
|
||||
|
||||
If you would like to use the optimized version in Org-mode, but the
|
||||
|
@ -1834,7 +1835,7 @@ TYPE is a string and KEY is a plist keyword."
|
|||
"Alist of link abbreviations.
|
||||
The car of each element is a string, to be replaced at the start of a link.
|
||||
The cdrs are replacement values, like (\"linkkey\" . REPLACE). Abbreviated
|
||||
links in Org-mode buffers can have an optional tag after a double colon, e.g.
|
||||
links in Org buffers can have an optional tag after a double colon, e.g.,
|
||||
|
||||
[[linkkey:tag][description]]
|
||||
|
||||
|
@ -1892,7 +1893,7 @@ adaptive Use relative path for files in the current directory and sub-
|
|||
|
||||
(defvaralias 'org-activate-links 'org-highlight-links)
|
||||
(defcustom org-highlight-links '(bracket angle plain radio tag date footnote)
|
||||
"Types of links that should be highlighted in Org-mode files.
|
||||
"Types of links that should be highlighted in Org files.
|
||||
|
||||
This is a list of symbols, each one of them leading to the
|
||||
highlighting of a certain link type.
|
||||
|
@ -1997,8 +1998,8 @@ negates this setting for the duration of the command."
|
|||
The command `org-store-link' adds a link pointing to the current
|
||||
location to an internal list. These links accumulate during a session.
|
||||
The command `org-insert-link' can be used to insert links into any
|
||||
Org-mode file (offering completion for all stored links). When this
|
||||
option is nil, every link which has been inserted once using \\[org-insert-link]
|
||||
Org file (offering completion for all stored links). When this option
|
||||
is nil, every link which has been inserted once using \\[org-insert-link]
|
||||
will be removed from the list, to make completing the unused links
|
||||
more efficient."
|
||||
:group 'org-link-store
|
||||
|
@ -2162,7 +2163,7 @@ Shell links can be dangerous: just think about a link
|
|||
|
||||
[[shell:rm -rf ~/*][Google Search]]
|
||||
|
||||
This link would show up in your Org-mode document as \"Google Search\",
|
||||
This link would show up in your Org document as \"Google Search\",
|
||||
but really it would remove your entire home directory.
|
||||
Therefore we advise against setting this variable to nil.
|
||||
Just change it to `y-or-n-p' if you want to confirm with a
|
||||
|
@ -2188,7 +2189,7 @@ Elisp links can be dangerous: just think about a link
|
|||
|
||||
[[elisp:(shell-command \"rm -rf ~/*\")][Google Search]]
|
||||
|
||||
This link would show up in your Org-mode document as \"Google Search\",
|
||||
This link would show up in your Org document as \"Google Search\",
|
||||
but really it would remove your entire home directory.
|
||||
Therefore we advise against setting this variable to nil.
|
||||
Just change it to `y-or-n-p' if you want to confirm with a
|
||||
|
@ -2531,13 +2532,13 @@ When `full-file-path', include the full file path."
|
|||
|
||||
(defcustom org-outline-path-complete-in-steps t
|
||||
"Non-nil means complete the outline path in hierarchical steps.
|
||||
When Org-mode uses the refile interface to select an outline path
|
||||
\(see variable `org-refile-use-outline-path'), the completion of
|
||||
the path can be done in a single go, or it can be done in steps down
|
||||
the headline hierarchy. Going in steps is probably the best if you
|
||||
do not use a special completion package like `ido' or `icicles'.
|
||||
However, when using these packages, going in one step can be very
|
||||
fast, while still showing the whole path to the entry."
|
||||
When Org uses the refile interface to select an outline path (see
|
||||
`org-refile-use-outline-path'), the completion of the path can be
|
||||
done in a single go, or it can be done in steps down the headline
|
||||
hierarchy. Going in steps is probably the best if you do not use
|
||||
a special completion package like `ido' or `icicles'. However,
|
||||
when using these packages, going in one step can be very fast,
|
||||
while still showing the whole path to the entry."
|
||||
:group 'org-refile
|
||||
:type 'boolean)
|
||||
|
||||
|
@ -2593,8 +2594,8 @@ Each sequence starts with a symbol, either `sequence' or `type',
|
|||
indicating if the keywords should be interpreted as a sequence of
|
||||
action steps, or as different types of TODO items. The first
|
||||
keywords are states requiring action - these states will select a headline
|
||||
for inclusion into the global TODO list Org-mode produces. If one of
|
||||
the \"keywords\" is the vertical bar, \"|\", the remaining keywords
|
||||
for inclusion into the global TODO list Org produces. If one of the
|
||||
\"keywords\" is the vertical bar, \"|\", the remaining keywords
|
||||
signify that no further action is necessary. If \"|\" is not found,
|
||||
the last keyword is treated as the only DONE state of the sequence.
|
||||
|
||||
|
@ -2695,7 +2696,7 @@ When nil, fast selection is never used.
|
|||
|
||||
When the symbol `prefix', it will be used when `org-todo' is called
|
||||
with a prefix argument, i.e. `\\[universal-argument] \\[org-todo]' \
|
||||
in an Org-mode buffer, and
|
||||
in an Org buffer, and
|
||||
`\\[universal-argument] t' in an agenda buffer.
|
||||
|
||||
When t, fast selection is used by default. In this case, the prefix
|
||||
|
@ -3381,8 +3382,8 @@ This affects the following situations:
|
|||
For example, if it is April and you enter \"feb 2\", this will be read
|
||||
as Feb 2, *next* year. \"May 5\", however, will be this year.
|
||||
2. The user gives a day, but no month.
|
||||
For example, if today is the 15th, and you enter \"3\", Org-mode will
|
||||
read this as the third of *next* month. However, if you enter \"17\",
|
||||
For example, if today is the 15th, and you enter \"3\", Org will read
|
||||
this as the third of *next* month. However, if you enter \"17\",
|
||||
it will be considered as *this* month.
|
||||
|
||||
If you set this variable to the symbol `time', then also the following
|
||||
|
@ -3942,7 +3943,7 @@ forth between agenda and calendar."
|
|||
(defcustom org-calendar-insert-diary-entry-key [?i]
|
||||
"The key to be installed in `calendar-mode-map' for adding diary entries.
|
||||
This option is irrelevant until `org-agenda-diary-file' has been configured
|
||||
to point to an Org-mode file. When that is the case, the command
|
||||
to point to an Org file. When that is the case, the command
|
||||
`org-agenda-diary-entry' will be bound to the key given here, by default
|
||||
`i'. In the calendar, `i' normally adds entries to `diary-file'. So
|
||||
if you want to continue doing this, you need to change this to a different
|
||||
|
@ -4313,7 +4314,7 @@ Make sure that you only list packages here which:
|
|||
(string :tag "A line of LaTeX"))))
|
||||
|
||||
(defgroup org-appearance nil
|
||||
"Settings for Org-mode appearance."
|
||||
"Settings for Org mode appearance."
|
||||
:tag "Org Appearance"
|
||||
:group 'org)
|
||||
|
||||
|
@ -4523,7 +4524,7 @@ You need to reload Org or to restart Emacs after customizing this.")
|
|||
Text starting and ending with a special character will be emphasized,
|
||||
for example *bold*, _underlined_ and /italic/. This variable sets the
|
||||
marker characters and the face to be used by font-lock for highlighting
|
||||
in Org-mode Emacs buffers.
|
||||
in Org buffers.
|
||||
|
||||
You need to reload Org or to restart Emacs after customizing this."
|
||||
:group 'org-appearance
|
||||
|
@ -4744,7 +4745,7 @@ When the filename is omitted, archiving happens in the same file.
|
|||
%s in the filename will be replaced by the current file
|
||||
name (without the directory part). Archiving to a different file
|
||||
is useful to keep archived entries from contributing to the
|
||||
Org-mode Agenda.
|
||||
Org Agenda.
|
||||
|
||||
The archived entries will be filed as subtrees of the specified
|
||||
headline. When the headline is omitted, the subtrees are simply
|
||||
|
@ -5478,7 +5479,7 @@ This is for getting out of special buffers like capture.")
|
|||
(defvar org-org-menu)
|
||||
(defvar org-tbl-menu)
|
||||
|
||||
;;;; Define the Org-mode
|
||||
;;;; Define the Org mode
|
||||
|
||||
;; We use a before-change function to check if a table might need
|
||||
;; an update.
|
||||
|
@ -5526,15 +5527,15 @@ This variable is set by `org-before-change-function'.
|
|||
"Outline-based notes management and organizer, alias
|
||||
\"Carsten's outline-mode for keeping track of everything.\"
|
||||
|
||||
Org-mode develops organizational tasks around a NOTES file which
|
||||
contains information about projects as plain text. Org-mode is
|
||||
implemented on top of outline-mode, which is ideal to keep the content
|
||||
Org mode develops organizational tasks around a NOTES file which
|
||||
contains information about projects as plain text. Org mode is
|
||||
implemented on top of Outline mode, which is ideal to keep the content
|
||||
of large files well structured. It supports ToDo items, deadlines and
|
||||
time stamps, which magically appear in the diary listing of the Emacs
|
||||
calendar. Tables are easily created with a built-in table editor.
|
||||
Plain text URL-like links connect to websites, emails (VM), Usenet
|
||||
messages (Gnus), BBDB entries, and any files related to the project.
|
||||
For printing and sharing of notes, an Org-mode file (or a part of it)
|
||||
For printing and sharing of notes, an Org file (or a part of it)
|
||||
can be exported as a structured ASCII or HTML file.
|
||||
|
||||
The following commands are available:
|
||||
|
@ -6843,7 +6844,7 @@ and subscripts."
|
|||
(defun org-cycle (&optional arg)
|
||||
"TAB-action and visibility cycling for Org-mode.
|
||||
|
||||
This is the command invoked in Org-mode by the TAB key. Its main purpose
|
||||
This is the command invoked in Org mode by the TAB key. Its main purpose
|
||||
is outline visibility cycling, but it also invokes other actions
|
||||
in special contexts.
|
||||
|
||||
|
@ -7352,7 +7353,7 @@ are at least `org-cycle-separator-lines' empty lines before the headline."
|
|||
(org-cycle-show-empty-lines context))))
|
||||
|
||||
(defun org-files-list ()
|
||||
"Return `org-agenda-files' list, plus all open org-mode files.
|
||||
"Return `org-agenda-files' list, plus all open Org files.
|
||||
This is useful for operations that need to scan all of a user's
|
||||
open and agenda-wise Org files."
|
||||
(let ((files (mapcar 'expand-file-name (org-agenda-files))))
|
||||
|
@ -8539,7 +8540,7 @@ Assume point is at a heading or an inlinetask beginning."
|
|||
(forward-line)))))))))
|
||||
|
||||
(defun org-convert-to-odd-levels ()
|
||||
"Convert an org-mode file with all levels allowed to one with odd levels.
|
||||
"Convert an Org file with all levels allowed to one with odd levels.
|
||||
This will leave level 1 alone, convert level 2 to level 3, level 3 to
|
||||
level 5 etc."
|
||||
(interactive)
|
||||
|
@ -8555,7 +8556,7 @@ level 5 etc."
|
|||
(end-of-line 1))))))
|
||||
|
||||
(defun org-convert-to-oddeven-levels ()
|
||||
"Convert an org-mode file with only odd levels to one with odd/even levels.
|
||||
"Convert an Org file with only odd levels to one with odd/even levels.
|
||||
This promotes level 3 to level 2, level 5 to level 3 etc. If the
|
||||
file contains a section with an even level, conversion would
|
||||
destroy the structure of the file. An error is signaled in this
|
||||
|
@ -9277,15 +9278,15 @@ When sorting is done, call `org-after-sorting-entries-or-items-hook'."
|
|||
;;; The orgstruct minor mode
|
||||
|
||||
;; Define a minor mode which can be used in other modes in order to
|
||||
;; integrate the org-mode structure editing commands.
|
||||
;; integrate the Org mode structure editing commands.
|
||||
|
||||
;; This is really a hack, because the org-mode structure commands use
|
||||
;; This is really a hack, because the Org mode structure commands use
|
||||
;; keys which normally belong to the major mode. Here is how it
|
||||
;; works: The minor mode defines all the keys necessary to operate the
|
||||
;; structure commands, but wraps the commands into a function which
|
||||
;; tests if the cursor is currently at a headline or a plain list
|
||||
;; item. If that is the case, the structure command is used,
|
||||
;; temporarily setting many Org-mode variables like regular
|
||||
;; temporarily setting many Org mode variables like regular
|
||||
;; expressions for filling etc. However, when any of those keys is
|
||||
;; used at a different location, function uses `key-binding' to look
|
||||
;; up if the key has an associated command in another currently active
|
||||
|
@ -9317,8 +9318,8 @@ orgstruct(++)-mode."
|
|||
;;;###autoload
|
||||
(define-minor-mode orgstruct-mode
|
||||
"Toggle the minor mode `orgstruct-mode'.
|
||||
This mode is for using Org-mode structure commands in other
|
||||
modes. The following keys behave as if Org-mode were active, if
|
||||
This mode is for using Org mode structure commands in other
|
||||
modes. The following keys behave as if Org mode were active, if
|
||||
the cursor is on a headline, or on a plain list item (both as
|
||||
defined by Org-mode)."
|
||||
nil " OrgStruct" (make-sparse-keymap)
|
||||
|
@ -9343,7 +9344,7 @@ defined by Org-mode)."
|
|||
(defun orgstruct++-mode (&optional arg)
|
||||
"Toggle `orgstruct-mode', the enhanced version of it.
|
||||
In addition to setting orgstruct-mode, this also exports all
|
||||
indentation and autofilling variables from org-mode into the
|
||||
indentation and autofilling variables from Org mode into the
|
||||
buffer. It will also recognize item context in multiline items."
|
||||
(interactive "P")
|
||||
(setq arg (prefix-numeric-value (or arg (if orgstruct-mode -1 1))))
|
||||
|
@ -9672,7 +9673,7 @@ Optional argument REGEXP selects variables to clone."
|
|||
(defun org-run-like-in-org-mode (cmd)
|
||||
"Run a command, pretending that the current buffer is in Org-mode.
|
||||
This will temporarily bind local variables that are typically bound in
|
||||
Org-mode to the values they have in Org-mode, and then interactively
|
||||
Org mode to the values they have in Org-mode, and then interactively
|
||||
call CMD."
|
||||
(org-load-modules-maybe)
|
||||
(unless org-local-vars
|
||||
|
@ -10315,8 +10316,8 @@ The cdr of LINK must be either a link description or nil."
|
|||
|
||||
;;;###autoload
|
||||
(defun org-insert-link-global ()
|
||||
"Insert a link like Org-mode does.
|
||||
This command can be called in any mode to insert a link in Org-mode syntax."
|
||||
"Insert a link like Org mode does.
|
||||
This command can be called in any mode to insert a link in Org syntax."
|
||||
(interactive)
|
||||
(org-load-modules-maybe)
|
||||
(org-run-like-in-org-mode 'org-insert-link))
|
||||
|
@ -10618,8 +10619,8 @@ handle this as a special case.
|
|||
|
||||
When the function does handle the link, it must return a non-nil value.
|
||||
If it decides that it is not responsible for this link, it must return
|
||||
nil to indicate that that Org-mode can continue with other options
|
||||
like exact and fuzzy text search.")
|
||||
nil to indicate that that Org can continue with other options like
|
||||
exact and fuzzy text search.")
|
||||
|
||||
(defun org-next-link (&optional search-backward)
|
||||
"Move forward to the next link.
|
||||
|
@ -11056,8 +11057,8 @@ which see.
|
|||
|
||||
A function in this hook may also use `setq' to set the variable
|
||||
`description' to provide a suggestion for the descriptive text to
|
||||
be used for this link when it gets inserted into an Org-mode
|
||||
buffer with \\[org-insert-link].")
|
||||
be used for this link when it gets inserted into an Org buffer
|
||||
with \\[org-insert-link].")
|
||||
|
||||
(defvar org-execute-file-search-functions nil
|
||||
"List of functions to execute a file search triggered by a link.
|
||||
|
@ -11341,9 +11342,8 @@ to read."
|
|||
"Jump to the previous position in the mark ring.
|
||||
With prefix arg N, jump back that many stored positions. When
|
||||
called several times in succession, walk through the entire ring.
|
||||
Org-mode commands jumping to a different position in the current file,
|
||||
or to another Org-mode file, automatically push the old position
|
||||
onto the ring."
|
||||
Org mode commands jumping to a different position in the current file,
|
||||
or to another Org file, automatically push the old position onto the ring."
|
||||
(interactive "p")
|
||||
(let (p m)
|
||||
(if (eq last-command this-command)
|
||||
|
@ -15197,7 +15197,7 @@ When JUST-ALIGN is non-nil, only align tags."
|
|||
|
||||
(defun org-change-tag-in-region (beg end tag off)
|
||||
"Add or remove TAG for each entry in the region.
|
||||
This works in the agenda, and also in an org-mode buffer."
|
||||
This works in the agenda, and also in an Org buffer."
|
||||
(interactive
|
||||
(list (region-beginning) (region-end)
|
||||
(let ((org-last-tags-completion-table
|
||||
|
@ -18003,7 +18003,7 @@ day number."
|
|||
((listp d) (list (nth 4 d) (nth 3 d) (nth 5 d)))))
|
||||
|
||||
(defun org-parse-time-string (s &optional nodefault)
|
||||
"Parse the standard Org-mode time string.
|
||||
"Parse the standard Org time string.
|
||||
This should be a lot faster than the normal `parse-time-string'.
|
||||
If time is not given, defaults to 0:00. However, with optional NODEFAULT,
|
||||
hour and minute fields will be nil if not given."
|
||||
|
@ -18019,7 +18019,7 @@ hour and minute fields will be nil if not given."
|
|||
nil nil nil))
|
||||
((string-match "^<[^>]+>$" s)
|
||||
(decode-time (seconds-to-time (org-matcher-time s))))
|
||||
(t (error "Not a standard Org-mode time string: %s" s))))
|
||||
(t (error "Not a standard Org time string: %s" s))))
|
||||
|
||||
(defun org-timestamp-up (&optional arg)
|
||||
"Increase the date item at the cursor by one.
|
||||
|
@ -18546,15 +18546,15 @@ Entries containing a colon are interpreted as H:MM by
|
|||
;;;; Files
|
||||
|
||||
(defun org-save-all-org-buffers ()
|
||||
"Save all Org-mode buffers without user confirmation."
|
||||
"Save all Org buffers without user confirmation."
|
||||
(interactive)
|
||||
(message "Saving all Org-mode buffers...")
|
||||
(message "Saving all Org buffers...")
|
||||
(save-some-buffers t (lambda () (derived-mode-p 'org-mode)))
|
||||
(when (featurep 'org-id) (org-id-locations-save))
|
||||
(message "Saving all Org-mode buffers... done"))
|
||||
(message "Saving all Org buffers... done"))
|
||||
|
||||
(defun org-revert-all-org-buffers ()
|
||||
"Revert all Org-mode buffers.
|
||||
"Revert all Org buffers.
|
||||
Prompt for confirmation when there are unsaved changes.
|
||||
Be sure you know what you are doing before letting this function
|
||||
overwrite your changes.
|
||||
|
@ -18940,7 +18940,7 @@ in Org-mode.
|
|||
(unless org-cdlatex-texmathp-advice-is-done
|
||||
(setq org-cdlatex-texmathp-advice-is-done t)
|
||||
(defadvice texmathp (around org-math-always-on activate)
|
||||
"Always return t in org-mode buffers.
|
||||
"Always return t in Org buffers.
|
||||
This is because we want to insert math symbols without dollars even outside
|
||||
the LaTeX math segments. If Orgmode thinks that point is actually inside
|
||||
an embedded LaTeX fragment, let texmathp do its job.
|
||||
|
@ -20372,7 +20372,7 @@ because, in this case the deletion might narrow the column."
|
|||
(delete-char N)
|
||||
(org-fix-tags-on-the-fly))))
|
||||
|
||||
;; Make `delete-selection-mode' work with org-mode and orgtbl-mode
|
||||
;; Make `delete-selection-mode' work with Org mode and Orgtbl mode
|
||||
(put 'org-self-insert-command 'delete-selection
|
||||
(lambda ()
|
||||
(not (run-hook-with-args-until-success
|
||||
|
@ -20391,7 +20391,7 @@ because, in this case the deletion might narrow the column."
|
|||
(put 'org-delete-char 'flyspell-delayed t)
|
||||
(put 'org-delete-backward-char 'flyspell-delayed t)
|
||||
|
||||
;; Make pabbrev-mode expand after org-mode commands
|
||||
;; Make pabbrev-mode expand after Org mode commands
|
||||
(put 'org-self-insert-command 'pabbrev-expand-after-command t)
|
||||
(put 'orgtbl-self-insert-command 'pabbrev-expand-after-command t)
|
||||
|
||||
|
@ -21575,7 +21575,7 @@ on context. See the individual commands for more information."
|
|||
(and (not (org-before-first-heading-p))
|
||||
(not (org-at-table-p))))
|
||||
|
||||
;; Define the Org-mode menus
|
||||
;; Define the Org mode menus
|
||||
(easy-menu-define org-tbl-menu org-mode-map "Tbl menu"
|
||||
'("Tbl"
|
||||
["Align" org-ctrl-c-ctrl-c :active (org-at-table-p)]
|
||||
|
@ -21837,20 +21837,20 @@ on context. See the individual commands for more information."
|
|||
))
|
||||
|
||||
(defun org-info (&optional node)
|
||||
"Read documentation for Org-mode in the info system.
|
||||
"Read documentation for Org in the info system.
|
||||
With optional NODE, go directly to that node."
|
||||
(interactive)
|
||||
(info (format "(org)%s" (or node ""))))
|
||||
|
||||
;;;###autoload
|
||||
(defun org-submit-bug-report ()
|
||||
"Submit a bug report on Org-mode via mail.
|
||||
"Submit a bug report on Org via mail.
|
||||
|
||||
Don't hesitate to report any problems or inaccurate documentation.
|
||||
|
||||
If you don't have setup sending mail from (X)Emacs, please copy the
|
||||
output buffer into your mail program, as it gives us important
|
||||
information about your Org-mode version and configuration."
|
||||
information about your Org version and configuration."
|
||||
(interactive)
|
||||
(require 'reporter)
|
||||
(defvar reporter-prompt-for-summary-p)
|
||||
|
@ -21865,9 +21865,9 @@ information about your Org-mode version and configuration."
|
|||
(pop-to-buffer-same-window (get-buffer-create "*Warn about privacy*"))
|
||||
(delete-other-windows)
|
||||
(erase-buffer)
|
||||
(insert "You are about to submit a bug report to the Org-mode mailing list.
|
||||
(insert "You are about to submit a bug report to the Org mailing list.
|
||||
|
||||
We would like to add your full Org-mode and Outline configuration to the
|
||||
We would like to add your full Org and Outline configuration to the
|
||||
bug report. This greatly simplifies the work of the maintainer and
|
||||
other experts on the mailing list.
|
||||
|
||||
|
@ -21877,7 +21877,7 @@ appear in the form of file names, tags, todo states, or search strings.
|
|||
If you answer yes to the prompt, you might want to check and remove
|
||||
such private information before sending the email.")
|
||||
(add-text-properties (point-min) (point-max) '(face org-warning))
|
||||
(when (yes-or-no-p "Include your Org-mode configuration ")
|
||||
(when (yes-or-no-p "Include your Org configuration ")
|
||||
(mapatoms
|
||||
(lambda (v)
|
||||
(and (boundp v)
|
||||
|
@ -21896,7 +21896,7 @@ what in fact did happen. You don't know how to make a good report? See
|
|||
|
||||
http://orgmode.org/manual/Feedback.html#Feedback
|
||||
|
||||
Your bug report will be posted to the Org-mode mailing list.
|
||||
Your bug report will be posted to the Org mailing list.
|
||||
------------------------------------------------------------------------")
|
||||
(save-excursion
|
||||
(when (re-search-backward "^\\(Subject: \\)Org-mode version \\(.*?\\);[ \t]*\\(.*\\)" nil t)
|
||||
|
@ -22341,7 +22341,7 @@ contexts are:
|
|||
:item on the first line of a plain list item
|
||||
:item-bullet on the bullet/number of a plain list item
|
||||
:checkbox on the checkbox in a plain list item
|
||||
:table in an org-mode table
|
||||
:table in an Org table
|
||||
:table-special on a special filed in a table
|
||||
:table-table in a table.el table
|
||||
:clocktable in a clocktable
|
||||
|
@ -24287,7 +24287,7 @@ If there is no such heading, return nil."
|
|||
(let ((first t)
|
||||
(level (funcall outline-level)))
|
||||
(if (and (derived-mode-p 'org-mode) (< level 1000))
|
||||
;; A true heading (not a plain list item), in Org-mode
|
||||
;; A true heading (not a plain list item), in Org
|
||||
;; This means we can easily find the end by looking
|
||||
;; only for the right number of stars. Using a regexp to do
|
||||
;; this is so much faster than using a Lisp loop.
|
||||
|
|
|
@ -836,11 +836,11 @@ e.g. \"tex:mathjax\". Allowed values are:
|
|||
"Non-nil means make file links to `file.org' point to `file.html'.
|
||||
When `org-mode' is exporting an `org-mode' file to HTML, links to
|
||||
non-html files are directly put into a href tag in HTML.
|
||||
However, links to other Org-mode files (recognized by the
|
||||
extension `.org') should become links to the corresponding html
|
||||
However, links to other Org files (recognized by the extension
|
||||
\".org\") should become links to the corresponding HTML
|
||||
file, assuming that the linked `org-mode' file will also be
|
||||
converted to HTML.
|
||||
When nil, the links still point to the plain `.org' file."
|
||||
When nil, the links still point to the plain \".org\" file."
|
||||
:group 'org-export-html
|
||||
:type 'boolean)
|
||||
|
||||
|
@ -3659,10 +3659,10 @@ is non-nil."
|
|||
|
||||
;;;###autoload
|
||||
(defun org-html-convert-region-to-html ()
|
||||
"Assume the current region has org-mode syntax, and convert it to HTML.
|
||||
"Assume the current region has Org syntax, and convert it to HTML.
|
||||
This can be used in any buffer. For example, you can write an
|
||||
itemized list in org-mode syntax in an HTML buffer and use this
|
||||
command to convert it."
|
||||
itemized list in Org syntax in an HTML buffer and use this command
|
||||
to convert it."
|
||||
(interactive)
|
||||
(org-export-replace-region-by 'html))
|
||||
|
||||
|
|
|
@ -3482,9 +3482,9 @@ is non-nil."
|
|||
|
||||
;;;###autoload
|
||||
(defun org-latex-convert-region-to-latex ()
|
||||
"Assume the current region has org-mode syntax, and convert it to LaTeX.
|
||||
"Assume the current region has Org syntax, and convert it to LaTeX.
|
||||
This can be used in any buffer. For example, you can write an
|
||||
itemized list in org-mode syntax in an LaTeX buffer and use this
|
||||
itemized list in Org syntax in an LaTeX buffer and use this
|
||||
command to convert it."
|
||||
(interactive)
|
||||
(org-export-replace-region-by 'latex))
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
;;
|
||||
;; M-: (org-export-to-buffer 'man "*Test Man*") RET
|
||||
;;
|
||||
;; in an org-mode buffer then switch to the buffer to see the Man
|
||||
;; export. See ox.el for more details on how this exporter works.
|
||||
;; in an Org buffer then switch to the buffer to see the Man export.
|
||||
;; See ox.el for more details on how this exporter works.
|
||||
;;
|
||||
;; It introduces one new buffer keywords:
|
||||
;; "MAN_CLASS_OPTIONS".
|
||||
|
|
|
@ -514,9 +514,9 @@ non-nil."
|
|||
|
||||
;;;###autoload
|
||||
(defun org-md-convert-region-to-md ()
|
||||
"Assume the current region has org-mode syntax, and convert it to Markdown.
|
||||
"Assume the current region has Org syntax, and convert it to Markdown.
|
||||
This can be used in any buffer. For example, you can write an
|
||||
itemized list in org-mode syntax in a Markdown buffer and use
|
||||
itemized list in Org syntax in a Markdown buffer and use
|
||||
this command to convert it."
|
||||
(interactive)
|
||||
(org-export-replace-region-by 'md))
|
||||
|
|
|
@ -61,7 +61,7 @@ the name of the original file and the name of the file
|
|||
produced.")
|
||||
|
||||
(defgroup org-publish nil
|
||||
"Options for publishing a set of Org-mode and related files."
|
||||
"Options for publishing a set of files."
|
||||
:tag "Org Publishing"
|
||||
:group 'org)
|
||||
|
||||
|
|
|
@ -1577,10 +1577,10 @@ Return output file name."
|
|||
|
||||
;;;###autoload
|
||||
(defun org-texinfo-convert-region-to-texinfo ()
|
||||
"Assume the current region has org-mode syntax, and convert it to Texinfo.
|
||||
"Assume the current region has Org syntax, and convert it to Texinfo.
|
||||
This can be used in any buffer. For example, you can write an
|
||||
itemized list in org-mode syntax in an Texinfo buffer and use
|
||||
this command to convert it."
|
||||
itemized list in Org syntax in an Texinfo buffer and use this
|
||||
command to convert it."
|
||||
(interactive)
|
||||
(org-export-replace-region-by 'texinfo))
|
||||
|
||||
|
|
|
@ -41,14 +41,14 @@ the Git work tree)."
|
|||
;;; Code:
|
||||
;;;\#\#\#autoload
|
||||
\(defun org-release ()
|
||||
\"The release version of org-mode.
|
||||
Inserted by installing org-mode or when a release is made.\"
|
||||
\"The release version of Org.
|
||||
Inserted by installing Org mode or when a release is made.\"
|
||||
(let ((org-release \"" org-release "\"))
|
||||
org-release))
|
||||
;;;\#\#\#autoload
|
||||
\(defun org-git-version ()
|
||||
\"The Git version of org-mode.
|
||||
Inserted by installing org-mode or when a release is made.\"
|
||||
Inserted by installing Org or when a release is made.\"
|
||||
(let ((org-git-version \"" org-git-version "\"))
|
||||
org-git-version))
|
||||
;;;\#\#\#autoload
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
;;; Comments:
|
||||
|
||||
;; Org-mode tests for ob-emacs-lisp.el live here
|
||||
;; Org tests for ob-emacs-lisp.el live here
|
||||
|
||||
;;; Code:
|
||||
(ert-deftest ob-emacs-lisp/commented-last-block-line-no-var ()
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
;;; Comments:
|
||||
|
||||
;; Template test file for Org-mode tests
|
||||
;; Template test file for Org tests
|
||||
|
||||
;;; Code:
|
||||
|
||||
|
@ -68,7 +68,7 @@ Current buffer is a copy of the original buffer."
|
|||
(when (get-buffer name) (kill-buffer name))))
|
||||
|
||||
(ert-deftest test-ob-exp/org-babel-exp-src-blocks/w-no-headers2 ()
|
||||
"Testing export without any headlines in the org-mode file."
|
||||
"Testing export without any headlines in the Org file."
|
||||
(let ((html-file (concat (file-name-sans-extension
|
||||
org-test-link-in-heading-file)
|
||||
".html")))
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
(or load-file-name buffer-file-name)))))))
|
||||
|
||||
(ert-deftest test-ob-lob/ingest ()
|
||||
"Test the ingestion of an org-mode file."
|
||||
"Test the ingestion of an Org file."
|
||||
(should (< 0 (org-babel-lob-ingest
|
||||
(expand-file-name "babel.org" org-test-example-dir)))))
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
;;; Comment:
|
||||
|
||||
;; Template test file for Org-mode tests
|
||||
;; Template test file for Org tests
|
||||
|
||||
;;; Code:
|
||||
(org-test-for-executable "sh")
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
;;; Comments:
|
||||
|
||||
;; Template test file for Org-mode tests
|
||||
;; Template test file for Org tests
|
||||
|
||||
;;; Code:
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
;;; Comments:
|
||||
|
||||
;; Template test file for Org-mode tests
|
||||
;; Template test file for Org tests
|
||||
|
||||
|
||||
;;; Code:
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
;;;; Comments:
|
||||
|
||||
;; Template test file for Org-mode tests. Many tests are also a howto
|
||||
;; Template test file for Org tests. Many tests are also a howto
|
||||
;; example collection as a user documentation, more or less all those
|
||||
;; using `org-test-table-target-expect'. See also the doc string of
|
||||
;; `org-test-table-target-expect'.
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
;;; Comments:
|
||||
|
||||
;; Template test file for Org-mode tests
|
||||
;; Template test file for Org tests
|
||||
|
||||
;;; Code:
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
;;;; org-test.el --- Tests for Org-mode
|
||||
;;;; org-test.el --- Tests for Org
|
||||
|
||||
;; Copyright (c) 2010-2015 Sebastian Rose, Eric Schulte
|
||||
;; Authors:
|
||||
|
@ -142,7 +142,7 @@ currently executed.")
|
|||
(def-edebug-spec org-test-at-id (form body))
|
||||
|
||||
(defmacro org-test-in-example-file (file &rest body)
|
||||
"Execute body in the Org-mode example file."
|
||||
"Execute body in the Org example file."
|
||||
(declare (indent 1))
|
||||
`(let* ((my-file (or ,file org-test-file))
|
||||
(visited-p (get-file-buffer my-file))
|
||||
|
@ -178,7 +178,7 @@ files."
|
|||
(def-edebug-spec org-test-at-marker (form form body))
|
||||
|
||||
(defmacro org-test-with-temp-text (text &rest body)
|
||||
"Run body in a temporary buffer with Org-mode as the active
|
||||
"Run body in a temporary buffer with Org mode as the active
|
||||
mode holding TEXT. If the string \"<point>\" appears in TEXT
|
||||
then remove it and place the point there before running BODY,
|
||||
otherwise place the point at the beginning of the inserted text."
|
||||
|
@ -198,7 +198,7 @@ otherwise place the point at the beginning of the inserted text."
|
|||
(def-edebug-spec org-test-with-temp-text (form body))
|
||||
|
||||
(defmacro org-test-with-temp-text-in-file (text &rest body)
|
||||
"Run body in a temporary file buffer with Org-mode as the active mode."
|
||||
"Run body in a temporary file buffer with Org mode as the active mode."
|
||||
(declare (indent 1))
|
||||
(let ((results (gensym)))
|
||||
`(let ((file (make-temp-file "org-test"))
|
||||
|
@ -277,7 +277,7 @@ setting `pp-escape-newlines' to nil manually."
|
|||
("testing/lisp/test-\\1.el" . "lisp/\\1.el")
|
||||
("testing/lisp/\\1.el" . "lisp/\\1.el/test.*.el"))
|
||||
(concat org-base-dir "/")
|
||||
"Jump between org-mode files and their tests."
|
||||
"Jump between Org files and their tests."
|
||||
(lambda (path)
|
||||
(let* ((full-path (expand-file-name path org-base-dir))
|
||||
(file-name (file-name-nondirectory path))
|
||||
|
@ -291,7 +291,7 @@ setting `pp-escape-newlines' to nil manually."
|
|||
";; Released under the GNU General Public License version 3\n"
|
||||
";; see: http://www.gnu.org/licenses/gpl-3.0.html\n\n"
|
||||
";;;; Comments:\n\n"
|
||||
";; Template test file for Org-mode tests\n\n"
|
||||
";; Template test file for Org tests\n\n"
|
||||
"\n"
|
||||
";;; Code:\n"
|
||||
"(let ((load-path (cons (expand-file-name\n"
|
||||
|
@ -334,7 +334,7 @@ setting `pp-escape-newlines' to nil manually."
|
|||
|
||||
;;; Load and Run tests
|
||||
(defun org-test-load ()
|
||||
"Load up the org-mode test suite."
|
||||
"Load up the Org test suite."
|
||||
(interactive)
|
||||
(cl-flet ((rld (base)
|
||||
;; Recursively load all files, if files throw errors
|
||||
|
@ -374,7 +374,7 @@ setting `pp-escape-newlines' to nil manually."
|
|||
"/")))
|
||||
|
||||
(defvar org-test-buffers nil
|
||||
"Hold buffers open for running Org-mode tests.")
|
||||
"Hold buffers open for running Org tests.")
|
||||
|
||||
(defun org-test-touch-all-examples ()
|
||||
(dolist (file (directory-files
|
||||
|
|
Loading…
Reference in New Issue