Commit 3c8b09ca authored by Bastien Guerry's avatar Bastien Guerry

Merge Org version 8.2.5c.

parent 2b6b4f20
2013-01-07 Rasmus <w530@pank.eu>
* misc/org.texi (Global and local cycling): Fix missing '@'.
2013-01-07 Bastien Guerry <bzg@gnu.org>
* misc/org.texi (Global and local cycling): Mention C-u C-u TAB.
(Include files, The Export Dispatcher)
(Advanced configuration)
(Header arguments in Org mode properties): Spelling fixes.
(Special blocks): Add #+BEGIN_ABSTRACT as another example.
(@LaTeX{} specific attributes): New index entries. Use
#+BEGIN_ABSTRACT in the example.
2013-01-07 Nicolas Goaziou <n.goaziou@gmail.com>
* misc/org.texi (Org export): New section.
(HTML doctypes): Fix whitespace error. Fix display.
(Publishing options): Add missing html publishing options.
2014-01-07 Glenn Morris <rgm@gnu.org> 2014-01-07 Glenn Morris <rgm@gnu.org>
* efaq.texi (Basic editing, Packages that do not come with Emacs): * efaq.texi (Basic editing, Packages that do not come with Emacs):
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
@c %**start of header @c %**start of header
@setfilename ../../info/org @setfilename ../../info/org
@settitle The Org Manual @settitle The Org Manual
@set VERSION 8.2.4
@include org-version.inc
@c Use proper quote and backtick for code sections in PDF output @c Use proper quote and backtick for code sections in PDF output
@c Cf. Texinfo manual 14.2 @c Cf. Texinfo manual 14.2
...@@ -280,7 +281,7 @@ modify this GNU manual.'' ...@@ -280,7 +281,7 @@ modify this GNU manual.''
@dircategory Emacs editing modes @dircategory Emacs editing modes
@direntry @direntry
* Org Mode: (org). Outline-based notes management and organizer. * Org Mode: (org). Outline-based notes management and organizer
@end direntry @end direntry
@titlepage @titlepage
...@@ -588,6 +589,7 @@ Exporting ...@@ -588,6 +589,7 @@ Exporting
* @LaTeX{} and PDF export:: Exporting to @LaTeX{}, and processing to PDF * @LaTeX{} and PDF export:: Exporting to @LaTeX{}, and processing to PDF
* Markdown export:: Exporting to Markdown * Markdown export:: Exporting to Markdown
* OpenDocument Text export:: Exporting to OpenDocument Text * OpenDocument Text export:: Exporting to OpenDocument Text
* Org export:: Exporting to Org
* iCalendar export:: Exporting to iCalendar * iCalendar export:: Exporting to iCalendar
* Other built-in back-ends:: Exporting to @code{Texinfo}, a man page, or Org * Other built-in back-ends:: Exporting to @code{Texinfo}, a man page, or Org
* Export in foreign buffers:: Author tables in lists in Org syntax * Export in foreign buffers:: Author tables in lists in Org syntax
...@@ -1283,6 +1285,9 @@ When @kbd{S-@key{TAB}} is called with a numeric prefix argument N, the ...@@ -1283,6 +1285,9 @@ When @kbd{S-@key{TAB}} is called with a numeric prefix argument N, the
CONTENTS view up to headlines of level N will be shown. Note that inside CONTENTS view up to headlines of level N will be shown. Note that inside
tables, @kbd{S-@key{TAB}} jumps to the previous field. tables, @kbd{S-@key{TAB}} jumps to the previous field.
@cindex set startup visibility, command
@orgcmd{C-u C-u @key{TAB},org-set-startup-visibility}
Switch back to the startup visibility of the buffer (@pxref{Initial visibility}).
@cindex show all, command @cindex show all, command
@orgcmd{C-u C-u C-u @key{TAB},show-all} @orgcmd{C-u C-u C-u @key{TAB},show-all}
Show all, including drawers. Show all, including drawers.
...@@ -10313,12 +10318,19 @@ Org syntax includes pre-defined blocks (@pxref{Paragraphs} and @ref{Literal ...@@ -10313,12 +10318,19 @@ Org syntax includes pre-defined blocks (@pxref{Paragraphs} and @ref{Literal
examples}). It is also possible to create blocks containing raw code examples}). It is also possible to create blocks containing raw code
targeted at a specific back-ends (e.g., @samp{#+BEGIN_LATEX}). targeted at a specific back-ends (e.g., @samp{#+BEGIN_LATEX}).
Any other block is a @emph{special block}. Each export back-end decides if Any other block is a @emph{special block}.
they should be exported, and how. When the block is ignored, its contents
are still exported, as if the block were not there. For example, when For example, @samp{#+BEGIN_ABSTRACT} and @samp{#+BEGIN_VIDEO} are special
exporting a @samp{#+BEGIN_TEST} block, HTML back-end wraps its contents blocks. The first one is useful when exporting to @LaTeX{}, the second one
within @samp{<div name="test">} tag. Refer to back-end specific when exporting to HTML5.
documentation for more information.
Each export back-end decides if they should be exported, and how. When the
block is ignored, its contents are still exported, as if the opening and
closing block lines were not there. For example, when exporting a
@samp{#+BEGIN_TEST} block, HTML back-end wraps its contents within a
@samp{<div name="test">} tag.
Refer to back-end specific documentation for more information.
@node Exporting, Publishing, Markup, Top @node Exporting, Publishing, Markup, Top
@chapter Exporting @chapter Exporting
...@@ -10350,6 +10362,7 @@ in the iCalendar format. ...@@ -10350,6 +10362,7 @@ in the iCalendar format.
* @LaTeX{} and PDF export:: Exporting to @LaTeX{}, and processing to PDF * @LaTeX{} and PDF export:: Exporting to @LaTeX{}, and processing to PDF
* Markdown export:: Exporting to Markdown * Markdown export:: Exporting to Markdown
* OpenDocument Text export:: Exporting to OpenDocument Text * OpenDocument Text export:: Exporting to OpenDocument Text
* Org export:: Exporting to Org
* iCalendar export:: Exporting to iCalendar * iCalendar export:: Exporting to iCalendar
* Other built-in back-ends:: Exporting to @code{Texinfo}, a man page, or Org * Other built-in back-ends:: Exporting to @code{Texinfo}, a man page, or Org
* Export in foreign buffers:: Author tables in lists in Org syntax * Export in foreign buffers:: Author tables in lists in Org syntax
...@@ -10449,6 +10462,7 @@ Built-in back-ends include: ...@@ -10449,6 +10462,7 @@ Built-in back-ends include:
@item man (Man page format) @item man (Man page format)
@item md (Markdown format) @item md (Markdown format)
@item odt (OpenDocument Text format) @item odt (OpenDocument Text format)
@item org (Org format)
@item texinfo (Texinfo format) @item texinfo (Texinfo format)
@end itemize @end itemize
...@@ -11107,12 +11121,12 @@ Becomes: ...@@ -11107,12 +11121,12 @@ Becomes:
@end example @end example
Special blocks that do not correspond to HTML5 elements (see Special blocks that do not correspond to HTML5 elements (see
@code{org-html-html5-elements}) will revert to the usual behavior, @code{org-html-html5-elements}) will revert to the usual behavior, i.e.,
i.e. #+BEGIN_LEDERHOSEN will still export to <div class=''lederhosen''>. @code{#+BEGIN_LEDERHOSEN} will still export to @samp{<div class="lederhosen">}.
Headlines cannot appear within special blocks. To wrap a headline and its Headlines cannot appear within special blocks. To wrap a headline and its
contents in e.g. <section> or <article> tags, set the @code{HTML_CONTAINER} contents in e.g., @samp{<section>} or @samp{<article>} tags, set the
property on the headline itself. @code{HTML_CONTAINER} property on the headline itself.
@node HTML preamble and postamble, Quoting HTML tags, HTML doctypes, HTML export @node HTML preamble and postamble, Quoting HTML tags, HTML doctypes, HTML export
@subsection HTML preamble and postamble @subsection HTML preamble and postamble
...@@ -11791,12 +11805,18 @@ Code that may not fit in a single page. ...@@ -11791,12 +11805,18 @@ Code that may not fit in a single page.
@subsubheading Special blocks in @LaTeX{} export @subsubheading Special blocks in @LaTeX{} export
@cindex special blocks, in @LaTeX{} export @cindex special blocks, in @LaTeX{} export
@cindex abstract, in @LaTeX{} export
@cindex proof, in @LaTeX{} export
In @LaTeX{} back-end, special blocks become environments of the same name. In @LaTeX{} back-end, special blocks become environments of the same name.
Value of @code{:options} attribute will be appended as-is to that Value of @code{:options} attribute will be appended as-is to that
environment's opening string. For example: environment's opening string. For example:
@example @example
#+BEGIN_ABSTRACT
We demonstrate how to solve the Syracuse problem.
#+END_ABSTRACT
#+ATTR_LATEX: :options [Proof of important theorem] #+ATTR_LATEX: :options [Proof of important theorem]
#+BEGIN_PROOF #+BEGIN_PROOF
... ...
...@@ -11808,6 +11828,10 @@ Therefore, any even number greater than 2 is the sum of two primes. ...@@ -11808,6 +11828,10 @@ Therefore, any even number greater than 2 is the sum of two primes.
becomes becomes
@example @example
\begin@{abstract@}
We demonstrate how to solve the Syracuse problem.
\end@{abstract@}
\begin@{proof@}[Proof of important theorem] \begin@{proof@}[Proof of important theorem]
... ...
Therefore, any even number greater than 2 is the sum of two primes. Therefore, any even number greater than 2 is the sum of two primes.
...@@ -11872,7 +11896,7 @@ that one (@pxref{Export settings}). ...@@ -11872,7 +11896,7 @@ that one (@pxref{Export settings}).
@c begin opendocument @c begin opendocument
@node OpenDocument Text export, iCalendar export, Markdown export, Exporting @node OpenDocument Text export, Org export, Markdown export, Exporting
@section OpenDocument Text export @section OpenDocument Text export
@cindex ODT @cindex ODT
@cindex OpenDocument @cindex OpenDocument
...@@ -12789,7 +12813,28 @@ will take care of updating the @code{rng-schema-locating-files} for you. ...@@ -12789,7 +12813,28 @@ will take care of updating the @code{rng-schema-locating-files} for you.
@c end opendocument @c end opendocument
@node iCalendar export, Other built-in back-ends, OpenDocument Text export, Exporting @node Org export
@section Org export
@cindex Org export
@code{org} export back-end creates a normalized version of the Org document
in current buffer. In particular, it evaluates Babel code (@pxref{Evaluating
code blocks}) and removes other back-ends specific contents.
@subheading Org export commands
@table @kbd
@orgcmd{C-c C-e O o,org-org-export-to-org}
Export as an Org document. For an Org file, @file{myfile.org}, the resulting
file will be @file{myfile.org.org}. The file will be overwritten without
warning.
@orgcmd{C-c C-e O O,org-org-export-as-org}
Export to a temporary buffer. Do not create a file.
@item C-c C-e O v
Export to an Org file, then open it.
@end table
@node iCalendar export, Other built-in back-ends, Org export, Exporting
@section iCalendar export @section iCalendar export
@cindex iCalendar export @cindex iCalendar export
...@@ -12868,7 +12913,6 @@ On top of the aforementioned back-ends, Org comes with other built-in ones: ...@@ -12868,7 +12913,6 @@ On top of the aforementioned back-ends, Org comes with other built-in ones:
@itemize @itemize
@item @file{ox-man.el}: export to a man page. @item @file{ox-man.el}: export to a man page.
@item @file{ox-texinfo.el}: export to @code{Texinfo} format. @item @file{ox-texinfo.el}: export to @code{Texinfo} format.
@item @file{ox-org.el}: export to an Org document.
@end itemize @end itemize
To activate these export back-end, customize @code{org-export-backends} or To activate these export back-end, customize @code{org-export-backends} or
...@@ -13314,10 +13358,13 @@ string of these options for details. ...@@ -13314,10 +13358,13 @@ string of these options for details.
@end multitable @end multitable
@vindex org-html-doctype @vindex org-html-doctype
@vindex org-html-container-element
@vindex org-html-html5-fancy
@vindex org-html-xml-declaration @vindex org-html-xml-declaration
@vindex org-html-link-up @vindex org-html-link-up
@vindex org-html-link-home @vindex org-html-link-home
@vindex org-html-link-org-files-as-html @vindex org-html-link-org-files-as-html
@vindex org-html-link-use-abs-url
@vindex org-html-head @vindex org-html-head
@vindex org-html-head-extra @vindex org-html-head-extra
@vindex org-html-inline-images @vindex org-html-inline-images
...@@ -13325,21 +13372,26 @@ string of these options for details. ...@@ -13325,21 +13372,26 @@ string of these options for details.
@vindex org-html-preamble @vindex org-html-preamble
@vindex org-html-postamble @vindex org-html-postamble
@vindex org-html-table-default-attributes @vindex org-html-table-default-attributes
@vindex org-html-table-row-tags
@vindex org-html-head-include-default-style @vindex org-html-head-include-default-style
@vindex org-html-head-include-scripts @vindex org-html-head-include-scripts
@multitable @columnfractions 0.32 0.68 @multitable @columnfractions 0.32 0.68
@item @code{:html-doctype} @tab @code{org-html-doctype} @item @code{:html-doctype} @tab @code{org-html-doctype}
@item @code{:html-container} @tab @code{org-html-container-element}
@item @code{:html-html5-fancy} @tab @code{org-html-html5-fancy}
@item @code{:html-xml-declaration} @tab @code{org-html-xml-declaration} @item @code{:html-xml-declaration} @tab @code{org-html-xml-declaration}
@item @code{:html-link-up} @tab @code{org-html-link-up} @item @code{:html-link-up} @tab @code{org-html-link-up}
@item @code{:html-link-home} @tab @code{org-html-link-home} @item @code{:html-link-home} @tab @code{org-html-link-home}
@item @code{:html-link-org-as-html} @tab @code{org-html-link-org-files-as-html} @item @code{:html-link-org-as-html} @tab @code{org-html-link-org-files-as-html}
@item @code{:html-link-use-abs-url} @tab @code{org-html-link-use-abs-url}
@item @code{:html-head} @tab @code{org-html-head} @item @code{:html-head} @tab @code{org-html-head}
@item @code{:html-head-extra} @tab @code{org-html-head-extra} @item @code{:html-head-extra} @tab @code{org-html-head-extra}
@item @code{:html-inline-images} @tab @code{org-html-inline-images} @item @code{:html-inline-images} @tab @code{org-html-inline-images}
@item @code{:html-extension} @tab @code{org-html-extension} @item @code{:html-extension} @tab @code{org-html-extension}
@item @code{:html-preamble} @tab @code{org-html-preamble} @item @code{:html-preamble} @tab @code{org-html-preamble}
@item @code{:html-postamble} @tab @code{org-html-postamble} @item @code{:html-postamble} @tab @code{org-html-postamble}
@item @code{:html-table-attributes} @tab @code{org-html-table-default-attributes} @item @code{:html-table-attributes} @tab @code{org-html-table-default-attributes}
@item @code{:html-table-row-tags} @tab @code{org-html-table-row-tags}
@item @code{:html-head-include-default-style} @tab @code{org-html-head-include-default-style} @item @code{:html-head-include-default-style} @tab @code{org-html-head-include-default-style}
@item @code{:html-head-include-scripts} @tab @code{org-html-head-include-scripts} @item @code{:html-head-include-scripts} @tab @code{org-html-head-include-scripts}
@end multitable @end multitable
......
% Reference Card for Org Mode % Reference Card for Org Mode
\def\orgversionnumber{8.2.4} \def\orgversionnumber{8.2}
\def\versionyear{2013} % latest update \def\versionyear{2014} % latest update
\input emacsver.tex \def\year{2014} % latest copyright year
%**start of header %**start of header
\newcount\columnsperpage \newcount\columnsperpage
......
2013-01-07 Bastien Guerry <bzg@gnu.org>
* org-clock.el (org-clock-cancel-hook)
(org-clock-leftover-time): Fix typo in docstring.
* ox-odt.el (org-odt--frame): Add a draw:name property to the
draw:frame tag.
(org-odt-format-label): Don't use short-caption at all.
* org-rmail.el (org-rmail-follow-link): Don't raise an error when
no article is matched.
* org.el (org-set-tags): Ignore invisible text when restoring
cursor position.
(org-refile-get-location): Check for a refile position when the
position is not nil, otherwise allow to create the parent node if
the user requests it.
(org-refile-allow-creating-parent-nodes): Fix typo in
docstring.
(org-entry-get): Minor docstring enhancement.
(org-set-startup-visibility): Bugfix.
(org-shiftcontrolup, org-shiftcontroldown): When
`org-support-shift-select' is not `nil', let-bind it to nil if
point is on a clock log. Otherwise throw an error.
* ob-lob.el (org-babel-lob-files): Fix custom type.
(org-babel-lob-ingest): Small docstring fix.
* org-agenda.el (org-cmp-ts): Fix bug: interpret `late' as
`later than any date' instead of `later than today'.
* org.el (org-do-emphasis-faces): Handle false positives by
restarting the re-search one char after the beginning of the
match, not one char before its ending.
(org-entry-put): Check that the value provided is a string. If it
is nil, convert it to the empty string.
* ob-latex.el (org-babel-latex-htlatex-packages): Use repeat
instead of list as the defcustom type.
* ox.el (org-export-with-creator):
* org.el (org-loop-over-headlines-in-active-region)
(org-mouse-1-follows-link, org-provide-todo-statistics):
* org-agenda.el (org-agenda-custom-commands-local-options)
(org-agenda-start-with-log-mode)
(org-agenda-show-inherited-tags): Don't quote const values.
* ox-texinfo.el (org-texinfo-def-table-markup):
* org-inlinetask.el (org-inlinetask-show-first-star):
* ob-maxima.el (org-babel-maxima-command): Add type.
* org-table.el (org-table-fix-formulas): Handle multiple
#+tblfm: lines.
* ox.el (org-export-to-file): Fix typo in docstring.
* org.el (org-self-insert-command)
(orgtbl-self-insert-command): Change the value of the
`delete-selection' property to allow other commands like
`electric-pair-will-use-region' to be run before deletion.
* org-attach.el (vc-git): Require.
(org-attach-commit): Check whether git is installed.
2013-01-07 Nicolas Goaziou <n.goaziou@gmail.com>
* ox-icalendar.el (org-icalendar--combine-files): Make sure
anniversaries do not end up in *Message* buffer instead of the ICS
file.
* ox-html.el: Clean up "FIXME" comments.
* ox-publish.el (org-publish-resolve-external-fuzzy-link): Fix
docstring.
* ox.el (org-export-smart-quotes-regexps): Fix smart quote
detection when it is followed by an open parenthesis syntax class.
* org-element.el (org-element-inline-babel-call-successor): Use
original regexp to stay up-to-date with Babel changes.
(org-element--affiliated-re): Fix affiliated keyword regexp.
* ox-org.el (org-org-identity): Since back-end specific keywords
are stripped from output, also remove attr_backend keywords.
(org-babel-exp-process-buffer): Fix duplicate evaluation with
:wrap src.
(org-babel-exp-non-block-elements): Removed function.
2013-01-07 Ted Wiles <thewiles@wharton.upenn.edu> (tiny change)
* org-habit.el (org-habit-parse-todo): Match all TODO keywords,
not just "TODO".
2013-01-07 U-usuario <rbenit68@yahoo.es> (tiny change)
* ob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Fix code
typo.
2013-01-07 Vladimir Lomov <lomov.vl@gmail.com> (tiny change)
* ox-html.el (org-html-style-default): New classes caption.t-above
and caption.t-bottom.
(org-html-table): Use new classes.
2013-12-23 Chong Yidong <cyd@gnu.org> 2013-12-23 Chong Yidong <cyd@gnu.org>
* org.el (orgstruct-make-binding): Call set-transient-map instead * org.el (orgstruct-make-binding): Call set-transient-map instead
This diff is collapsed.
...@@ -253,7 +253,7 @@ then create one. Return the initialized session. The current ...@@ -253,7 +253,7 @@ then create one. Return the initialized session. The current
(org-babel-gnuplot-quote-timestamp-field s) (org-babel-gnuplot-quote-timestamp-field s)
(if (zerop (length s)) (if (zerop (length s))
(or *org-babel-gnuplot-missing* s) (or *org-babel-gnuplot-missing* s)
(if (string-match "[ \"]" "?") (if (string-match "[ \"]" s)
(concat "\"" (mapconcat 'identity (split-string s "\"") "\"\"") (concat "\"" (mapconcat 'identity (split-string s "\"") "\"\"")
"\"") "\"")
s))))) s)))))
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
'("[usenames]{color}" "{tikz}" "{color}" "{listings}" "{amsmath}") '("[usenames]{color}" "{tikz}" "{color}" "{listings}" "{amsmath}")
"Packages to use for htlatex export." "Packages to use for htlatex export."
:group 'org-babel :group 'org-babel
:type '(list (string))) :type '(repeat (string)))
(defun org-babel-expand-body:latex (body params) (defun org-babel-expand-body:latex (body params)
"Expand BODY according to PARAMS, return the expanded body." "Expand BODY according to PARAMS, return the expanded body."
......
...@@ -40,14 +40,13 @@ files to `org-babel-lob-files'.") ...@@ -40,14 +40,13 @@ files to `org-babel-lob-files'.")
To add files to this list use the `org-babel-lob-ingest' command." To add files to this list use the `org-babel-lob-ingest' command."
:group 'org-babel :group 'org-babel
:version "24.1" :version "24.1"
:type 'list) :type '(repeat file))
(defvar org-babel-default-lob-header-args '((:exports . "results")) (defvar org-babel-default-lob-header-args '((:exports . "results"))
"Default header arguments to use when exporting #+lob/call lines.") "Default header arguments to use when exporting #+lob/call lines.")
(defun org-babel-lob-ingest (&optional file) (defun org-babel-lob-ingest (&optional file)
"Add all named source-blocks defined in FILE to "Add all named source blocks defined in FILE to `org-babel-library-of-babel'."
`org-babel-library-of-babel'."
(interactive "fFile: ") (interactive "fFile: ")
(let ((lob-ingest-count 0)) (let ((lob-ingest-count 0))
(org-babel-map-src-blocks file (org-babel-map-src-blocks file
......
...@@ -43,7 +43,8 @@ ...@@ -43,7 +43,8 @@
(defcustom org-babel-maxima-command (defcustom org-babel-maxima-command
(if (boundp 'maxima-command) maxima-command "maxima") (if (boundp 'maxima-command) maxima-command "maxima")
"Command used to call maxima on the shell." "Command used to call maxima on the shell."
:group 'org-babel) :group 'org-babel
:type 'string)
(defun org-babel-maxima-expand (body params) (defun org-babel-maxima-expand (body params)
"Expand a block of Maxima code according to its header arguments." "Expand a block of Maxima code according to its header arguments."
......
...@@ -328,11 +328,11 @@ the daily/weekly agenda, see `org-agenda-skip-function'.") ...@@ -328,11 +328,11 @@ the daily/weekly agenda, see `org-agenda-skip-function'.")
(string)) (string))
(list :tag "Number of days in agenda" (list :tag "Number of days in agenda"
(const org-agenda-span) (const org-agenda-span)
(choice (const :tag "Day" 'day) (choice (const :tag "Day" day)
(const :tag "Week" 'week) (const :tag "Week" week)
(const :tag "Fortnight" 'fortnight) (const :tag "Fortnight" fortnight)
(const :tag "Month" 'month) (const :tag "Month" month)
(const :tag "Year" 'year) (const :tag "Year" year)
(integer :tag "Custom"))) (integer :tag "Custom")))
(list :tag "Fixed starting date" (list :tag "Fixed starting date"
(const org-agenda-start-day) (const org-agenda-start-day)
...@@ -390,32 +390,32 @@ the daily/weekly agenda, see `org-agenda-skip-function'.") ...@@ -390,32 +390,32 @@ the daily/weekly agenda, see `org-agenda-skip-function'.")
(repeat :inline t :tag "Conditions for skipping" (repeat :inline t :tag "Conditions for skipping"
(choice (choice
:tag "Condition type" :tag "Condition type"
(list :tag "Regexp matches" :inline t (const :format "" 'regexp) (regexp)) (list :tag "Regexp matches" :inline t (const :format "" regexp) (regexp))
(list :tag "Regexp does not match" :inline t (const :format "" 'notregexp) (regexp)) (list :tag "Regexp does not match" :inline t (const :format "" notregexp) (regexp))
(list :tag "TODO state is" :inline t (list :tag "TODO state is" :inline t
(const 'todo) (const todo)
(choice (choice
(const :tag "any not-done state" 'todo) (const :tag "any not-done state" todo)
(const :tag "any done state" 'done) (const :tag "any done state" done)
(const :tag "any state" 'any) (const :tag "any state" any)
(list :tag "Keyword list" (list :tag "Keyword list"
(const :format "" quote) (const :format "" quote)
(repeat (string :tag "Keyword"))))) (repeat (string :tag "Keyword")))))
(list :tag "TODO state is not" :inline t (list :tag "TODO state is not" :inline t
(const 'nottodo) (const nottodo)
(choice (choice
(const :tag "any not-done state" 'todo) (const :tag "any not-done state" todo)
(const :tag "any done state" 'done) (const :tag "any done state" done)
(const :tag "any state" 'any) (const :tag "any state" any)
(list :tag "Keyword list" (list :tag "Keyword list"
(const :format "" quote) (const :format "" quote)
(repeat (string :tag "Keyword"))))) (repeat (string :tag "Keyword")))))
(const :tag "scheduled" 'scheduled) (const :tag "scheduled" scheduled)
(const :tag "not scheduled" 'notscheduled) (const :tag "not scheduled" notscheduled)
(const :tag "deadline" 'deadline) (const :tag "deadline" deadline)
(const :tag "no deadline" 'notdeadline) (const :tag "no deadline" notdeadline)
(const :tag "timestamp" 'timestamp) (const :tag "timestamp" timestamp)
(const :tag "no timestamp" 'nottimestamp)))))) (const :tag "no timestamp" nottimestamp))))))
(list :tag "Non-standard skipping condition" (list :tag "Non-standard skipping condition"
:value (org-agenda-skip-function) :value (org-agenda-skip-function)
(const org-agenda-skip-function) (const org-agenda-skip-function)
...@@ -1357,12 +1357,12 @@ explanations on the possible values." ...@@ -1357,12 +1357,12 @@ explanations on the possible values."
:group 'org-agenda-startup :group 'org-agenda-startup
:group 'org-agenda-daily/weekly :group 'org-agenda-daily/weekly
:type '(choice (const :tag "Don't show log items" nil) :type '(choice (const :tag "Don't show log items" nil)
(const :tag "Show only log items" 'only) (const :tag "Show only log items" only)
(const :tag "Show all possible log items" 'clockcheck) (const :tag "Show all possible log items" clockcheck)
(repeat :tag "Choose among possible values for `org-agenda-log-mode-items'" (repeat :tag "Choose among possible values for `org-agenda-log-mode-items'"
(choice (const :tag "Show closed log items" 'closed) (choice (const :tag "Show closed log items" closed)
(const :tag "Show clocked log items" 'clock) (const :tag "Show clocked log items" clock)
(const :tag "Show all logged state changes" 'state))))) (const :tag "Show all logged state changes" state)))))
(defcustom org-agenda-start-with-clockreport-mode nil (defcustom org-agenda-start-with-clockreport-mode nil
"The initial value of clockreport-mode in a newly created agenda window." "The initial value of clockreport-mode in a newly created agenda window."
...@@ -1805,7 +1805,7 @@ When set to nil, never show inherited tags in agenda lines." ...@@ -1805,7 +1805,7 @@ When set to nil, never show inherited tags in agenda lines."
:version "24.3" :version "24.3"
:type '(choice :type '(choice
(const :tag "Show inherited tags when available" t) (const :tag "Show inherited tags when available" t)
(const :tag "Always show inherited tags" 'always) (const :tag "Always show inherited tags" always)
(repeat :tag "Show inherited tags only in selected agenda types" (repeat :tag "Show inherited tags only in selected agenda types"
(symbol :tag "Agenda type")))) (symbol :tag "Agenda type"))))
...@@ -7003,7 +7003,7 @@ When TYPE is \"scheduled\", \"deadline\", \"timestamp\" or ...@@ -7003,7 +7003,7 @@ When TYPE is \"scheduled\", \"deadline\", \"timestamp\" or
\"timestamp_ia\", compare within each of these type. When TYPE \"timestamp_ia\", compare within each of these type. When TYPE
is the empty string, compare all timestamps without respect of is the empty string, compare all timestamps without respect of
their type." their type."
(let* ((def (if org-sort-agenda-notime-is-late 9901 -1)) (let* ((def (if org-sort-agenda-notime-is-late most-positive-fixnum -1))
(ta (or (and (string-match type (or (get-text-property 1 'type a) "")) (ta (or (and (string-match type (or (get-text-property 1 'type a) ""))
(get-text-property 1 'ts-date a)) def)) (get-text-property 1 'ts-date a)) def))
(tb (or (and (string-match type (or (get-text-property 1 'type b) "")) (tb (or (and (string-match type (or (get-text-property 1 'type b) ""))
......
...@@ -41,8 +41,7 @@ ...@@ -41,8 +41,7 @@
(require 'cl)) (require 'cl))
(require 'org-id) (require 'org-id)
(require 'org) (require 'org)
(require 'vc-git)
(declare-function vc-git-root "vc-git" (file))
(defgroup org-attach nil (defgroup org-attach nil
"Options concerning entry attachments in Org-mode." "Options concerning entry attachments in Org-mode."
...@@ -266,7 +265,7 @@ This checks for the existence of a \".git\" directory in that directory." ...@@ -266,7 +265,7 @@ This checks for the existence of a \".git\" directory in that directory."
(let* ((dir (expand-file-name org-attach-directory)) (let* ((dir (expand-file-name org-attach-directory))
(git-dir (vc-git-root dir)) (git-dir (vc-git-root dir))
(changes 0)) (changes 0))
(when git-dir (when (and git-dir (executable-find "git"))
(with-temp-buffer (with-temp-buffer