Nicolas Goaziou
d7940ae2a7
ob-core: Fix removal of elements after RESULTS
...
* lisp/ob-core.el (org-babel-result-end): Ignore elements that do not
correspond to a valid result type (e.g., a headline).
Fixes commit 1d8126385c
.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-11/msg00384.html >
2017-11-27 23:23:04 +01:00
Nicolas Goaziou
5873d99121
Fix headline fontification
...
* lisp/org.el (org-do-emphasis-faces): Do not emphasize stars in
headlines.
Reported-by: swflint@flintfam.org (Samuel W. Flint)
<http://lists.gnu.org/r/emacs-orgmode/2017-11/msg00363.html >
2017-11-27 22:54:41 +01:00
Paul Eggert
adfbfd42b2
Backport commit a89f0b6f3 from Emacs
...
maint: shorten https://lists.gnu.org/archive/html/ ... links
a89f0b6f33f9eb8910a1fceda9028d76ef50b05d
Paul Eggert
Sat Nov 25 22:48:12 2017 -0800
2017-11-26 20:35:46 -05:00
Nicolas Goaziou
ac4b756588
Silence byte-compiler
2017-11-26 11:01:55 +01:00
Nicolas Goaziou
18f6610b32
ox-html: Fix last commit
...
* lisp/ox-html.el (org-html-link): Fix last commit.
2017-11-26 10:57:02 +01:00
Matt Lundin
63f6e851bc
Do not save target buffer after archiving subtree
...
* lisp/org-archive.el: (org-archive-subtree) Do not save buffer after
each archive. Saving the archive buffer after archiving each
subtree results in substantial slowdown and many writes to disk when
archiving an active region. This brings the behavior of
org-archive-subtree into line with org-refile, which does not save
the target buffer after refiling.
2017-11-26 10:52:03 +01:00
Nicolas Goaziou
6aac798f25
Fix publishing links to absolute file names belonging to project
...
* lisp/ox-publish.el (org-publish-file-relative-name): New function.
* lisp/ox-html.el (org-html-link): Use new function.
* testing/lisp/test-ox-publish.el (test-org-publish/file-relative-name):
New test.
2017-11-26 10:46:53 +01:00
Nicolas Goaziou
1d8126385c
ob-core: Fix results removal without blank line between source and results
...
* lisp/ob-core.el (org-babel-remove-result): Delete blank lines before
results.
(org-babel-result-end): Use `org-element-at-point'.
* testing/lisp/test-ob.el (test-ob-verify-result-and-removed-result):
Remove duplicate.
* testing/lisp/test-ob.el (test-ob/org-babel-remove-result--no-blank-line):
New test.
* testing/lisp/test-ob.el (test-ob/results-in-narrowed-buffer): Small
refactoring.
Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00338.html >
2017-11-25 21:07:52 +01:00
Nicolas Goaziou
ed06b159c3
Small fix to emphasis fontification
...
* lisp/org.el (org-do-emphasis-faces): Do not span over paragraph
separators.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00202.html >
2017-11-25 15:42:10 +01:00
Nicolas Goaziou
1b1966a144
Fix cross-references from %-encoded links in publishing
...
* lisp/ox-publish.el (org-publish-resolve-external-link): Decode
search string.
Reported-by: Martin Hans <martinhansdk@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00328.html >
2017-11-25 15:30:56 +01:00
Nicolas Goaziou
82812ff086
ox: Fix UNNUMBERED strict inheritance
...
* lisp/ox.el (org-export-numbered-headline-p): Use a less opinionated
definition of inheritance.
* testing/lisp/test-ox.el (test-org-export/numbered-headline-p):
Update test.
* doc/org.texi (Export settings): Insist on UNNUMBERED inheritance.
It is now possible to number a headline within an unnumbered tree.
2017-11-20 00:09:59 +01:00
Nicolas Goaziou
946f76d707
org-table: Better fix for `:org-untouchable'
...
* lisp/org-table.el (org-table-recalculate): Fix typo in existing
`remove-text-properties' call instead of adding a new one.
Also, cleaning property before processing formulas is more robust,
e.g., if last process raised an error.
2017-11-15 22:47:06 +01:00
Nicolas Goaziou
696ec60341
org-macs: Fix typos in docstrings
...
* lisp/org-macs.el (org-split-string):
(org-string-width): Fix typo in docstring.
2017-11-15 18:58:44 +01:00
Nicolas Goaziou
40f73953f6
Fix `org-string-display'
...
* lisp/org-macs.el (org-string-display): Preserve original string's
display property when computing displayed width.
* testing/lisp/test-org-macs.el (test-org/string-display): Add test.
Reported-by: Ruy Exel <ruyexel@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00160.html >
2017-11-15 18:13:34 +01:00
Nicolas Goaziou
6059c3a057
org-table: Clean left-over `:org-untouchable' property
...
* lisp/org-table.el (org-table-recalculate): Clean `:org-untouchable'
property once we no longer need it.
* testing/lisp/test-org-table.el (test-org-table/formula-priority):
New test.
Reported-by: Ruy Exel <ruyexel@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00159.html >
2017-11-15 17:40:22 +01:00
Charles A. Roelli
18af0f88d7
Backport commit 98288ecaf from Emacs
...
* lisp/org-clock.el (org-clock--oldest-date): Fix an issue when
compiling on macOS 10.6 with a western time zone (a continuation of
Bug#27736).
Further workaround for faulty localtime() under macOS 10.6
98288ecaffbc0947ec3193088172ea85ad5e42a5
Charles A. Roelli
Wed Nov 8 20:51:48 2017 +0100
2017-11-13 22:07:59 -05:00
Chunyang Xu
3f8d67c490
ox-html: Allow disabling htmlize
...
* lisp/ox-html.el (org-html-fontify-code): Do it.
Disable htmlize by setting org-html-htmlize-output-type to nil.
TINYCHANGE
2017-11-12 23:28:57 +01:00
Martin Šlouf
fcf4bb61ec
Add CS export translations
...
* lisp/ox.el (org-export-dictionary): Add translations for CS.
TINYCHANGE
2017-11-12 22:37:04 +01:00
Marco Wahl
12e41c445b
org-attach: Fix handling of ATTACH tag at sychronize
...
* lisp/org-attach.el (org-attach-sync): Remove ATTACH tag at
synchronize when no files left.
2017-11-10 19:35:35 +01:00
Nicolas Goaziou
0880fc580e
ox-ascii: Small fix to items that do not start with a paragraph
...
* lisp/ox-ascii.el (org-ascii-item): Use better heuristics to
determine if contents should follow bullet or start a new line.
Contents follow bullet when the first contributing line is
a paragraph. As a consequence, the following snippet
-
#+html: ...
This is a paragraph.
is exported as
- This is a paragraph.
instead of
-
This is a paragraph.
previously.
2017-11-06 23:07:17 +01:00
Nicolas Goaziou
7000ed9ee0
ox-ascii: Fix descriptive lists
...
* lisp/ox-ascii.el (org-ascii-quote-margin): Update docstring.
(org-ascii--current-text-width): Properly handle width of text within
nested plain-list items.
(org-ascii-item): Always start a new line for description contents.
Indent them by `org-ascii-quote-margin' characters.
2017-11-06 14:27:45 +01:00
Nicolas Goaziou
271e58f2dd
Fix characters conversion issue when loading `org-id-locations-file'
...
* lisp/org-id.el (org-id-locations-load): Use `insert-file-contents'
instead of `insert-file-contents-literally'.
Reported-by: Anders Johansson <mejlaandersj@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00037.html >
2017-11-04 22:40:02 +01:00
Nicolas Goaziou
6186ed3a22
org-element: Fix item parser
...
* lisp/org-element.el (org-element--list-struct): Correctly handle end
of sub-lists and end of last item.
* testing/lisp/test-org-element.el (test-org-element/item-parser):
(test-org-element/plain-list-parser): Add tests.
2017-11-04 21:50:11 +01:00
Nicolas Goaziou
db16370c0b
ox-texinfo: Fix @ref without description
...
* lisp/ox-texinfo.el (org-texinfo--@ref): Prefer @ref{} with a single
argument when no description is provided.
2017-11-04 21:50:00 +01:00
Nicolas Goaziou
08c9de2a74
Fix typo in docstring
...
* lisp/org.el (org-speed-commands-user): Fix typo in docstring.
2017-11-03 23:10:38 +01:00
Xavier Martinez-Hidalgo
f38a7d433b
org-capture: Fix aborting after inserting text at end of buffer
...
* lisp/org-capture.el (org-capture-mark-kill-region): Set end marker
insertion type so that it advances when inserting text at the end of
the capture buffer.
* testing/lisp/test-org-capture.el (test-org-capture/insert-at-end-abort):
Add test case.
Inserting text at the end of the capture buffer does not advance the
end kill marker. This causes the narrowing region and the kill
markers to get out of sync, which prevents 'org-capture-finalize' from
correctly cleaning the target buffer when aborting the capture.
Setting the kill end marker insertion type fixes this.
TINYCHANGE
2017-11-03 22:20:11 +01:00
Nicolas Goaziou
b5f075aa05
ox-texinfo: Fix spurious blank lines in detailed menu.
...
* lisp/ox-texinfo.el (org-texinfo--build-menu): Prevent spurious blank
lines in detailed menu.
2017-11-03 12:21:56 +01:00
Nicolas Goaziou
8860fe2938
Fix `org-display-inline-images'
...
* lisp/org.el (org-display-inline-images): Fix regexp.
Reported-by: Leslie Watter <watter@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00455.html >
2017-10-31 19:33:55 +01:00
Nicolas Goaziou
2567fee3c9
Fix Org corruption when `org-agenda-files' is invalid
...
* lisp/org.el (org-install-agenda-files-menu): Prevent errors in
`org-agenda-files' from corrupting Org initialization.
Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00424.html >
2017-10-30 00:50:11 +01:00
Nicolas Goaziou
5c91976b49
ox-texinfo: Remove TABs from output
...
* lisp/ox-texinfo.el (org-texinfo--untabify): New function.
(texinfo): Use new function as a final output filter.
See (info "(texinfo) Conventions").
2017-10-24 13:55:38 +02:00
Nicolas Goaziou
3aa4d44ba8
Fix comma escaping with multiple leading commas
...
* lisp/org-src.el (org-escape-code-in-region):
(org-escape-code-in-string):
(org-unescape-code-in-region):
(org-unescape-code-in-string): Fix comma escaping with multiple
leading commas.
* testing/lisp/test-org-src.el (test-org-src/escape-code-in-string):
(test-org-src/unescape-code-in-string): New tests.
Reported-by: Michal Politowski <mpol@meep.pl>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00359.html >
2017-10-24 09:51:43 +02:00
Nicolas Goaziou
a2a034f5b9
Prevent leaking fontification across table fields' borders
...
* lisp/org.el (org-do-emphasis-faces): Prevent leaking fontification
across table fields' borders.
Reported-by: Ryan <rct@thompsonclan.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00321.html >
2017-10-22 14:39:36 +02:00
thibault
1613153aac
Fix tangling of org block with nested source block
...
* lisp/ob-tangle.el (org-babel-tangle-single-block): Prevent double unescaping
of source block by removing unnecessary call to `org-unescape-code-in-string'.
* testing/lisp/test-ob-tangle.el (ob-tangle/nested-block) New function.
2017-10-22 12:42:05 +02:00
Marco Wahl
3df62457be
ox-man: Fix org-man--protect-text
2017-10-20 12:21:08 +02:00
Nicolas Goaziou
37142cea78
ox-man: Fix verbatim markup
...
* lisp/ox-man.el (org-man--protect-text): New function.
(org-man-code): Use new function.
(org-man-verbatim): Use inline markup.
2017-10-19 21:51:31 +02:00
Nicolas Goaziou
ee24c0769b
ox-man: Fix code and verbatim export
...
* lisp/ox-man.el (org-man-code):
(org-man-verbatim): Fix functions.
Reported-by: Anthony Agelastos <iqgrande@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00313.html >
2017-10-18 22:54:40 +02:00
Allen Li
8c5c030c64
Fix `org-insert-todo-heading'
...
* lisp/org.el (org-insert-todo-heading): Insert TODO keyword relative
to the original headline, not to the headline above.
* testing/lisp/test-org.el (test-org/insert-todo-heading-respect-content):
Add test.
2017-10-18 22:48:16 +02:00
Allen Li
90d283f189
Update documentation on org-protocol template placeholders
...
* doc/org.texi (@code{capture} protocol): Fix placeholder names
(Template expansion): Add org-protocol placeholders
* lisp/org.el (org-store-link-plist): Fix docstring grammar
(org-store-link-props): Fix docstring grammar
2017-10-17 23:28:53 +02:00
Nicolas Goaziou
1d5142601a
Silence byte-compiler
2017-10-14 12:32:08 +02:00
Nicolas Goaziou
827af59873
Fix links without contents in table of contents' entries
...
* lisp/ox.el (org-export-toc-entry-backend): New function.
* lisp/ox-html.el (org-html--format-toc-headline):
* lisp/ox-md.el (org-md--build-toc):
* lisp/ox-odt.el (org-odt-toc): Use new function.
* lisp/ox-texinfo.el (org-texinfo--sanitize-title):
(org-texinfo--wrap-float): Handle links without contents.
* testing/lisp/test-ox.el (test-org-export/toc-entry-backend): New
test.
Reported-by: ConcreteVitamin <concretevitamin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00235.html >
2017-10-14 12:29:52 +02:00
Nicolas Goaziou
5861a55740
`org-file-contents': Improve error message
...
* lisp/org.el (org-file-contents): Improve error message.
2017-10-14 10:59:51 +02:00
Paul Eggert
3f1d5f9091
Backport commit 5d51403ce from Emacs
...
; Typo fixes, mostly repeated words
5d51403ceb9b86a1bfa66f00c7af39f1200e65f1
Paul Eggert
Mon Oct 9 22:55:06 2017 -0700
2017-10-13 15:12:27 -04:00
Paul Eggert
df0e3611f1
Backport commit 0d004ed01 from Emacs
...
; Spelling fixes
0d004ed01abb5fa025bdc9d58fce2a3abff0b6a4
Paul Eggert
Mon Oct 9 22:55:05 2017 -0700
2017-10-13 15:11:00 -04:00
Nicolas Goaziou
76163e983b
ox-md: Export TODO keywords and priority cookies
...
* lisp/ox-md.el (org-md-headline): Export TODO keywords and priority
cookies.
Reported-by: Ganesh Krishnan <gkrishnan.gt@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00171.html >
2017-10-12 01:00:14 +02:00
Georgiy Tugai
07f939f419
org-clock: Fix clock report sometimes ignoring hours before :wstart
...
* lisp/org-clock (org-clocktable-steps): Fix weekly-step clock report
ignoring hours between start of period and start of week, when start
of period is on a day of week numerically less than start of week.
Clock report now always inserts a "week" starting at the start of
the period, if necessary; all following weeks start on the start of
the week as expected.
TINYCHANGE
2017-10-08 10:53:39 +02:00
Nicolas Goaziou
d747e51fbf
Consider headlines as sentences by themselves
...
* lisp/org.el (org-forward-sentence): Consider headlines as sentences
by themselves.
* testing/lisp/test-org.el (test-org/forward-sentence): Add test.
Reported-by: Mat Vibrys <vibrysec@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00130.html >
2017-10-08 10:35:22 +02:00
Nicolas Goaziou
6432fcd433
C-c C-c on a planning info timestamp fixes day
...
* lisp/org.el (org-ctrl-c-ctrl-c): On a timestamp in a planning line,
fix day, like regular timestamps.
Reported-by: Aaron Jensen <aaronjensen@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00132.html >
2017-10-08 10:07:36 +02:00
Nicolas Goaziou
fb403ca34e
Fix `org-backward-paragraph' on an empty heading
...
* lisp/org.el (org-backward-paragraph): Fix behavior on greater
elements without contents.
* testing/lisp/test-org.el (test-org/backward-paragraph): Add test.
Reported-by: Omar Antolin <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00099.html >
2017-10-06 19:34:28 +02:00
Matt Lundin
ce536f6375
Fix interactive timestamp entry in capture templates
...
* lisp/org-capture.el: (org-capture-fill-template) Fix interactive
timestamp entry to match the behavior of org-time-stamp. This fixes
a bug related to the %^t and %^u template escapes which resulted in
incorrect timestamps (<2017-10-06 Fri-12:00>). The difference
between %^t and %^T now corresponds to the difference between
org-time-stamp called without and with a prefix argument.
2017-10-06 19:13:57 +02:00
Nicolas Goaziou
ef6dac812b
Fix `org-backward-paragraph' on block opening line
...
* lisp/org.el (org-backward-paragraph): Do not error when called from
a block opening line.
* testing/lisp/test-org.el (test-org/backward-paragraph): Add tests.
Reported-by: Omar Antolin <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00051.html >
2017-10-04 12:57:14 +02:00
Charles A. Roelli
24ea1b136a
Backport commit bd49b6f1b from Emacs
...
* lisp/org-clock.el (org-clock--oldest-date): Only execute
'decode-time' on times later than year -2**31 under macOS 10.6.
See Bug#27706.
Workaround for faulty localtime() under macOS 10.6
bd49b6f1b39cffeaf6098bc7b0182552683b1c07
Charles A. Roelli
Sun Oct 1 19:07:22 2017 +0200
2017-10-01 20:46:11 -04:00
Paul Eggert
5d3e17bf85
Backport commit bbda601d1 from Emacs
...
; Spelling fixes
bbda601d1d4e125c9d3c374b56eee3e2e9623f1d
Paul Eggert
Fri Sep 29 16:41:50 2017 -0700
2017-10-01 20:00:42 -04:00
Glenn Morris
eb8c088995
Backport commit 26d58f0c5 from Emacs
...
; Standardize license notices
26d58f0c5865c9132e2fc559e061ef704a086d30
Glenn Morris
Fri Sep 29 12:49:19 2017 -0400
2017-10-01 19:53:04 -04:00
Nicolas Goaziou
018fb0149d
Fix parsing properties with title or summary type
...
* testing/lisp/test-org.el (test-org/buffer-property-keys): Ignore
title and summary type when extracting name.
Reported-by: Adrian Bradd <adrian.bradd@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00001.html >
2017-10-01 19:01:58 +02:00
Nicolas Goaziou
4fdac06ef1
org-clock: Fix compilation error
...
Reported-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00623.html >
2017-09-29 22:01:29 +02:00
Nicolas Goaziou
c1c5786c8a
ob-lob: Expand blocks before ingesting them
...
* lisp/ob-lob.el (org-babel-lob-ingest): Expand blocks before
ingesting them.
Reported-by: edgar@openmail.cc
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00361.html >
2017-09-28 23:04:54 +02:00
Nicolas Goaziou
d417eac7ee
org-table: Fix formula correction when removing a hline
...
* lisp/org-table.el (org-table-kill-row): Do not correct formula when
removing a hline.
Reported-by: alan.wehmann@gmail.com
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00429.html >
2017-09-28 22:13:49 +02:00
Nicolas Goaziou
226d2fcaa2
org-colview: Fix "wrong-type-argument markerp nil"
...
* lisp/org-colview.el (org-columns-remove-overlays): Fix
"wrong-type-argument markerp nil".
When calling `org-agenda-columns', `org-columns-top-level-marker' is
not set. Handle this situation.
Reported-by: Benjamin Beckwith <bnbeckwith@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00566.html >
2017-09-26 20:03:03 +02:00
Nicolas Goaziou
d40deb6967
ox-publish: Fix :base-extension any with :recursive t
...
* lisp/ox-publish.el (org-publish-get-base-files): Ensure MATCH regexp
is always a string since `directory-files-recursively' requires it.
* testing/lisp/test-ox-publish.el (test-org-publish/get-project-from-filename):
Add test.
Suggested-by: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00528.html >
2017-09-24 10:57:11 +02:00
N. Raghavendra
db1dab8abe
ox-html.el: Partially revert d5bbf36553
...
* lisp/ox-html.el (org-html-src-block): Unless klipse is used, export
source code blocks as content of `pre' elements, and not as content of
`code' children of `pre' elements. Restores the previous way of
exporting source code blocks, and fixes the display of language
indicators while hovering over the blocks in the exported HTML file,
when klipse is not used.
(org-html-keep-old-src): Remove it. Not needed because it is now the
default, unless klipse is used.
2017-09-19 22:00:32 +02:00
Kyle Meyer
753f3f2842
ob-hledger.el: Correct file name in header
2017-09-18 13:09:56 -04:00
Nicolas Goaziou
80cbf909ea
Remove useless binding
...
* lisp/org.el (org-mode-map): Remove [(meta return)] binding, handled
by (kbd "M-RET").
Suggested-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00411.html >
2017-09-17 12:48:17 +02:00
Kyle Meyer
e4a0fd6b02
Adjust the license link in new lisp/*.el files
...
Emacs's bc511a64f6d made tree-wide changes to prefer https to http.
For Org, this resulted in the header of every lisp/*.el file being
changed. Make the same changes in lisp/*.el files that were added
since Org version 9.0.10 (the last version that was synced with
Emacs).
2017-09-17 01:15:11 -04:00
Paul Eggert
ff0dcf52a5
Backport commit bc511a64f from Emacs
...
Prefer HTTPS to FTP and HTTP in documentation
bc511a64f6da9ab51acc7c8865e80c4a4cb655c2
Paul Eggert
Wed Sep 13 15:54:37 2017 -0700
2017-09-17 00:28:38 -04:00
Paul Eggert
d4d7cda57f
Backport commit 5da53a019 from Emacs
...
* lisp/org-info.el (org-info-other-documents)
(org-info-map-html-url):
* lisp/ox-html.el (org-html-creator-string): Use HTTPS instead of
HTTP.
Prefer HTTPS to HTTP for gnu.org
5da53a01912c2f5d46f5df4ef8cc13a34b5017d4
Paul Eggert
Wed Sep 13 15:54:25 2017 -0700
2017-09-17 00:09:11 -04:00
Paul Eggert
d3912e7f32
Backport commit 74b8615fc from Emacs
...
* lisp/ob-tangle.el (org-babel-tangle-publish): Port to new copy-file
behavior.
Adjust ob-tangle to new copy-file behavior
74b8615fcceba7b92c4938e1bcc92015f10ae899
Paul Eggert
Sun Sep 10 22:31:23 2017 -0700
2017-09-17 00:05:20 -04:00
Nicolas Goaziou
9fb98f4c9c
Add M-RET binding for terminal
...
* lisp/org.el (org-mode-map): Add M-RET binding.
Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00386.html >
2017-09-16 17:19:00 +02:00
Nicolas Goaziou
9f863a695b
ox-texinfo: Add missing autoload cookies
...
* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo):
(org-texinfo-export-to-info): Add autoload cookie.
2017-09-15 21:11:55 +02:00
Nicolas Goaziou
25f12218d2
Fix `org-auto-repeat-maybe'
...
* lisp/org.el (org-auto-repeat-maybe): Fix `org-auto-repeat-maybe'.
* testing/lisp/test-org.el (test-org/auto-repeat-maybe): Add test.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00298.html >
2017-09-14 15:40:28 +02:00
Nicolas Goaziou
63f1ffac32
ob-scheme: Fix results error on unspecified and void values
...
* lisp/ob-scheme.el (org-babel-scheme-execute-with-geiser): Return
"#<void>" or "#<unspecified>" when the REPL says so.
* testing/lisp/test-ob-scheme.el (test-ob-scheme/unspecified): New
test.
(test-ob-scheme/prologue): Fix tests.
Reported-by: Lawrence Bottorff <borgauf@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00346.html >
2017-09-14 15:25:04 +02:00
Nicolas Goaziou
7584268314
ox-html: Fix missing Mathjax config with maths elements in captions
...
* lisp/ox-html.el (org-html--build-mathjax-config): Fix missing
Mathjax config with maths elements in captions.
Reported-by: Lawrence Bottorff <borgauf@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00302.html >
2017-09-14 14:40:33 +02:00
Nicolas Goaziou
23c4716a94
org-table: Fix `org-table-copy-down' with timestamps
...
* lisp/org-table.el (org-table-copy-down): Allow matching inactive
timestamps.
Reported-by: Alan Schmitt <alan.schmitt@polytechnique.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00304.html >
2017-09-13 14:17:00 +02:00
Nicolas Goaziou
95271315cc
Fix `org-forward-sentence' on a headline
...
* lisp/org.el (org-forward-sentence): Fix `org-forward-sentence' on a headline.
* testing/lisp/test-org.el (test-org/forward-sentence): Add tests.
Reported-by: Mat Vibrys <vibrysec@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00282.html >
2017-09-12 09:02:02 +02:00
Nicolas Goaziou
1168d085d2
org-agenda: Fix `org-agenda-skip-if-todo'
...
* lisp/org-agenda.el (org-agenda-skip-if-todo): Make sure TODO search
is case sensitive. Refactor function.
2017-09-10 14:10:49 +02:00
Nicolas Goaziou
27a03dd97f
org-agenda: Fix `org-agenda-skip-if'
...
* lisp/org-agenda.el (org-agenda-skip-if): Prevent some checks from
moving point, since this stops following checks from running
properly.
Reported-by: "cro cefisso" <crocefisso@gmx.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00182.html >
2017-09-10 14:08:16 +02:00
Matt Lundin
2dfbafa4a9
Ensure that top-level capture targets are pasted at level 1
...
* lisp/org-capture.el: (org-capture-place-entry) Ensure that level is
set to 1 (i.e., the top level) if there is no headline target
defined. Otherwise, captured items are improperly nested by context.
2017-09-10 09:39:24 +02:00
Nicolas Goaziou
e0259f9374
org-agenda: Fix typo
...
* lisp/org-agenda.el (org-search-view): Add missing :test keyword.
2017-09-08 22:35:54 +02:00
Nicolas Goaziou
d059b7895b
org-agenda: Better state change detection
...
* lisp/org-agenda.el (org-agenda-get-progress): Use appropriate regexp
as TODO keywords are not limited to alphanumeric characters.
Reported-by: email@edgar-kalkowski.de
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00206.html >
2017-09-08 21:18:22 +02:00
Reuben Thomas
a307011136
Fix logic of calling org-make-link-desciption-function
...
* lisp/org.el (org-insert-link): Simplify so that description is only
prompted for once, if auto-desc is not set, and takes as its default
value, in order, default-description, the return value of
org-make-link-description-function (if the variable is non-nil), and
the current desc. Update the docstring to reflect that
default-description takes precedence over
org-make-link-description-function.
(org-make-link-description-function): Remove from docstring the
statement that if the variable is nil, then the link will be used as
the default description. This is undesirable, and was not in any case
implemented.
2017-09-08 06:59:30 +02:00
Neil Jerram
e09cb53bde
Improve Scheme code evaluation
...
* lisp/ob-scheme.el (org-babel-scheme-execute-with-geiser): Use
Geiser's explicit 'retort' object, instead of catching and parsing
an expected Emacs message (which for me is in any case overwritten
by a following "Mark set" message); this also means we don't need
the with-output-to-string approach for getting 'output' results.
Also 'let' Geiser variables so as to avoid popping up the REPL
and *Geiser dbg* buffers.
2017-09-08 06:48:15 +02:00
Kyle Meyer
79d9f0c0ce
Update customize-package-emacs-version-alist
...
* lisp/org.el (customize-package-emacs-version-alist): Add entries for
all existing ":package-version" values, and remove entries for
versions that aren't used as ":package-version" values.
Note that this alist has a limited effect because we specify
":version" in almost all of our defcustoms. Two functions make use of
this alist: describe-variable-custom-version-info and
customize-changed-options. The former only looks at the alist if
:version isn't specified, and the latter only looks at :version if an
entry for :package-version isn't found in the alist.
We should consider removing the defcustom :version specifications so
that the package-version->version mapping only needs to be maintained
in one place.
2017-09-07 16:56:15 -04:00
Kyle Meyer
6496d0ca95
Correct defcustom version information
...
* lisp/ob-lilypond.el (org-babel-lilypond-commands):
* lisp/ob-lua.el (org-babel-lua-command):
(org-babel-lua-mode):
(org-babel-lua-hline-to):
(org-babel-lua-None-to):
* lisp/org-agenda.el (org-agenda-search-view-max-outline-level):
* lisp/org.el (org-mouse-1-follows-link):
(org-src-fontify-natively):
(orgstruct-heading-prefix-regexp):
* lisp/ox-ascii.el (org-ascii-format-inlinetask-function):
* lisp/ox-latex.el (org-latex-format-drawer-function):
(org-latex-listings-langs):
* lisp/ox-odt.el (org-odt-format-drawer-function):
* lisp/ox.el (org-export-with-properties): Correct ":version" value.
* lisp/org-attach.el (org-attach-annex-auto-get): Correct
":package-version" value.
2017-09-07 16:56:11 -04:00
Nicolas Goaziou
b16086d9af
Fix `org-confirm-babel-evaluate' with `org-sbe'
...
* lisp/ob-core.el (org-babel-check-confirm-evaluate): Do not move
point, as it is neither necessary nor expected by
`org-babel-check-confirm-evaluate'.
Reported-by: Alex Bennée <alex.bennee@linaro.org>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00167.html
2017-09-07 17:43:32 +02:00
Nicolas Goaziou
22e916fb36
org-agenda: Remove duplicate files when building a search view
...
* lisp/org-agenda.el (org-search-view): Remove duplicate files when
building a search view.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00112.html >
2017-09-07 15:53:49 +02:00
Nicolas Goaziou
706932bec3
Restriction lock means no extra files in agenda search view
...
* lisp/org-agenda.el (org-search-view): Restriction lock means no
extra files in agenda search view.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00112.html >
2017-09-07 15:51:30 +02:00
Nicolas Goaziou
d50170b208
Tolerate editing an export block without type
...
* lisp/org-src.el (org-edit-export-block): Tolerate editing an export
block without type.
2017-09-07 15:27:55 +02:00
Nicolas Goaziou
91a76063d8
org-duration: Fix `org-duration-to-minutes' with the empty string
...
* lisp/org-duration.el (org-duration-to-minutes): Accept the empty
string.
* testing/lisp/test-org-duration.el (test-org-duration/to-minutes):
Add test.
For backward compatibility with `org-duration-string-to-minutes'
accept the empty string as a duration.
2017-09-07 15:20:26 +02:00
Nicolas Goaziou
ea4e3dac6d
Use `split-string' instead of `org-split-string'
...
* contrib/lisp/org-depend.el (org-depend-trigger-todo):
(org-depend-block-todo):
* contrib/lisp/ox-bibtex.el (org-bibtex-get-arguments):
* contrib/lisp/ox-koma-letter.el (org-koma-letter-template):
* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-unique-id):
(org-taskjuggler-resolve-dependencies):
* lisp/ob-core.el (org-babel-insert-result):
* lisp/org-agenda.el (org-search-view):
* lisp/org-lint.el (org-lint-duplicate-target):
(org-lint-wrong-header-value):
* lisp/org.el (org--setup-collect-keywords):
(org-make-org-heading-search-string):
(org-search-radio-target):
(org-local-logging):
(org-entry-add-to-multivalued-property):
(org-entry-remove-from-multivalued-property):
(org-entry-member-in-multivalued-property):
(org-entry-get-multivalued-property):
(org-entry-put-multivalued-property):
(org-wrap):
* lisp/ox-beamer.el (org-beamer-allowed-property-values):
* lisp/ox.el (org-export--get-subtree-options):
(org-export--get-inbuffer-options): Use `split-string' instead of
`org-split-string'.
2017-09-07 14:36:50 +02:00
Eduardo Bellani
6edec1bef5
Fix table variable with commas in ob-sqlite
...
* lisp/ob-sqlite.el (org-babel-sqlite-expand-vars): Stop interfering
with the 'orgtbl-to-csv' default formatting.
* testing/lisp/test-ob-sqlite.el: New file.
The problem here was that ob-sqlite was providing a format to the
`orgtbl-to-csv' that actually overwrote the default format in that
function, and in the case where there were commas in the content of
the table, broke the table as argument mechanism.
TINYCHANGE
2017-09-06 13:18:30 +02:00
Nicolas Goaziou
845138473e
Merge branch 'maint'
2017-09-05 22:34:38 +02:00
Nicolas Goaziou
0a77f042ea
ox-odt: Small fix
...
* lisp/ox-odt.el (org-odt--translate-latex-fragments): Ignore blank
lines before link to parse.
Reported-by: Alastair Burt <alastair.burt@gmail.com>
2017-09-05 22:33:29 +02:00
Nicolas Goaziou
b792e28168
org-agenda: Fix `org-agenda-custom-command' customization
...
* lisp/org-agenda.el (org-agenda-custom-commands-local-options): Quote
symbols.
Reported-by: Niall Dooley <dooleyn@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00659.html >
2017-09-03 14:19:05 +02:00
Nicolas Goaziou
8a0c89244d
Merge branch 'maint'
2017-08-31 23:15:56 +02:00
Nicolas Goaziou
1654a5a98a
Fix `:jump-to-captured' when refiling a capture target
...
* lisp/org-capture.el (org-capture-refile): Call
`org-capture-goto-last-stored' at the appropriate time.
* testing/lisp/test-org-capture.el (test-org-capture/refile): Add
test.
Reported-by: "Raymond Zeitler" <zeitra@yahoo.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00704.html >
2017-08-31 23:14:04 +02:00
Nicolas Goaziou
ab6f43fcac
ox-icalendar: release buffers less aggressively
...
* lisp/ox-icalendar.el (org-icalendar--combine-files): Release only
newly created buffers.
Reported-by: Michaël Cadilhac <michael@cadilhac.name>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00691.html >
2017-08-31 15:58:51 +02:00
Nicolas Goaziou
23eba90e26
org-agenda: Remove unnecessary sentence
...
* lisp/org-agenda.el (org-agenda-entry-types): Remove a sentence.
2017-08-30 14:52:28 +02:00
Nicolas Goaziou
213c011505
org-agenda: Tiny clean-up
...
* lisp/org-agenda.el (org-agenda-to-appt): Remove obsolete code.
2017-08-30 14:30:30 +02:00
Nicolas Goaziou
d1ff75f335
Remove "timeline" remnants
...
* doc/orgguide.texi (Timeline): Remove node.
(Top):
(Using TODO states):
(Clocking work time):
(Agenda dispatcher):
(Built-in agenda views):
(Matching tags and properties): Update.
* lisp/org-agenda.el (org-agenda-include-inactive-timestamps):
(org-agenda-format-date):
(org-agenda-format-date-aligned):
(org-agenda-weekend-days):
(org-agenda-prefix-format):
(org-agenda-show-inherited-tags):
(org-agenda-use-tag-inheritance):
(org-agenda-menu):
(org-agenda-max-entries):
(org-agenda-max-todos):
(org-agenda-max-tags):
(org-agenda-max-effort):
(org-agenda-check-type):
(org-agenda-manipulate-query):
(org-agenda-goto-today):
(org-agenda-view-mode-dispatch):
(org-agenda-next-date-line):
(org-agenda-previous-date-line):
(org-agenda-log-mode):
(org-agenda-date-later):
(org-agenda-date-prompt):
(org-agenda-schedule):
(org-agenda-deadline):
(org-agenda-execute-calendar-command):
(org-agenda-goto-calendar):
(org-agenda-convert-date):
(org-agenda-bulk-action):
* lisp/org-mouse.el (org-mouse-agenda-context-menu): Remove reference
to "timeline".
2017-08-30 14:24:40 +02:00
Nicolas Goaziou
c01b62305e
Merge branch 'maint'
2017-08-30 08:12:29 +02:00
Nicolas Goaziou
18a48b5861
Fix ODT priority styling
...
* lisp/ox-odt.el (org-odt-format-headline-default-function): Fix style
name for priority cookie.
Reported-by: Henry Todd <hjst@me.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00648.html >
2017-08-30 08:04:25 +02:00
Nicolas Goaziou
7d18632a73
Fix "Symbol’s function definition is void: org-clocking-buffer"
...
* lisp/org.el (org-sort-entries): Fix "Symbol’s function definition is
void: org-clocking-buffer".
Reported-by: Ian Garmaise <ian.g@phorixsol.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00647.html >
Reported-by: Allen Choong <allencch@hotmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00649.html >
2017-08-30 00:14:42 +02:00
Nicolas Goaziou
8b5b2cf49e
Merge branch 'maint'
2017-08-28 09:15:54 +02:00
Nicolas Goaziou
ab65bc13d6
Fix deleting a region in a table (part 2)
...
* lisp/org.el (org-delete-backward-char): Fix deleting a region in
a table.
2017-08-28 09:14:57 +02:00
Nicolas Goaziou
750071accd
Tiny refactoring
...
* lisp/ox.el (org-export-with-drawers): Tiny refactoring.
2017-08-26 11:27:51 +02:00
Nicolas Goaziou
64bfa2d931
Remove `inline-only' option for `org-export-use-babel'
...
* lisp/ob-exp.el (org-export-use-babel): Remove `inline-only' option.
(org-babel-exp-process-buffer): Ignore `inline-only' value.
* doc/org.texi (Exporting code blocks): Remove documentation.
* testing/lisp/test-ob-exp.el (ob-export/babel-evaluate): Remove tests.
2017-08-26 10:32:26 +02:00
Nicolas Goaziou
e0682619dd
Merge branch 'maint'
2017-08-26 00:12:46 +02:00
Nicolas Goaziou
a6840598ed
Fix `org-copy-visible'
...
* lisp/org.el (org-copy-visible): Rewrite function. Do not use
dubious `org-find-visible' and `org-find-invisible'.
* testing/lisp/test-org.el (test-org/copy-visible): New test.
Reported-by: Gary Cheng <garycheng12@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00568.html >
2017-08-26 00:09:51 +02:00
Nicolas Goaziou
dd4a3d3b11
Merge branch 'maint'
2017-08-25 22:00:38 +02:00
Nicolas Goaziou
21a8ec1c0f
ob-core: Fix going to a named block.
...
* lisp/ob-core.el (org-babel-find-named-block): Add missing argument.
Reported-by: Eric S Fraga <ucecesf@ucl.ac.uk>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00576.html >
2017-08-25 21:59:28 +02:00
Nicolas Goaziou
489346c1d5
Merge branch 'maint'
2017-08-25 21:51:56 +02:00
Nicolas Goaziou
51b431d013
org-capture: Fix "org-capture: Fix %^T and %^U placeholders"
...
* lisp/org-capture.el (org-capture-fill-template): Fix
2ff3101c0e
.
2017-08-25 21:51:04 +02:00
Nicolas Goaziou
a68d117459
Merge branch 'maint'
2017-08-25 15:25:02 +02:00
Nicolas Goaziou
c1b9d38c89
org-lint: Fix wrong warning with inline footnotes
...
* lisp/org-lint.el (org-lint-undefined-footnote-reference): Do not
warn when definition is inline.
* testing/lisp/test-org-lint.el (test-org-lint/undefined-footnote-reference):
Add tests.
Reported-by: Eric S Fraga <esflists@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00577.html >
2017-08-25 15:24:07 +02:00
Nicolas Goaziou
bae41a277e
org-table: Fix sorting with times > 100 hours
...
* lisp/org-table.el (org-table-sort-lines): Fix regexp. Also test
durations.
* testing/lisp/test-org-table.el (test-org-table/sort-lines): Update
tests. Add a new one.
2017-08-25 00:06:27 +02:00
Nicolas Goaziou
b47de25062
Merge branch 'maint'
2017-08-23 10:30:33 +02:00
Nicolas Goaziou
2ff3101c0e
org-capture: Fix %^T and %^U placeholders
...
* lisp/org-capture.el (org-capture-fill-template): Fix %^T and %^U
placeholders.
Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00528.html >
2017-08-23 10:28:39 +02:00
Nicolas Goaziou
d58837a5ea
Merge branch 'maint'
2017-08-22 23:46:00 +02:00
Jay Kamat
fc84ffee22
ox-md: Fix missing ':' in exported markdown image links
...
* lisp/ox-md.el (org-md-link): Append ':' to the type of non-file
image links.
2017-08-22 23:44:23 +02:00
Nicolas Goaziou
526b3d4b98
Merge branch 'maint'
2017-08-21 21:27:06 +02:00
Nicolas Goaziou
6980b02b6f
Revert "org-macro: Expand macros only within narrowed part of buffer"
...
This reverts commit 82db669de6
.
2017-08-21 21:21:30 +02:00
Nicolas Goaziou
e40d2df680
Merge branch 'maint'
2017-08-21 11:31:29 +02:00
Nicolas Goaziou
4df137420d
org-src: Fix remote footnote edition
...
* lisp/org-src.el (org-src--edit-element): Ensure read-only overlay in
source buffer is properly removed upon exiting the remote editing
buffer.
2017-08-21 11:27:41 +02:00
Eric Abrahamsen
7973ec1057
Inherit TIMEZONE and LOCATION properties in iCalendar export
...
* lisp/ox-icalendar.el (org-icalendar-entry): Both properties now
optionally inherit, depending on value of
`org-use-property-inheritance'.
* doc/org.texi: Mention change.
2017-08-20 00:12:57 +02:00
Eric Abrahamsen
42458e682d
Add per-entry timezone support for icalendar export
...
* lisp/ox-icalendar.el (org-icalendar-entry): Look for a "TIMEZONE"
property.
(org-icalendar--vevent, org-icalendar--vtodo): Accept additional
timezone argument.
(org-icalendar-convert-timestamp): Change parameter name to "tz", and
accept a wider variety of values.
* doc/org.texi: Mention in manual.
2017-08-20 00:11:18 +02:00
Nicolas Goaziou
6a590738b1
Remove `org-enable-table-editor'
...
* doc/org.texi (Built-in table editor): Document removal.
* lisp/org-table.el (orgtbl-optimized):
(org-table-auto-blank-field): Ignore removed variable.
2017-08-19 23:39:22 +02:00
Nicolas Goaziou
9638de598c
`org-enable-table-editor' does not affect syntax
...
* lisp/org-table.el (org-table-paste-rectangle):
* lisp/org.el (org-at-table-p):
(org-at-table.el-p):
(org-at-table-hline-p):
(org-ctrl-c-ctrl-c):
(org-tbl-menu): Ignore `org-enable-table-editor'.
2017-08-19 21:44:47 +02:00
Nicolas Goaziou
a65ddb0228
org-table: Fix table alignment
...
* lisp/org-table.el (org-table-align): Fix table alignment.
2017-08-19 12:13:26 +02:00
Bastien
d0ced98943
Delete htmlize.el from Org’s contrib directory
...
* lisp/ox-org.el (org-org-publish-to-org):
* lisp/ox-html.el (org-html-htmlize-generate-css):
(org-html-fontify-code):
* lisp/org-agenda.el (org-agenda-write): Throw an error
requesting the user to install htmlize.el.
* doc/org.texi (Exporting agenda views, Literal examples):
Don’t assume htmlize.el is available.
You need to install it from https://github.com/hniksic/emacs-htmlize
See https://github.com/hniksic/emacs-htmlize/issues/7 for this issue.
2017-08-18 09:54:19 +02:00
Bastien
90986a8e2f
Remove ob-scala.el
...
See https://github.com/ensime/emacs-scala-mode/issues/114#issuecomment-323281255
2017-08-18 09:35:14 +02:00
Nicolas Goaziou
ac6b6a45de
Merge branch 'maint'
2017-08-17 18:17:39 +02:00
Nicolas Goaziou
91c68865c6
Fix deleting region in a table
...
* lisp/org.el (org-self-insert-command): Fix deleting region in
a table.
Reported-by: Nick Helm <nick@tenpoint.co.nz>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00346.html >
2017-08-17 18:16:22 +02:00
Nicolas Goaziou
3fb025137b
Fix previous commit
...
* lisp/org.el (org-display-inline-images): Fix thinko in previous
commit. Also remove code related to nested links as this is no
longer possible in Org syntax.
2017-08-17 15:55:15 +02:00
Nicolas Goaziou
6ec148a263
Allow link abbreviations to be displayed as inline images
...
* lisp/org.el (org-display-inline-images): Also display link
abbreviations when they point to a valid image file.
Reported-by: Fabrice Popineau <fabrice.popineau@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00395.html >
2017-08-17 15:45:47 +02:00
Nicolas Goaziou
2fb129b5c7
`org-scan-tags' retrieve all TODO keywords, not only not-done ones
...
* lisp/org.el (org-scan-tags): Retrieve all TODO keywords. DONE
keywords can be filtered using "/!" matcher syntax or equivalent.
Reported-by: Julien Cubizolles <j.cubizolles@free.fr>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00367.html >
2017-08-17 15:16:07 +02:00
Nicolas Goaziou
db0ef4d06e
Revert "org-agenda: `tags-todo' command type includes DONE keywords"
...
This reverts commit 942b6267a0
.
2017-08-17 14:51:11 +02:00
Kyle Meyer
4890801242
Merge branch 'maint'
2017-08-14 22:04:35 -04:00
Paul Eggert
731f59f965
Backport commit 5bdc97d55 from Emacs
...
Be consistent in spelling 'ok-if-already-exists'.
5bdc97d55df30f6af107ddd136901983a7e2706a
Paul Eggert
Sun Aug 13 11:55:12 2017 -0700
2017-08-14 22:03:29 -04:00
Kyle Meyer
b900a85fe9
org-agenda: Fix prefix argument handling for bulk actions
...
* lisp/org-agenda.el (org-agenda-bulk-action): Fix the prefix argument
checks introduced by 4f578a3f7
to avoid inadvertently setting
org-agenda-schedule or org-agenda-deadline's time argument to ARG's
value when ARG is non-nil.
Reported-by: Julien Cubizolles <j.cubizolles@free.fr>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00263.html >
2017-08-14 16:27:46 -04:00
Kaushal Modi
c8ade76ca2
Fix blank titles resulting in export of invalid HTML
...
* lisp/ox-html.el (org-html--build-meta-info): Use an invisible
character "‎" (left-to-right mark) in the HTML title tags
instead of removing the title altogether (invalid HTML) or setting
the content of title tag to nothing (invalid HTML).
Discussion:
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00021.html >
2017-08-14 16:11:32 -04:00
Galen Menzel
f3abb514a3
Implement `org-decode-time' for backward compatibility
...
* lisp/org-compat.el (org-decode-time): New function.
* lisp/org-clock.el (org-clock-get-sum-start): Use new function.
Emacs 24's `decode-time' doesn't accept two arguments.
2017-08-14 13:02:43 +02:00
Nicolas Goaziou
748bfee34a
org-clock: Remove interactive from `org-clock-select-task'
...
* lisp/org-clock.el (org-clock-select-task): Remove `interactive'.
This function is not meant to be called interactively. Use
`org-clock-goto' with a prefix argument instead.
2017-08-14 11:17:44 +02:00
Nicolas Goaziou
548b07741b
Merge branch 'maint'
2017-08-13 19:02:27 +02:00
Nicolas Goaziou
b862c24b9f
ob-core: Fix `org-babel-goto-named-src-block' at point-min
...
* lisp/ob-core.el (org-babel-find-named-block):
(org-babel-src-block-names): Fix behaviour when match is at point-min.
Reported-by: "Berry, Charles" <ccberry@ucsd.edu>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00324.html >
2017-08-13 19:02:10 +02:00
Nicolas Goaziou
15e992c6da
Merge branch 'maint'
2017-08-13 16:21:21 +02:00
Nicolas Goaziou
24a76fbe57
ob-core: Fix improper results indentation
...
* lisp/ob-core.el (org-babel-insert-result): Fix improper results
indentation.
* testing/lisp/test-ob.el (test-ob/preserve-results-indentation): Add
test.
Reported-by: Chunyang Xu <mail@xuchunyang.me>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00308.html >
2017-08-13 16:20:20 +02:00
Nicolas Goaziou
5f410132b5
Merge branch 'maint'
2017-08-13 15:13:47 +02:00
Nicolas Goaziou
5bf7730674
Fix exporting LaTeX fragments within inline footnotes
...
* lisp/ox.el (org-export--prune-tree): Do not change parent by side
effect. It affects footnote references already in the tree.
Reported-by: Paul Stansell <paulstansell@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00302.html >
2017-08-13 15:11:48 +02:00
Galen Menzel
3359e05e82
Implement `org-decode-time' for backward compatibility
...
* lisp/org-compat.el (org-decode-time): New function.
* lisp/org-clock.el (org-clock-get-sum-start): Use new function.
Emacs 24's `decode-time' doesn't accept two arguments.
2017-08-11 15:07:45 +02:00
Galen Menzel
10b1cfb031
Fix `org-toggle-tag
...
* lisp/org.el (org-toggle-tag): Fix
d777d5e0b7
.
Reported-by: Josh Moller-Mara <jmm@cns.nyu.edu>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00278.html >
2017-08-11 11:02:01 +02:00
Rasmus
323fc95b4f
ox-beamer: Fix bug related to frame options
...
* lisp/ox-beamer.el (org-beamer--format-frame): Remove empty options
explicitly.
Reported-by: Jarmo Hurri <jarmo.hurri@iki.fi>
<http://permalink.gmane.org/gmane.emacs.orgmode/115190 >
2017-08-10 20:31:07 +02:00
Grant Rettke
33e0dc6155
Add Easy Template for COMMENT (C)
...
* lisp/org.el: (org-structure-template-alist): Added `COMMENT' block template
bound to `C'
* doc/org.texi: Add documentation for `COMMENT' Easy Template.
* contrib/orgmanual.org: Add documentation for `COMMENT' Easy
Template.
* etc/ORG-NEWS: Added note for 9.1 release under Miscellaneous
2017-08-10 12:45:02 +02:00
Nicolas Goaziou
829ffa977c
Merge branch 'maint'
2017-08-10 12:42:51 +02:00
Nicolas Goaziou
313d22dec6
org.el: Fix org-open-at-point for tags.
...
lisp/org.el (org-open-at-point): Move case for tags up so that it's
not shortcutted by the case for no valid context.
TINYCHANGE
2017-08-10 12:41:35 +02:00
Rasmus
8ab9a82be2
ox-html: Respect the "title" option
...
* lisp/ox-html.el (org-html-template): Respect :with-title.
Reported-by: lists@wilkesley.net
<http://permalink.gmane.org/gmane.emacs.orgmode/114942 >
2017-08-09 11:39:56 +02:00
Adam Porter
7e46af419c
org-agenda.el: Add option to automatically align tags in agenda
...
* lisp/org-agenda.el (org-agenda-tags-column): Add 'auto setting.
(org-agenda-align-tags): Handle automatic alignment.
TINYCHANGE
2017-08-08 15:18:50 -04:00
Nicolas Goaziou
f1b2a95bee
Merge branch 'maint'
2017-08-07 23:27:51 +02:00
Nicolas Goaziou
1876514e26
Fix customize interface
...
* lisp/org.el (org-tag-alist, org-tag-persistent-alist): Add non-keyed
tag type.
2017-08-07 23:27:10 +02:00
Nicolas Goaziou
bfbaf1caa4
Merge branch 'maint'
2017-08-07 14:47:14 +02:00
Nicolas Goaziou
ec129f8e10
Silence byte-compiler
2017-08-07 14:46:59 +02:00
Nicolas Goaziou
e805aba972
Add "vala" to org-babel-load-languages
...
* lisp/org.el (org-babel-load-languages): Add "vala".
2017-08-07 14:44:38 +02:00
Nicolas Goaziou
2bc39af847
Merge branch 'maint'
2017-08-07 13:30:19 +02:00
Nicolas Goaziou
b561c8b7ef
org-clock: Fix typo in last commit
...
* lisp/org-clock.el (org-clock-get-sum-start): Fix typo.
2017-08-07 13:29:52 +02:00
Nicolas Goaziou
5c1d9c53f0
Merge branch 'maint'
2017-08-07 13:27:39 +02:00
Nicolas Goaziou
43a1d5e920
org-clock: Fix `org-clock-get-sum-start'
...
* lisp/org-clock.el (org-clock-get-sum-start): Return time as UTC.
Reported-by: Josh Moller-Mara <jmm@CNS.NYU.EDU>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00128.html >
2017-08-07 13:25:20 +02:00
Nicolas Goaziou
d777d5e0b7
Fix thinko
...
* lisp/org.el (org-toggle-tag): Do not call `match-string' after
`replace-match'.
2017-08-07 13:13:56 +02:00
Nicolas Goaziou
7d21349dbe
Merge branch 'maint'
2017-08-07 13:12:32 +02:00
Nicolas Goaziou
f6a28ba1c2
Tiny refactoring
...
* lisp/org.el (org-sort-entries): Use keyword instead of symbol.
2017-08-07 13:11:54 +02:00
Nicolas Goaziou
c8f3833e9b
Merge branch 'maint'
2017-08-07 12:56:20 +02:00
Nicolas Goaziou
6a9fc48097
Fix `org-sort-entries' loosing clock marker
...
* lisp/org.el (org-sort-entries): Properly restore clock marker, when
appropriate.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00177.html >
2017-08-07 12:51:35 +02:00
Nicolas Goaziou
e83255c993
Silence byte-compiler
2017-08-07 11:43:50 +02:00
Christian Garbs
4d2c8354ee
ob-vala.el: Add Vala support to Babel
...
* lisp/ob-vala.el: Add support for the Vala language to Babel.
* testing/lisp/test-ob-vala.el: Add tests for ob-vala.el.
* doc/org.texi (Working with source code): Add Vala to the list of
supported languages.
2017-08-07 11:40:25 +02:00
Nicolas Goaziou
15f112259b
Fix spurious colons next to TODO keywords
...
* lisp/org.el (org-toggle-tag): Fix spurious colons next to TODO
keywords.
Reported-by: Colin Baxter <m43cap@yandex.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00075.html >
2017-08-07 11:32:39 +02:00
Yuri D. Lensky
e28714c3f2
org-agenda: Properly return all entries from blocked marking
...
* lisp/org-agenda.el (org-agenda--mark-blocked-entry): Always return
the entry passed to `org-agenda--mark-blocked-entry' (previously
returned nil if entry did not have todo-state text property).
2017-08-07 10:54:11 +02:00
Nicolas Goaziou
bd9f63a22a
Merge branch 'maint'
2017-08-07 10:53:22 +02:00
Nicolas Goaziou
e8fe579a17
Silence byte-compiler
...
* lisp/org-macs.el (org-unique-local-variables):
(org-get-local-variables):
(org-clone-local-variables): Moved from "org.el".
2017-08-07 10:52:37 +02:00
Nicolas Goaziou
a7e11643a9
Merge branch 'maint'
2017-08-06 10:31:06 +02:00
Nicolas Goaziou
9974ed39b2
org-src: Fix remote footnote edition
...
* lisp/org-src.el (org-edit-footnote-reference): Clone local variables
in remote editing buffer.
* testing/lisp/test-org-src.el (test-org-src/footnote-references): Add
test.
2017-08-06 10:30:48 +02:00
Nicolas Goaziou
fca0dbcc61
Fix `org-clone-local-variables'
...
* lisp/org.el (org-clone-local-variables): Prevent errors that could
happen when trying to set local variables that cannot be set,
e.g. `enable-multibyte-characters'.
2017-08-06 10:26:01 +02:00
Nicolas Goaziou
b4032ed597
Merge branch 'maint'
2017-08-06 09:13:49 +02:00
Nicolas Goaziou
f3d7284ebd
ox-md: Fix non-"file" image links
...
* lisp/ox-md.el (org-md-link): Handle non-"file" image links.
Reported-by: Jay Kamat <jaygkamat@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00147.html >
2017-08-06 09:11:59 +02:00
Nicolas Goaziou
9d7f8a71a9
Merge branch 'maint'
2017-08-06 02:17:25 +02:00
Nicolas Goaziou
62b4edb263
Fix `org-refile' with prefix argument
...
* lisp/org.el (org-refile): Handle special file targets.
Reported-by: Michaël Cadilhac <michael@cadilhac.name>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00045.html >
2017-08-06 02:16:15 +02:00
Nicolas Goaziou
71aabd9db7
Merge branch 'maint'
2017-08-06 01:55:26 +02:00
Michaël Cadilhac
1f6f46aa69
org-capture.el: Document what the time stamp is in capture templates
...
* lisp/org-capture.el (org-capture-templates): Make explicit that the time
stamp aware %-escapes are influenced by `org-capture-use-agenda-date'.
TINYCHANGE
2017-08-06 01:44:23 +02:00
Nicolas Goaziou
411c603516
Merge branch 'maint'
2017-08-06 01:20:36 +02:00
Nicolas Goaziou
4b89f5c0e4
ox-icalendar: Fix thinko
...
* lisp/ox-icalendar.el (org-icalendar-export-current-agenda): Use
`member' instead of `memq'.
2017-08-06 01:19:49 +02:00
Nicolas Goaziou
569b7d105c
Merge branch 'maint'
2017-08-05 15:38:13 +02:00
Nicolas Goaziou
7e241af591
org-clock: Fix regression in `org-clock-sum'
...
* lisp/org-clock.el (org-clock-sum): Fix regression introduced in
112c5ba479
. Small refactoring.
Reported-by: Josh Moller-Mara <jmm@cns.nyu.edu>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00117.html
2017-08-05 15:35:37 +02:00
Nicolas Goaziou
d5690b6206
Merge branch 'maint'
2017-08-05 11:05:45 +02:00
Nicolas Goaziou
e67f0f29de
ox-icalendar: Prevent duplicates when writing agenda view
...
* lisp/ox-icalendar.el (org-icalendar-export-current-agenda): Prevent
duplicates when writing agenda view.
Reported-by: Nicolae Cindea <ncindea@gmail.com>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00116.html
2017-08-05 11:02:14 +02:00
Nicolas Goaziou
dd6be5d161
Allow emphasis markers after an hyphen
...
* lisp/org.el (org-emphasis-regexp-components): Allow emphasis markers
after an hyphen.
(org-do-emphasis-faces): Do not strike-through table hlines.
Hypen is already allowed after emphasis markers. This allows one to
write, e.g., 2017-*09*-27.
2017-08-04 18:40:28 +02:00
Nicolas Goaziou
b0776e39b5
org-table: Small refactoring
...
* lisp/org-table.el (org-table-previous-field): Small refactoring.
* testing/lisp/test-org-table.el (test-org-table/previous-field): New
test.
2017-08-02 10:35:57 +02:00
Nicolas Goaziou
80d7025770
Fix `org-store-log-note'
...
* lisp/org.el (org-store-log-note): Ignore empty log buffers.
The regression was introduced in
f776e65373
. From then, (org-split-string
"") no longer returns nil.
Suggested-by: Dale Sedivec <dale@codefu.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00013.html >
2017-08-01 20:14:23 +02:00
Jay Kamat
0c1b4da1f6
ob-C.el: Add support for specifying namespaces in C/C++
...
* lisp/ob-C.el (org-babel-C-expand-C): Add a :namespaces export option
to C++ org babel blocks. Namespaces specified here will be added to
the file in the format 'using namespace %s;'. Multiple namespaces
can be specified, separated by spaces.
TINYCHANGE
2017-08-01 10:20:15 +02:00
Nicolas Goaziou
27e5beaa64
org-clock: Do not inhibit logging with `org-clock-out-switch-to-state'
...
* lisp/org-clock.el (org-clock-out): Do not inhibit logging.
Logging is not inhibited when using `org-clock-in-switch-to-state'.
Reported-by: Рома Рудаков <phentagram@gmail.com>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00473.html
2017-07-28 14:50:36 +02:00
Nicolas Goaziou
90f606d9c2
org-macs: Fix `org-string-width' with `display' property
...
* lisp/org-macs.el (org-string-display): New function.
(org-string-width): Use new function.
* testing/lisp/test-org-macs.el: New file.
2017-07-28 12:15:47 +02:00
Nicolas Goaziou
e79b0bd9f3
Merge branch 'maint'
2017-07-28 10:15:35 +02:00
Nicolas Goaziou
808089ee04
`org-forward/backward-paragraph' do not error at buffer boundaries
...
* lisp/org.el (org-forward-paragraph):
(org-backward-paragraph): Do not error at buffer boundaries.
Reported-by: Omar Antolín Camarena <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00478.html >
2017-07-28 10:07:53 +02:00
Nicolas Goaziou
648b12d57d
Remove `org-dwidth' and `org-dwidth-n' properties
...
* lisp/org.el (org-raise-scripts):
(org-display-custom-time): Remove `org-dwidth' and `org-dwidth-n'
properties.
2017-07-27 15:32:06 +02:00
Nicolas Goaziou
9a60db0ec3
Move `org-string-width' to "org-macs.el"
...
* lisp/org.el (org-string-width): Move from here...
* lisp/org-macs.el (org-string-width): ... to here.
2017-07-27 15:23:31 +02:00