Nicolas Goaziou
1d7150319b
Fix docstrings
...
* lisp/org-clock.el (org-clock-get-table-data):
* lisp/org-element.el (org-element--cache-objects):
(org-element--cache-generate-key):
* lisp/org-footnote.el (org-footnote--collect-references):
* lisp/org-list.el (org-list-to-lisp):
* lisp/org-table.el (orgtbl-to-generic):
* lisp/org.el (org-file-apps):
(org-execute-file-search-functions):
(org-after-todo-statistics-hook):
(org-find-olp):
* lisp/ox-html.el (org-html-table-row-open-tag): Do not escape
parenthesis in docstring when not at column 0.
2016-10-31 10:01:33 +01:00
Nicolas Goaziou
21932c15d3
org-list: Fix docstrings
...
* lisp/org-list.el (org-list-to-latex):
(org-list-to-html):
(org-list-to-texinfo): Document missing parameter.
(org-list-to-subtree): Replace obsolete `org-list-parse-list' with
`org-list-to-lisp'.
2016-10-30 20:25:57 +01:00
Oleh Krehel
1399f58049
contrib/lisp/org-download.el: Remove
...
Fixes https://github.com/abo-abo/org-download/issues/38
The package remains available at the above address and MELPA.
2016-10-30 09:10:23 +02:00
Nicolas Goaziou
adfa7649e5
org-compat: Assume `string-prefix-p' is defined
...
* lisp/org-compat.el: `string-prefix-p' was introduced in Emacs 24.1,
which is below Org minimal expectations. Only define
`string-suffix-p' when necessary.
2016-10-29 10:02:27 +02:00
Nicolas Goaziou
a94493f5a2
Properly fontify short captions
...
* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Properly fontify
short captions.
2016-10-29 01:09:26 +02:00
Nicolas Goaziou
7bbe9202c2
Match `org-complex-heading-regexp' with a nil `case-fold-search'
...
* lisp/org-agenda.el (org-agenda-goto):
* lisp/org-clock.el (org-clock-in):
(org-clock-out):
(org-clock-put-overlay):
(org-clock-load):
* lisp/org-element.el (org-element-context):
* lisp/org-footnote.el (org-footnote--allow-reference-p):
* lisp/org-mobile.el:
* lisp/ox.el (org-export--get-subtree-options):
* lisp/org.el (org-insert-heading):
(org-edit-headline):
(org-open-at-point):
(org-refile-get-targets):
(org--get-outline-path-1):
(org-toggle-comment):
(org-set-tags-to):
(org-set-tags):
(org-entry-properties):
(org-delete-indentation):
(org-beginning-of-line):
(org-end-of-line):
(org-mode-flyspell-verify): Bind `case-fold-search' to nil when matching
`org-complex-heading-regexp'.
(org-complex-heading-regexp): Add a note about the necessity to have
`case-fold-search' bound to nil.
2016-10-29 00:38:15 +02:00
Nicolas Goaziou
e8b4eeb482
Fix `org-return' on non-keyword
...
* lisp/org.el (org-return): Recognize non-keywords and split text
accordingly.
* testing/lisp/test-org.el (test-org/return): Add test.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109929 >
2016-10-29 00:00:32 +02:00
Nicolas Goaziou
4f9ec1adeb
org-element: Fix export of LaTeX math in headlines
...
* lisp/org-element.el (org-element-class): Find pseudo-objects in
secondary strings.
* testing/lisp/test-org-element.el (test-org-element/class): Add test.
This bug was introduced in 1a88cf920e
.
Reported-by: Stefanos Carlström <stefanos.carlstrom@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109922 >
2016-10-28 15:46:22 +02:00
Nicolas Goaziou
33f8f8adaa
org-clock: Fix clock table with `file-with-archives' scope
...
* lisp/org-clock.el (org-dblock-write:clocktable): Small refactoring.
(org-clocktable-write-default): Avoid writing a "File" column when using
`file-with-archives' scope instead of deleting it at the end of the
process.
* testing/lisp/test-org-clock.el (test-org-clock/clocktable): Add test.
Reported-by: Dale <dale@codefu.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/109856 >
2016-10-27 11:42:27 +02:00
Nicolas Goaziou
c51d6ca4ab
org-element: Remove wrong code comment
...
* lisp/org-element.el (org-element--parse-objects): Remove wrong code
comment. The function doesn't untabify since 44cb8b1
.
2016-10-27 00:48:33 +02:00
Nicolas Goaziou
018772a795
org-element: Tiny speed-up
...
* lisp/org-element.el (org-element--object-lex): Do not search for radio
targets when they are not allowed in current restriction.
2016-10-27 00:47:11 +02:00
Nicolas Goaziou
a300f362a0
org-element: Fix parsing radio links
...
* lisp/org-element.el (org-element--object-lex): Do not re-match past
1-character long radio links.
* testing/lisp/test-org-element.el (test-org-element/link-parser): Add
test.
Reported-by: Daniel Clemente <n142857@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109861 >
2016-10-27 00:41:19 +02:00
Nicolas Goaziou
0204b0e16f
org-element: Tiny refactoring
...
* lisp/org-element.el (org-element--object-lex): Tiny refactoring.
2016-10-25 18:28:37 +02:00
Nicolas Goaziou
b76e6543b2
Tiny refactoring
...
* lisp/org-element.el (org-element-interpret-data):
* lisp/ox.el (org-export-data): Remove useless binding.
2016-10-25 18:19:05 +02:00
Nicolas Goaziou
5fd886c955
org-src: Silence byte-compiler
2016-10-25 13:23:31 +02:00
Nicolas Goaziou
1a88cf920e
org-element: Improve support for pseudo objects and elements
...
* lisp/org-element.el (org-element-class): New function.
(org-element-map):
(org-element-interpret-data):
* lisp/org-footnote.el (org-footnote--allow-reference-p):
* lisp/org-src.el (org-src--on-datum-p):
* lisp/ox-odt.el (org-odt-footnote-reference):
(org-odt-table-cell):
* lisp/ox.el (org-export-data):
(org-export-expand): Use new function.
* testing/lisp/test-org-element.el (test-org-element/class): New test.
Using generic `org-element-class' allows to handle unknown, i.e.,
pseudo, object or element types. It also reduces code duplication in
`org-element-interpret-data' and `org-export-data', preventing, e.g.,
bugs as the one fixed in c58e1b5
.
2016-10-25 13:13:26 +02:00
Nicolas Goaziou
dd670073de
org-element: Fix interpreting links with % in description
...
* lisp/org-element.el (org-element-link-interpreter): % in description
are confused with format string placeholders. Escape them so as to
fix the error.
* testing/lisp/test-org-element.el (test-org-element/link-interpreter):
Add test.
Reported-by: Daniel Clemente <n142857@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109878 >
2016-10-24 23:56:34 +02:00
Nicolas Goaziou
e5ca11cab8
ox-latex: Fix matrices export
...
* lisp/ox-latex.el (org-latex--wrap-latex-matrices): Do not add spurious
blank lines within a matrices block.
Reported-by: thomas.stenhaug@gmail.com
<http://permalink.gmane.org/gmane.emacs.orgmode/109854 >
2016-10-24 23:33:28 +02:00
Nicolas Goaziou
c58e1b565b
Fix :post-blank handling for pseudo elements and objects
...
* lisp/org-element.el (org-element-interpret-data):
* lisp/ox.el (org-export-data): Correctly guess if a pseudo element or
object should be followed by spaces or blank lines.
* testing/lisp/test-ox.el (test-org-export/pseudo-objects):
(test-org-export/pseudo-elements): New tests.
2016-10-24 23:32:15 +02:00
Michael Brand
359afa6806
Fix table align when recalculating buffer tables
...
* lisp/org-table.el (org-table-recalculate-buffer-tables): Align all
tables in a buffer.
(org-table-iterate-buffer-tables): Align a table only once, align all
tables in a buffer.
2016-10-21 17:35:13 +02:00
Michael Brand
e66298dfd9
Add test for table alignment
...
* testing/lisp/test-org-table.el (test-org-table/align-buffer-tables):
New test to document current behavior.
2016-10-21 17:33:13 +02:00
Michael Brand
ed86b1aa3c
Fix table header text in test
...
* testing/lisp/test-org-table.el
(test-org-table/simple-formula/with-grouping/no-title-row): Fix table
header text.
2016-10-21 17:31:45 +02:00
Nicolas Goaziou
7a927bcd27
ox: Fix typo
...
* lisp/ox.el (org-export-dictionary): Fix typo.
2016-10-19 23:27:56 +02:00
Nicolas Goaziou
1e43168ff8
org.texi: Fix typo
...
* doc/org.texi (Template expansion): Fix typo.
2016-10-19 20:46:15 +02:00
Nicolas Goaziou
fe4c6a8529
Fix S-TAB when called on a block
...
* lisp/org.el (org-cycle): Call `org-hide-block-toggle-maybe' after
universal argument check. Also remove the function from
`org-tab-first-hook' to that effect.
2016-10-19 20:08:09 +02:00
Nicolas Goaziou
fce3e7395b
Merge branch 'master' of orgmode.org:org-mode
2016-10-19 19:24:02 +02:00
Nicolas Goaziou
e4c38ab1d3
Improve documentation for capture templates
...
* doc/org.texi (Template expansion):
* lisp/org-capture.el (org-capture-templates): Clarify documentation.
Suggested-by: Stig Brautaset <stig@brautaset.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/109844 >
2016-10-19 19:23:31 +02:00
Nicolas Goaziou
449f83b44c
ox: Add translations for Islandic
...
* lisp/ox.el (org-export-dictionary): Add translations for Islandic.
Suggested-by: Jón Gunnar Þorsteinsson <jongth@hi.is>
2016-10-19 18:02:59 +02:00
Bastien
622f233796
org-entities.el (org-entities): Add Amacr and amacr entities
...
Thanks to Karel Sprenger for the suggestion.
2016-10-19 17:05:08 +02:00
Nicolas Goaziou
9aeee623fd
Silence byte-compiler
2016-10-19 16:09:59 +02:00
Nicolas Goaziou
6ca5cc8efb
Better integration between Babel and `C-c C-c'
...
* lisp/org.el (org-ctrl-c-ctrl-c): Handle Babel context without relying
to user hooks.
* lisp/ob-core.el (org-babel-execute-maybe):
(org-babel-hash-at-point): Do not functions in `C-c C-c' hook.
2016-10-19 16:08:09 +02:00
Nicolas Goaziou
4ccd1dfff1
Small refactoring
...
* lisp/org.el (org-ctrl-c-ctrl-c): Small refactoring.
2016-10-19 15:48:42 +02:00
Nicolas Goaziou
a7169be6b2
Remove unnecessary calls to `org-update-radio-target-regexp'
...
* lisp/org-ctags.el (org-ctags-append-topic): Remove call to
`org-update-radio-target-regexp' since topic uses regular targets.
* lisp/org.el (org-ctrl-c-ctrl-c): Do not update radio targets when
point is on a target.
2016-10-19 15:31:10 +02:00
Nicolas Goaziou
13b3e426f4
ORG-NEWS: Update
2016-10-19 12:33:18 +02:00
Nicolas Goaziou
77c9c2468d
ox: Add Icelandic quotes
...
* lisp/ox.el (org-export-smart-quotes-alist): Add Icelandic quotes.
Suggested-by: Jón Gunnar Þorsteinsson <jongth@hi.is>
2016-10-19 12:23:34 +02:00
Nicolas Goaziou
3961822ee3
server.mk: Properly use local variables in "pkg" files
...
Also remove reference to deleted file.
Reported-by: Thierry Volpiatto <thierry.volpiatto@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109833 >
2016-10-19 00:29:11 +02:00
Nicolas Goaziou
3c6c53d426
org-agenda: Fix regression with `org-agenda-skip-scheduled-if-deadline-is-shown'
...
* lisp/org-agenda.el (org-agenda-get-scheduled): Fix code typo. Tiny
refactoring.
The typo was introduced in 72c3f5e8e5
.
Reported-by: Luke <mideniko1234-org@yahoo.co.uk>
<http://permalink.gmane.org/gmane.emacs.orgmode/109832 >
2016-10-18 23:56:16 +02:00
Nicolas Goaziou
adaf808605
ox-latex: Fix source block label with listings package
...
* lisp/ox-latex.el (org-latex-src-block): Properly translate label into
Org internal reference when using "listings" package.
2016-10-18 23:10:56 +02:00
Nicolas Goaziou
a2b1be7461
Add tests for `C-a' and `C-e'
...
* testing/lisp/test-org.el (test-org/beginning-of-line):
(test-org/end-of-line): Add tests.
Tests are for bug fixed in e4d4c6e1bc
.
2016-10-18 09:30:50 +02:00
Nicolas Goaziou
e4d4c6e1bc
Fix code typo
...
* lisp/org.el (org-beginning-of-line):
(org-end-of-line): Fix typo in pattern matching.
Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/109829 >
2016-10-17 22:55:57 +02:00
Nicolas Goaziou
8dbee91858
org-agenda: Fix effort sorting
...
* lisp/org-agenda.el (org-cmp-effort): Find effort in the appropriate
location.
The bug was introduced in d978a9e585
.
Reported-by: Luke <mideniko1234-org@yahoo.co.uk>
<http://permalink.gmane.org/gmane.emacs.orgmode/109811 >
2016-10-16 21:02:35 +02:00
Nicolas Goaziou
0cf58cc208
Improve docstrings
...
* lisp/ob-core.el (org-confirm-babel-evaluate):
(org-babel-no-eval-on-ctrl-c-ctrl-c):
(org-babel-hash-at-point):
* lisp/org-agenda.el (org-agenda-custom-commands):
(org-stuck-projects):
(org-agenda):
(org-timeline):
(org-todo-list):
(org-agenda-filter-by-tag):
(org-agenda-log-mode):
(org-agenda-refile):
(org-agenda-show-and-scroll-up):
(org-agenda-tree-to-indirect-buffer):
(org-agenda-show-the-flagging-note):
(org-agenda-to-appt):
* lisp/org-capture.el (org-capture-mode):
(org-capture-use-agenda-date):
(org-capture):
* lisp/org-clock.el (org-clock-in):
(org-clock-display):
* lisp/org-colview.el (org-columns--display-here):
(org-columns):
* lisp/org-footnote.el (org-footnote-section):
* lisp/org-gnus.el (org-gnus-prefer-web-links):
* lisp/org-lint.el (org-lint):
* lisp/org-list.el (org-plain-list-ordered-item-terminator):
(org-list-allow-alphabetical):
(org-list-automatic-rules):
(org-list-use-circular-motion):
* lisp/org-protocol.el (org-protocol-store-link):
(org-protocol-create-for-org):
* lisp/org-src.el (org-src-preserve-indentation):
(org-edit-src-content-indentation):
(org-src-mode-hook):
(org-src-mode):
(org-edit-table.el):
(org-edit-export-block):
(org-edit-src-code):
(org-edit-fixed-width-region):
* lisp/org-table.el (org-table-automatic-realign):
(org-table-copy-increment):
(org-table-formula-evaluate-inline):
(org-table-allow-automatic-line-recalculation):
(org-table-edit-field):
(orgtbl-ascii-plot):
* lisp/org-timer.el (org-timer):
* lisp/org.el (org-deadline-string):
(org-comment-string):
(org-ellipsis):
(org-show-context-detail):
(org-indirect-buffer-display):
(org-cycle-global-at-bob):
(org-insert-heading-respect-content):
(org-enable-table-editor):
(org-context-in-file-links):
(org-display-internal-link-with-indirect-buffer):
(org-file-apps):
(org-refile-targets):
(org-todo-keywords):
(org-use-fast-todo-selection):
(org-treat-insert-todo-heading-as-state-change):
(org-time-clocksum-use-fractional):
(org-time-clocksum-use-effort-durations):
(org-agenda-files):
(org-cycle-hide-archived-subtrees):
(org-cycle):
(org-global-cycle):
(org-tree-to-indirect-buffer):
(org-insert-heading):
(org-store-link):
(org-insert-link):
(org-mark-ring-push):
(org-refile):
(org-todo):
(org-show-todo-tree):
(org-reveal):
(org-check-deadlines):
(org-switchb):
(org-cdlatex-mode):
(org-toggle-latex-fragment):
(org-ctrl-c-ctrl-c):
(org-toggle-heading):
(org-indent-line):
(org-yank):
(org-speedbar-set-agenda-restriction):
* lisp/ox-html.el (org-html-htmlize-output-type):
* lisp/ox-icalendar.el (org-icalendar-combined-agenda-file):
* lisp/ox-publish.el (org-publish-project-alist):
* lisp/ox.el (org-export-in-background):
(org-export-stack-mode):
(org-export--stack-source-at-point):
(org-export-dispatch): Improve quotes and formatting in docstrings.
2016-10-15 17:43:54 +02:00
Nicolas Goaziou
21c6148bbe
Handle comments in source blocks with `comment-line'
...
* lisp/org.el (org-comment-or-uncomment-region): Caller is not
necessarily `comment-dwim'. Also handle `comment-line'.
Reported-by: Xebar Saram <zeltakc@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109809 >
2016-10-15 12:31:25 +02:00
Nicolas Goaziou
8d2f0a4411
Fix `C-a' with visual lines and arguments
...
* lisp/org.el (org-beginning-of-line): Move to beginning of visual line
when appropriate. Fix docstring.
* testing/lisp/test-org.el (test-org/beginning-of-line): Add tests.
2016-10-15 12:00:43 +02:00
Nicolas Goaziou
5c85409464
Remove unnecessary workaround
...
* lisp/org.el (org-end-of-line): Remove unnecessary workaround for bug
#14346 .
2016-10-15 11:36:10 +02:00
Nicolas Goaziou
45048eb783
Fix `C-e' with visible lines and arguments
...
* lisp/org.el (org-end-of-line): Correctly go to the end of visible
line, when appropriate.
* testing/lisp/test-org.el (test-org/end-of-line): Add tests.
2016-10-15 11:36:09 +02:00
Nicolas Goaziou
2971c48cf1
Remove unnecessary workaround
...
* lisp/org.el (org-beginning-of-line): Remove unnecessary workaround for
bug #14346 .
* testing/lisp/test-org.el (test-org/beginning-of-line): Update tests.
2016-10-15 11:26:10 +02:00
Nicolas Goaziou
b9b14376f8
Tiny refactoring
...
* lisp/org.el (org-beginning-of-line): Tiny refactoring. Remove useless
comment. Fix docstring.
2016-10-15 00:51:33 +02:00
Nicolas Goaziou
756bb87d81
Fix regression in `org-beginning-of-line'
...
* lisp/org.el (org-beginning-of-line): Leave point before any invisible
character at column 0. Small refactoring.
* testing/lisp/test-org.el (test-org/beginning-of-line): Add tests.
The regression was introduced in
3baf246f4f
.
2016-10-13 09:41:54 +02:00
Nicolas Goaziou
d3e338dc0a
org.texi: Add missing blank line
...
* doc/org.texi (Using the property API): Add missing blank line.
2016-10-11 21:00:58 +02:00