Nicolas Goaziou
b423a6187a
Merge branch 'master' into next
2018-12-06 00:25:45 +01:00
Nicolas Goaziou
503ede74bc
org-clock: Fix resolving clocks
...
* lisp/org-clock.el (org-clock-resolve-clock): Fix resolving clocks
when the entry is empty barring the clock itself and possibly the
clock drawer, and `org-clock-out-remove-zero-time-clocks' is
non-nil.
2018-12-06 00:24:14 +01:00
Nicolas Goaziou
6f8347a834
org-clock: Use `org-link-display-format'
...
* lisp/org-clock.el (org-clock--mode-line-heading): Use
`org-link-display-format'.
2018-12-02 14:49:02 +01:00
Nicolas Goaziou
df7b8cdf70
org-colview: Remove `org-columns-compact-links'
...
* lisp/org-colview.el (org-columns--displayed-value): Use
`org-link-display-format' instead.
2018-12-02 14:03:53 +01:00
Nicolas Goaziou
a253f4f7ff
Merge branch 'master' into next
2018-11-30 21:20:56 +01:00
Nicolas Goaziou
04641c4bbe
org-pcomplete: Silence byte-compiler
2018-11-30 21:20:39 +01:00
Nicolas Goaziou
4ef9228617
Silence byte-compiler
2018-11-30 21:18:29 +01:00
Nicolas Goaziou
b3c40c32b6
ox-latex: Extend LaTeX attributes and captions to "table.el" tables
...
* lisp/ox-latex.el (org-latex--decorate-table): New function.
(org-latex--org-table): Use new function.
(org-latex--table.el-table): Use new function.
2018-11-30 18:43:30 +01:00
Nicolas Goaziou
366d38633a
Merge branch 'master' into next
2018-11-28 15:13:40 +01:00
Nicolas Goaziou
d3f9cd0eef
ox-latex: Use "french" instead of "frenchb" Babel language
...
* lisp/ox-latex.el (org-latex-babel-language-alist): Use "french"
instead of obsolete "frenchb".
2018-11-28 15:12:56 +01:00
Nicolas Goaziou
499a590034
Merge branch 'master' into next
2018-11-28 00:28:53 +01:00
Nicolas Goaziou
e3fdef74b9
Improve docstrings
...
* lisp/org.el (org-latex-default-packages-alist):
(org-latex-packages-alist): Improve docstring.
* lisp/ox-latex.el (org-latex--remove-packages): Small refactoring.
2018-11-28 00:26:24 +01:00
Nicolas Goaziou
01a4f33568
Merge branch 'master' into next
2018-11-27 23:43:36 +01:00
Nicolas Goaziou
3216cbe776
ox: Preserve properties when duplicating buffer before exporting
...
* lisp/ox.el (org-export--generate-copy-script): Preserve properties
when duplicating buffer before exporting.
Reported-by: John Kitchin <jkitchin@andrew.cmu.edu>
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00329.html >
2018-11-27 23:42:16 +01:00
Nicolas Goaziou
776679ee0a
Merge branch 'master' into next
2018-11-27 23:23:09 +01:00
Nicolas Goaziou
b16feed40c
Normalize blank lines with <C-RET>
...
* lisp/org.el (org-insert-heading): Make C-RET more predictable. In
particular, it should not eat all the blank lines at the end of the
tree.
Reported-by: David Masterson <dsmasterson@outlook.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00275.html >
2018-11-27 23:21:06 +01:00
Nicolas Goaziou
61396763ac
Merge branch 'master' into next
2018-11-27 21:47:38 +01:00
Nicolas Goaziou
d6e20dbcff
ox-latex: Gracefully handle export of source blocks without lang
...
* lisp/ox-latex.el (org-latex-src-block): Handle export of source
blocks without language.
Reported-by: John Ciolfi <ciolfi@mathworks.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00321.html >
2018-11-27 21:46:18 +01:00
Matt Price
819e98afd0
org-src: Do not restore window config when exiting an edit buffer
...
org-src.el (org-src--saved-temp-window-config): Remove variable.
* lisp/org-src.el (org-src--edit-element): Apply removal.
2018-11-27 21:32:07 +01:00
Nicolas Goaziou
655c08dcc8
org-clock: Fix failing tests
...
* lisp/org-clock.el (org-clocktable-steps): Fix type of START and END
bindings.
2018-11-27 00:18:28 +01:00
Nicolas Goaziou
19a75de480
Merge branch 'master' into next
2018-11-26 23:56:55 +01:00
Nicolas Goaziou
cd60a35fe1
Fix opening custom ID links with percent escaped syntax
...
* lisp/org.el (org-open-at-point): Un-escape percent escaped path.
* testing/lisp/test-org.el (test-org/custom-id): Add test.
Reported-by: stardiviner <numbchild@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00303.html >
2018-11-26 23:56:17 +01:00
Nicolas Goaziou
229ed4b475
Merge branch 'master' into next
2018-11-26 19:53:15 +01:00
Nicolas Goaziou
32a7305dda
Fix <RET> on table.el tables
...
* lisp/org.el (org-return): Prevent wrong type error when on
a table.el table.
2018-11-26 19:51:51 +01:00
Nicolas Goaziou
d228909d15
org-element: Be more strict when looking for table.el tables
...
* lisp/org-element.el (org-element--current-element): Increase number
of checks to avoid more false positive.
In particular "+-+" is not recognized anymore as a table.el table.
2018-11-26 19:50:08 +01:00
Nicolas Goaziou
86a6087f92
Merge branch 'master' into next
2018-11-25 02:03:14 +01:00
Nicolas Goaziou
8b7ba29b60
org-pcomplete: Fix tag completion
...
* lisp/org-pcomplete.el (org-thing-at-point): Only complete where tags
could be located.
(pcomplete/org-mode/tag): Add paring argument to avoid looking at
other arguments on the same line.
* testing/lisp/test-org-pcomplete.el (test-org-pcomplete/tag): New test.
Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00154.html >
2018-11-25 02:01:41 +01:00
Nicolas Goaziou
a5df655f76
Merge branch 'master' into next
2018-11-17 21:47:12 +01:00
Nicolas Goaziou
fc9cf62bf3
org-clock: Fix special strings in :tstart and :tend
...
* lisp/org-clock.el (org-clocktable-steps): Handle relative time
strings like "<-1w>".
2018-11-17 21:45:16 +01:00
Nicolas Goaziou
b5640ea801
Merge branch 'master' into next
2018-11-17 16:34:45 +01:00
Nicolas Goaziou
7bf3c10819
Fix speed regression introduced in change about repeated timestamps
...
* lisp/org.el (org-auto-repeat-maybe): Fix speed regression introduced
in "Also obey to repeaters in inactive time stamps".
Reported-by: Marco Wahl <marcowahlsoft@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00078.html >
2018-11-17 16:33:04 +01:00
Marco Wahl
e3a0e6fb3c
Merge branch 'master' into next
2018-11-12 12:50:37 +01:00
Marco Wahl
feb44212b5
org-agenda: slightly changed hints for user about searching again
2018-11-12 12:47:40 +01:00
Nicolas Goaziou
b8b7d00864
Merge branch 'master' into next
2018-11-11 22:24:21 +01:00
Nicolas Goaziou
afcb1d3899
Fix typo
...
* lisp/org.el (org-get-tags): Fix typo in docstring.
2018-11-11 22:24:00 +01:00
Nicolas Goaziou
683199e6e1
Merge branch 'master' into next
2018-11-10 22:00:34 +01:00
Nicolas Goaziou
5dfbe46b1e
ox-odt: Fix typo
...
* lisp/ox-odt.el (org-odt-template): Fix typo.
2018-11-10 21:59:52 +01:00
Nicolas Goaziou
a97903944b
Merge branch 'master' into next
2018-11-10 21:57:29 +01:00
Nicolas Goaziou
9056d2b706
ox-odt: Fix last commit
...
* lisp/ox-odt.el (org-odt-template): Add missing `org-strip-quote'
call.
2018-11-10 21:56:10 +01:00
Nicolas Goaziou
cd12a9eefe
Merge branch 'master' into next
2018-11-10 20:00:31 +01:00
Nicolas Goaziou
bea916d9f6
ox-odt: Improve styles file handling
...
* lisp/ox-odt.el (org-odt-template): Allow double quotes around file
name. Better error handling. Small refactoring.
2018-11-10 20:00:02 +01:00
Nicolas Goaziou
af81211fdc
Also obey to repeaters in inactive time stamps
...
* lisp/org.el (org-repeat-re): Accept inactive time stamps.
(org-auto-repeat-maybe): Small refactoring. Find additional repeaters
also in inactive time stamps.
* testing/lisp/test-org.el (test-org/auto-repeat-maybe): Add test.
Reported-by: Leo Gaspard <orgmode@leo.gaspard.io>
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00078.html >
2018-11-10 19:59:48 +01:00
Nicolas Goaziou
88ef9f26de
ox-texinfo: Allow quotes around value in TEXINFO_FILENAME keyword
...
* lisp/ox-texinfo.el (org-texinfo-template): Allow quotes around value
in TEXINFO_FILENAME keyword.
This is consistent with usual Org behavior: file names can optionally
be enclosed within quotes.
2018-11-10 09:00:45 +01:00
Nicolas Goaziou
f5c2659bb8
Use `org-strip-quote' when possible
...
* lisp/org-macs.el (org-unbracket-string):
(org-strip-quotes): Allow nil values.
* lisp/org-lint.el (org-lint-wrong-include-link-parameter):
* lisp/org-macro.el (org-macro--collect-macros):
* lisp/org.el (org--setup-collect-keywords):
(org-edit-special):
* lisp/ox.el (org-export--get-inbuffer-options):
(org-export--list-bound-variables):
(org-export-expand-include-keyword): Use `org-strip-quote' instead of
`org-unbracket-string' whenever possible.
2018-11-10 08:58:31 +01:00
Nicolas Goaziou
fefe3d1a37
org-compat: Fix obsolete alias
...
* lisp/org-compat.el (org-remove-double-quotes): Suggest to use
`org-strip-quotes' instead of `org-unbracket-string'.
2018-11-10 08:55:37 +01:00
Kyle Meyer
a3741d99b8
Merge branch 'master' into next
2018-11-09 11:02:00 -05:00
Kyle Meyer
9ffd5aabc9
Fix mapcar call from 9df82be07
...
* lisp/org.el (org-tags-expand): Add missing mapcar argument.
2018-11-09 11:01:53 -05:00
Nicolas Goaziou
4a2ef00804
Merge branch 'master' into next
2018-11-08 18:23:03 +01:00
Nicolas Goaziou
9df82be074
Fix tag groups expansion as a regexp
...
* lisp/org.el (org--tags-expand-group): New function.
(org-tags-expand): Refactor code. Fix expansion of identical tag
groups in the same match string. Fix docstring. Remove unused
argument.
* testing/lisp/test-org.el (test-org/tags-expand): New test.
Reported-by: Omari Norman <omari@smileystation.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00360.html >
2018-11-08 18:20:57 +01:00
Nicolas Goaziou
1e063b401a
Merge branch 'master' into next
2018-11-04 23:40:27 +01:00
Nicolas Goaziou
bfb946c7da
ox-odt: Read list values in ODT_STYLES_FILE
...
* lisp/ox-odt.el (org-odt-template): Read value for ODT_STYLES_FILE
when it is enclosed in round brackets.
Reported-by: Christian Moe <mail@christianmoe.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00418.html >
2018-11-04 23:00:01 +01:00
Nicolas Goaziou
470bf6e27e
Merge branch 'master' into next
2018-11-04 16:44:30 +01:00
Nicolas Goaziou
503a1d4d94
Fix coderefs links in non-source buffers
...
* lisp/org-src.el (org-src-source-file-name): New variable.
(org-src--edit-element): Set new variable.
* lisp/org.el (org-store-link): Store the source file along with the
coderef so as to insert link in other documents than the one
where the code block is located.
Reported-by: stardiviner <numbchild@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00293.html >
2018-11-04 16:43:36 +01:00
Nicolas Goaziou
77b417f01a
Merge branch 'master' into next
2018-11-04 15:28:07 +01:00
Nicolas Goaziou
44d5286dbf
Fix storing links in non-source edit buffers
...
* lisp/org-src.el (org-src--source-buffer): Rename to `org-src-source-buffer'.
(org-src-source-type): New function.
(org-edit-src-save): Apply renaming.
* lisp/org.el (org-store-link): When in an edit buffer not editing
a source block, there is no point in inserting a coderef.
2018-11-04 15:26:04 +01:00
Nicolas Goaziou
91153ff14f
Tiny refactoring
...
* lisp/org.el (org-link-search): Tiny refactoring.
2018-11-04 09:06:28 +01:00
Nicolas Goaziou
6e51b42e16
org-clock: Fix wrong type error
...
* lisp/org-clock.el (org-clocktable-steps): Fix wrong type error.
2018-11-03 21:46:19 +01:00
Nicolas Goaziou
3387666750
Merge branch 'master' into next
2018-11-03 21:00:14 +01:00
Nicolas Goaziou
7d30f5f44a
Silence byte-compiler
2018-11-03 20:59:42 +01:00
Nicolas Goaziou
19317db78f
Merge branch 'master' into next
2018-11-03 17:06:37 +01:00
Nicolas Goaziou
eb8041ef82
Fix storing coderef link on when a code ref already exists
...
* lisp/org.el (org-store-link): Fix storing coderef link on when
a code ref already exists.
2018-11-03 17:04:01 +01:00
Nicolas Goaziou
ae03104402
org-attach: Attach buffers to tasks
...
* lisp/org-attach.el (org-attach-buffer): New function.
(org-attach): Call new function.
* doc/org-manual.org (Attachments): Document new function.
2018-11-02 02:04:38 +01:00
Nicolas Goaziou
4241815770
Merge branch 'master' into next
2018-11-01 23:32:32 +01:00
Nicolas Goaziou
6382a6bbb3
org-attach: Fix command string
...
* lisp/org-attach.el (org-attach): Add missing command letters.
2018-11-01 23:31:57 +01:00
Nicolas Goaziou
363df82b19
Change default value for `org-email-link-description-format'
...
* lisp/org.el (org-email-link-description-format): Change default
value. No longer truncate subject by default. Add `:safe' keyword.
* doc/org-manual.org (Handling Links): Document change.
Reported-by: "Garreau, Alexandre" <galex-713@galex-713.eu>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00344.html >
2018-11-01 23:00:45 +01:00
Nicolas Goaziou
ce37725926
Merge branch 'master' into next
2018-11-01 22:44:36 +01:00
Nicolas Goaziou
85a675b939
org-archive: Fix `org-all-archive-files'
...
* lisp/org-archive.el (org-all-archive-files): Fix comparison
function.
Reported-by: Nils Gustafsson <nils.gustafsson@bredband2.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00395.html >
2018-11-01 22:43:43 +01:00
Nicolas Goaziou
e02d8cd811
Merge branch 'master' into next
2018-11-01 22:27:01 +01:00
Nicolas Goaziou
42eebb3755
Use `cl-signum' instead of `signum'
...
* lisp/org.el (org-modify-ts-extra): Use `cl-signum' instead of
`signum'.
2018-11-01 22:26:21 +01:00
Kevin Brubeck Unhammer
17deb1c7eb
org-clock: Handle DST in clocktable
...
* lisp/org-clock.el (org-clocktable-steps): new fn
org-clocktable-increment-day to add/subtract days that are not
exactly 24 hours
* testing/lisp/test-org-clock.el (test-org-clock/clocktable/step): Add
test for DST.
2018-11-01 19:00:28 +01:00
Nicolas Goaziou
dd1d15dcd8
Merge branch 'master' into next
2018-11-01 18:30:25 +01:00
Nicolas Goaziou
67cea44c9f
Add docstring for `org-at-heading-p'
...
* lisp/org.el (org-at-heading-p): Add docstring.
Reported-by: Will Pierce <pierwill@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00006.html >
2018-11-01 18:29:35 +01:00
Nicolas Goaziou
dabcddfb85
Merge branch 'master' into next
2018-10-26 17:36:19 +02:00
Nicolas Goaziou
4b905774ac
org-macs: Fix last commit
...
* lisp/org-macs.el (org--string-from-props): Do not raise an error on
unsupported display properties. Change signature to avoid creating
new strings unnecessarily. Update docstring accordingly.
(org-string-width): Apply signature change.
* testing/lisp/test-org-macs.el (test-org/string-width): Add test.
Reported-by: Colin Baxter <m43cap@yandex.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00346.html >
2018-10-26 14:37:57 +02:00
Nicolas Goaziou
9b9fa671b5
Merge branch 'master' into next
2018-10-25 16:55:17 +02:00
Nicolas Goaziou
4832a432f0
ox-ascii: Add missing ASCII and UTF-8 conversion functions
...
* lisp/ox-ascii.el (org-ascii-convert-region-to-ascii):
(org-ascii-convert-region-to-utf8): New functions.
* doc/org-manual.org (Export in Foreign Buffers): Document new
functions.
Reported-by: Alexander Adolf <alexander.adolf@condition-alpha.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00294.html >
2018-10-25 16:53:30 +02:00
Nicolas Goaziou
7776482e36
Merge branch 'master' into next
2018-10-25 16:47:25 +02:00
Nicolas Goaziou
b886ebbc89
org-macs: `org-string-width' handles images
...
* lisp/org-macs.el (org--string-from-props): Handle image display
properties.
(org-string-width): Improve docstring.
2018-10-25 15:34:05 +02:00
stardiviner
2c5df17ed1
ob-clojure: Support new CIDER using sesman to manage sessions
...
* ob-clojure.el (org-babel-clojure-initiate-session): Improve ob-clojure
initialize session way to support CIDER new API.
* etc/ORG-NEWS: Add declare for new :session support feature.
2018-10-25 10:33:16 +02:00
stardiviner
4456dc8809
ob-clojure: Support `org-babel-initiate-session'
...
* ob-clojure.el (org-babel-clojure-initiate-session): Initialize session
for source block.
(org-babel-prep-session:clojure): Prepare Clojure session.
(org-babel-clojure-var-to-clojure): Convert header argument :var into
clojure variables definitions.
(org-babel-variable-assignments:clojure): Support assigning variables
when initializing a session.
2018-10-25 10:28:41 +02:00
Nicolas Goaziou
8da5168dd1
Merge branch 'master' into next
2018-10-23 23:28:38 +02:00
Nicolas Goaziou
17e28d6467
org-capture: Various fixes to item capture
...
* lisp/org-capture.el (org-capture-place-item): Rewrite function.
* testing/lisp/test-org-capture.el (test-org-capture/abort): Add test.
(test-org-capture/item): New test.
2018-10-23 23:27:28 +02:00
Nicolas Goaziou
ea47ed0d76
Merge branch 'master' into next
2018-10-23 01:53:54 +02:00
Nicolas Goaziou
9dbd2993f6
org-capture: Tiny refactoring
...
* lisp/org-capture.el (org-capture-place-entry): Tiny refactoring.
2018-10-23 01:53:18 +02:00
Nicolas Goaziou
b46d4e7b1c
org-capture: Remove unnecessary checks
...
* lisp/org-capture.el (org-capture-place-plain-text): Remove
unnecessary checks.
2018-10-23 01:46:57 +02:00
Nicolas Goaziou
c76486d4e4
org-capture: Fix off-by-one error
...
* lisp/org-capture.el (org-capture-place-table-line): Fix narrowing.
2018-10-23 01:32:55 +02:00
Nicolas Goaziou
7a4a10dea0
org-capture: Fix plain capture at the end of the buffer.
...
* lisp/org-capture.el (org-capture-place-plain-text): Fix plain
capture at the end of the buffer.
* testing/lisp/test-org-capture.el (test-org-capture/plain): New test.
2018-10-23 01:26:17 +02:00
Nicolas Goaziou
ad0fce50eb
org-capture: Small fix to table line capture
...
* lisp/org-capture.el (org-capture-place-table-line): Handle abort
table line insertion more gracefully.
* testing/lisp/test-org-capture.el (test-org-capture/abort): Add tests
2018-10-23 00:43:59 +02:00
Nicolas Goaziou
e7b5cc4d29
Merge branch 'master' into next
2018-10-22 23:42:07 +02:00
Nicolas Goaziou
aaa3372b8b
org-capture: Fix capture aborting
...
* lisp/org-capture.el (org-capture-place-entry): Fix delimiters for
region to delete when aborting capture.
* testing/lisp/test-org-capture.el (test-org-capture/abort): Add test.
2018-10-22 23:40:49 +02:00
Nicolas Goaziou
796a7c4c0e
Merge branch 'master' into next
2018-10-22 22:26:41 +02:00
Nicolas Goaziou
0fa8bb4c51
org-capture: Inserting an entry doesn't break structure
...
* lisp/org-capture.el (org-capture-place-entry): Carefully narrow
buffer to not alter following headline. Also include leading empty
lines in region to remove when cancelling capture.
* testing/lisp/test-org-capture.el (test-org-caputre/entry): New test.
(test-org-capture/abort): Rename test.
Reported-by: Martin Yrjölä <martin.yrjola@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00256.html >
2018-10-22 22:22:21 +02:00
Nicolas Goaziou
42abd18c6d
Merge branch 'master' into next
2018-10-20 10:53:01 +02:00
Nicolas Goaziou
4a2e7c8db9
ox-beamer: Do not add automatic label when "allowframebreaks" is set
...
* lisp/ox-beamer.el (org-beamer--format-frame): Do not add automatic
label when "allowframebreaks" is set in default options. Do not
check only headline properties.
2018-10-20 10:51:06 +02:00
Mark A. Hershberger
eb806aa503
ox-odt: Add support for text:start-value
...
* lisp/ox-odt.el (org-odt-item): Support starting lists at a set
number via "text:start-value". Without this, ODF files just restart
numbering when they should continue with the specified number.
2018-10-19 21:49:54 +02:00
Nicolas Goaziou
1f913ecc36
Merge branch 'master' into next
2018-10-18 18:15:59 +02:00
Nicolas Goaziou
9e05a6ac8a
org-pcomplete: Small reorganization
2018-10-18 18:15:30 +02:00
Nicolas Goaziou
a6a7edc1cb
org-pcomplete: Silence byte-compiler
2018-10-18 18:01:33 +02:00
Nicolas Goaziou
c25ac5ecd4
org-pcomplete: Fix search string completion
...
* lisp/org-pcomplete.el (pcomplete/org-mode/tag): Use
`org-get-heading'.
2018-10-18 17:54:35 +02:00
Nicolas Goaziou
961367bf6a
org-pcomplete: Add colons when completing abbrev links
...
* lisp/org-pcomplete.el (pcomplete/org-mode/todo): Add colons when
completing abbrev links.
2018-10-18 17:54:35 +02:00