Paul Eggert
c856b34bd1
Backport commit bc2a93d5b from Emacs
...
* lisp/org.el (org-increase-number-at-point)
(org-fill-line-break-nobreak-p):
Fix regular expression typos.
Fix more regular expression typos
bc2a93d5b7c3d749b31927452e31b32bdb1b9108
Paul Eggert
Mon Mar 18 17:02:29 2019 -0700
2019-03-24 20:35:02 -04:00
Nicolas Goaziou
3a2ef56195
Fix last commit
...
* lisp/org.el (org-dynamic-block-define): Fix match.
2019-03-22 18:36:02 +01:00
Nicolas Goaziou
6c88d8e406
Fix multiple calls to `org-dynamic-block-alist'.
...
* lisp/org.el (org-dynamic-block-define): Update entry instead of
piling up entries of the same type.
2019-03-22 18:32:51 +01:00
Nicolas Goaziou
a39ee98873
Turn `org-dynamic-block-alist' into a defvar
...
* lisp/org.el (org-dynamic-block-alist): Make it a defvar. Update docstring.
2019-03-22 18:32:40 +01:00
Kyle Meyer
c2f3f1912e
Merge branch 'maint'
2019-03-17 22:56:24 -04:00
Paul Eggert
7c9bfa142f
Backport commit 3739d51ef from Emacs
...
* lisp/org-agenda.el (org-agenda):
* lisp/org-clock.el (org-clock-out, org-clock-display):
* lisp/org.el (org-refile):
Don’t trust arbitrary strings to not contain "%" or "`" in
(message (concat STRING1 STRING2 ...)).
Be safer about "%" in message formats
3739d51ef3b935b30e40ba4534fe362bc685865f
Paul Eggert
Thu Mar 7 09:05:56 2019 -0800
2019-03-17 22:52:48 -04:00
Paul Eggert
602f2280e3
Backport commit 3c94c7bc0 and db9c924d3 from Emacs
...
* lisp/ob-core.el (org-babel-string-read):
* lisp/org-agenda.el:
(org-agenda-add-entry-to-org-agenda-diary-file):
* lisp/org-element.el (org-element-keyword-parser):
* lisp/org-list.el (org-list-indent-item-generic):
* lisp/org-mhe.el (org-mhe-get-message-folder-from-index):
* lisp/org-mobile.el (org-mobile-apply):
* lisp/org-mouse.el (org-mouse-context-menu):
* lisp/org-plot.el (org-plot/gnuplot):
* lisp/org-protocol.el (org-protocol-flatten-greedy):
* lisp/org-table.el (org-table-copy-down)
(org-table-formula-make-cmp-string)
(org-table-get-stored-formulas, org-table-recalculate)
(org-table-edit-formulas):
* lisp/org.el (org-translate-link-from-planner)
(org-fill-line-break-nobreak-p):
* lisp/ox-ascii.el (org-ascii-item):
* lisp/ox-latex.el (org-latex-clean-invalid-line-breaks):
* lisp/ox.el (org-export-expand-include-keyword):
Fix regular-expression infelicities and typos.
Fix regular-expression glitches and typos
3c94c7bc02fcacb4a101188dddb0c44d53444178
Paul Eggert
Mon Mar 4 18:00:58 2019 -0800
More regexp corrections and tweaks
db9c924d3d53f46846ad8fd74a5d08f4586a520e
Paul Eggert
Fri Mar 8 09:09:40 2019 -0800
Note(km): These two commits are ported together because, with respect
to Org files, db9c924d3 is a fix of an error from 3c94c7bc0.
2019-03-17 22:52:27 -04:00
Nicolas Goaziou
ce1681b597
Fix `org-offer-links-in-entry'
...
* lisp/org.el (org-offer-links-in-entry): Fix match groups.
Reported-by: Bernt Hansen <bernt@norang.ca>
<http://lists.gnu.org/r/emacs-orgmode/2019-03/msg00192.html >
2019-03-16 18:05:50 +01:00
Nicolas Goaziou
bab7dcbee8
Fix link fontification
...
* lisp/org.el (org-activate-links): Stop at paragraph boundaries.
2019-03-16 13:56:42 +01:00
Nicolas Goaziou
98475b32d8
Move table-related variables and functions into "org-table"
...
Slightly re-organize file.
2019-03-15 00:15:30 +01:00
Nicolas Goaziou
b1429cdfe0
Fix link fontification
...
* lisp/org.el (org-activate-links): Display description when
available.
Reported-by: Marco Wahl <marcowahlsoft@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-03/msg00117.html >
2019-03-12 00:05:33 +01:00
Nicolas Goaziou
2b00d62816
Change bracket link escape syntax
...
* contrib/lisp/org-link-edit.el (org-link-edit--link-data):
* lisp/ob-tangle.el (org-babel-tangle-comment-links): Update match-group.
(org-babel-detangle): Remove unnecessary `org-link-escape' call.
(org-babel-tangle-jump-to-org): Update match group.
(org-link-url-hexify):
(org-link-escape-chars): Remove variables.
* lisp/ol.el (org-link--decode-compound): Renamed from
`org-link--unescape-compound'.
(org-link--decode-single-byte-sequence): Renamed from
`org-link--unescape-single-byte-sequence'.
(org-link-make-regexps): Update `org-link-bracket-re' syntax.
(org-link-encode): New function, renamed from `org-link-escape'.
(org-link-decode): New function, renamed from `org-link-unescape'.
(org-link-escape):
(org-link-unescape): Use new escape syntax.
(org-link-make-string): Apply new escaping rules.
(org-link-display-format):
(org-insert-link): Update match group.
* lisp/org-agenda.el (org-diary):
(org-agenda-format-item):
(org-agenda-to-appt): Update match group.
* lisp/org-clock.el (org-clocktable-write-default): Update match group.
* lisp/org-element.el (org-element-link-parser): Update match group.
* lisp/org-mobile.el (org-mobile-escape-olp):
(org-mobile-locate-entry): Apply function renaming.
* lisp/org-protocol.el (org-protocol-split-data):
(org-protocol-parse-parameters): Apply function renaming.
* lisp/org.el (org-refile): Update match group.
* testing/README (Interactive testing from within Emacs): Fix
examples.
* testing/lisp/test-ol.el (test-ol/encode): Merge old escape tests.
(test-ol/decode): Merge old unescape tests.
(test-ol/escape):
(test-ol/unescape):
(test-ol/make-string): New tests.
* testing/lisp/test-org-clock.el (test-org-clock/clocktable/link):
* testing/lisp/test-org.el (test-org/custom-id):
(test-org/fuzzy-links):
* testing/lisp/test-ox.el (test-org-export/resolve-fuzzy-link): Update
tests.
2019-03-10 18:00:36 +01:00
Nicolas Goaziou
6c9d0e86b1
Fix function declarations
2019-03-10 18:00:36 +01:00
Nicolas Goaziou
9cf2040313
Move `org-replace-escapes' into "org-macs.el"
...
* lisp/org.el (org-replace-escapes): Move function...
* lisp/org-macs.el: ...there.
2019-03-10 18:00:36 +01:00
Nicolas Goaziou
ccfea3d8e5
Move `org-fill-template' into "org-macs.el"
...
* lisp/org.el (org-fill-template): Move function
* lisp/org-macs.el: ...there.
2019-03-10 18:00:36 +01:00
Nicolas Goaziou
499c0a50cc
Prefix link-related libraries filenames with "ol"
...
* lisp/org.el (org-modules): Update provided symbols.
2019-03-10 18:00:36 +01:00
Nicolas Goaziou
a486d9cbd7
Move link-related core functions out of "org.el"
...
* contrib/lisp/org-wl.el (org-wl-store-link-message):
* lisp/Makefile (clean-install):
* lisp/ob-core.el (org-link-bracket-re):
(org-babel-open-src-block-result):
(org-babel-read-element):
(org-babel-read-link):
(org-babel-result-end):
* lisp/ob-tangle.el (org-link-bracket-re):
(org-babel-tangle-single-block):
(org-link-analytic-bracket-re):
(org-babel-detangle):
(org-babel-tangle-jump-to-org):
* lisp/ol.el:
* lisp/org-agenda.el (org-agenda-get-some-entry-text):
(org-diary):
(org-agenda-format-item):
(org-agenda-open-link):
(org-agenda-switch-to):
(org-agenda-to-appt):
* lisp/org-bbdb.el (org-bbdb-store-link):
* lisp/org-bibtex.el (org-bibtex-store-link):
* lisp/org-capture.el (org-capture-fill-template):
* lisp/org-clock.el (org-clocktable-write-default):
(org-clock-get-table-data):
* lisp/org-compat.el (org-doi-server-url):
(org-email-link-description-format):
(org-make-link-description-function):
(org-from-is-user-regexp):
(org-descriptive-links):
(org-url-hexify-p):
(org-context-in-file-links):
(org-keep-stored-link-after-insertion):
(org-display-internal-link-with-indirect-buffer):
(org-confirm-shell-link-function):
(org-confirm-shell-link-not-regexp):
(org-confirm-elisp-link-function):
(org-confirm-elisp-link-not-regexp):
(org-file-complete-link):
(org-email-link-description):
(org-make-link-string):
(org-store-link-props):
(org-add-link-props):
(org-make-link-regexps):
(org-angle-link-re):
(org-plain-link-re):
(org-bracket-link-regexp):
(org-bracket-link-analytic-regexp):
(org-any-link-re):
* lisp/org-docview.el (org-docview-store-link):
(org-docview-complete-link):
* lisp/org-element.el (org-element-link-parser):
* lisp/org-eshell.el (org-eshell-store-link):
* lisp/org-eww.el (org-eww-store-link):
(org-eww-copy-for-org-mode):
* lisp/org-footnote.el (org-footnote-next-reference-or-definition):
* lisp/org-gnus.el (org-gnus-article-link):
(org-gnus-store-link):
* lisp/org-id.el (org-id-store-link):
* lisp/org-info.el (org-info-store-link):
* lisp/org-irc.el (org-irc-erc-store-link):
* lisp/org-mhe.el (org-mhe-store-link):
* lisp/org-pcomplete.el (pcomplete/org-mode/searchhead):
* lisp/org-protocol.el (org-protocol-do-capture):
* lisp/org-rmail.el (org-rmail-store-link):
* lisp/org-w3m.el (org-w3m-store-link):
(org-w3m-copy-for-org-mode):
2019-03-10 18:00:27 +01:00
Nicolas Goaziou
30e5b846b4
Merge branch 'maint'
2019-03-09 11:01:05 +01:00
memeplex
d313b24991
Avoid extra space when removing state
...
* lisp/org.el (org-todo): check if org-string-nw-p instead of non nil.
2019-03-09 11:00:25 +01:00
Kyle Meyer
cded785a6a
Merge branch 'maint'
2019-03-03 22:55:07 -05:00
Paul Eggert
a6cead0d21
Backport commit 476066e89 from Emacs
...
* lisp/org-clock.el (org-clock-out):
* lisp/org.el (org-evaluate-time-range):
Avoid double-rounding of time-related values. Simplify.
* lisp/org-clock.el (org-resolve-clocks-if-idle):
Use time-since instead of open-coding most of it.
* lisp/org-agenda.el (org-agenda-show-clocking-issues):
* lisp/org-capture.el (org-capture-set-target-location):
* lisp/org-table.el (org-table-sum):
* lisp/org.el (org-babel-load-file, org-2ft, org-time-stamp)
(org-read-date-analyze, org-time-stamp-to-now):
Simplify.
Note(km): Many of the changes from 476066e89 have been dropped for
compatibility with older Emacsen.
Avoid some double-rounding of Lisp timestamps
476066e89d6f0bb87220da690b8a476bf9655b80
Paul Eggert
Fri Feb 22 18:33:57 2019 -0800
2019-03-03 22:49:42 -05:00
Nicolas Goaziou
344ed4c278
Merge branch 'maint'
2019-02-28 14:39:54 +01:00
Feng Shu
69c211d154
Let radio target works well with Chinese
...
* lisp/org.el (org-update-radio-target-regexp): Let radio target works well with Chinese.
There is no need to force split words with the help
of space for Chinese, this change let the below
example works well.
<<<天空>>>
我爱天空和大地
^^^^
2019-02-28 14:06:17 +01:00
Nicolas Goaziou
819864aebb
Merge branch 'maint'
2019-02-27 21:56:36 +01:00
Nicolas Goaziou
cc7c4a6732
Rationalize `org-link-(un)escape'
...
* contrib/lisp/org-contacts.el (org-contacts-vcard-format):
* contrib/lisp/org-link-edit.el (org-link-edit--link-data):
* contrib/lisp/org-notmuch.el (org-notmuch-search-store-link):
(org-notmuch-search-follow-link):
(org-notmuch-tree-follow-link):
* lisp/org-docview.el (org-docview-export):
* lisp/org-element.el (org-element-link-parser):
* lisp/org-lint.el (org-lint-link-to-local-file):
* lisp/org-protocol.el (org-protocol-split-data):
(org-protocol-parse-parameters):
* lisp/org.el (org-open-at-point):
(org-display-inline-images):
* lisp/ox-ascii.el (org-ascii-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex--inline-image):
(org-latex-link):
* lisp/ox-publish.el (org-publish-resolve-external-link):
* lisp/ox.el (org-export-custom-protocol-maybe):
(org-export-resolve-fuzzy-link): Do not call `org-link-unescape' when
the link is obtained through the parser or as a user input.
* doc/org-manual.org (Link Format): Document escape syntax.
See <http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00320.html >
2019-02-27 20:22:51 +01:00
Nicolas Goaziou
b139e1531a
Merge branch 'maint'
2019-02-25 02:04:29 +01:00
Nicolas Goaziou
95e1f844ac
Fix `org-refile' when logging multiple entries
...
* lisp/org.el (org-log-refile): Improve docstring.
(org-refile): Record information for every headline in the region.
Reported-by: "Eugene Sharygin" <eush77@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00315.html >
2019-02-25 02:02:28 +01:00
Nicolas Goaziou
2097f5488b
Merge branch 'maint'
2019-02-22 19:58:25 +01:00
memeplex
d6fcfc06ce
Fix fast todo selection menu alignment
...
* lisp/org.el (org-fast-todo-selection): Avoid lines with just a
closing delimiter.
2019-02-22 19:38:15 +01:00
Nicolas Goaziou
9eddf47059
Merge branch 'maint'
2019-02-22 15:16:25 +01:00
Nicolas Goaziou
93c3d9d281
Fix `org-display-inline-images' with "clickable images"
...
* lisp/org.el (org-display-inline-images): Even though Org syntax
doesn't support nested links, display an image when the function is
called on a link that contains a single file name in its
description.
Reported-by: "Dietrich Foethke" <foethke@web.de>
<http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00280.html >
2019-02-22 15:15:20 +01:00
Nicolas Goaziou
e9d4eb0147
Merge branch 'maint'
2019-02-18 21:41:37 +01:00
Piet van Oostrum
08cb207b38
Add missing `interactive` spec to `org-show-all'
...
* lisp/org.el (org-show-all): Add missing `interactive` spec to
`org-show-all'.
TINYCHANGE
2019-02-18 21:40:57 +01:00
Nicolas Goaziou
7e98c5c4cc
Merge branch 'maint'
2019-02-15 22:47:53 +01:00
Nicolas Goaziou
6872088c7a
Prevent spurious newline characters when inserting a heading
...
* lisp/org.el (org-insert-heading): Do not insert spurious newline
characters.
* testing/lisp/test-org.el (test-org/insert-heading): Update tests.
Reported-by: Leo Vivier <zaephon@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00128.html >
2019-02-15 22:47:28 +01:00
Nicolas Goaziou
38121248c9
Merge branch 'maint'
2019-02-15 00:22:03 +01:00
Nicolas Goaziou
f9015b4bbf
Fix last commit
...
* lisp/org-clock.el (org-clock-out-if-current): Autoload function.
* lisp/org.el (org-todo): Do not call `org-clock-out-if-current' if
`org-clock' is not loaded yet.
2019-02-15 00:20:40 +01:00
Nicolas Goaziou
d783422498
Merge branch 'maint'
2019-02-14 15:07:07 +01:00
Nicolas Goaziou
8fc22d464d
Fix `org-clock-out-when-done' in a narrowed buffer
...
* lisp/org-clock.el (org-clock-out-if-current): Ignore narrowing.
* lisp/org.el (org-todo): Call directly previous function instead of
relying on a hook.
Reported-by: Leo Vivier <leo.vivier@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00132.html >
2019-02-14 15:03:37 +01:00
Nicolas Goaziou
0ceb59c377
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2019-02-14 01:16:16 +01:00
Nicolas Goaziou
6d9022df22
Make LaTeX preview toggle more useful and predictable
...
* lisp/org.el (org-remove-highlights-with-change):
(org-mode): Update.
(org--format-latex-make-overlay):
(org--list-latex-overlays): Remove functions.
(org--make-preview-overlay):
(org-clear-latex-preview):
(org--latex-preview-region):
(org-latex-preview): New functions.
(org-format-latex): Use new function
* lisp/org-compat.el (org-toggle-latex-fragment):
(org-remove-latex-fragment-image-overlays): Deprecate.
* doc/org-manual.org (Previewing LaTeX fragments): Update
documentation about `org-latex-preview'.
See <http://lists.gnu.org/archive/html/emacs-orgmode/2019-02/msg00138.html >.
2019-02-14 00:14:25 +01:00
Marco Wahl
ba974fecf9
org: Refine open at point for tags to use just the tag at point
...
* lisp/org.el (org-open-at-point): On a tag open a tags view for just
the tag at point. Recent behavior for multiple tags was to open a
tags view for the complete tag string.
2019-02-13 23:29:26 +01:00
Nicolas Goaziou
3abedb8b64
Bump version keyword
2019-02-13 15:43:29 +01:00
Nicolas Goaziou
613b480db4
Merge branch 'maint'
2019-02-13 13:05:54 +01:00
memeplex
0b148ba706
Fix fast tag selection menu alignment
...
* lisp/org.el (org-fast-tag-selection): Avoid lines with just
a closing delimiter. Also correctly align grouped and ungrouped tags.
2019-02-13 13:05:33 +01:00
Kyle Meyer
f362df7eb7
Merge branch 'maint'
2019-02-12 19:55:26 -05:00
Kyle Meyer
6a5be09c1d
Restore some current-time to nil changes
...
* lisp/org-colview.el (org-columns-compute-all):
* lisp/org-timer.el (org-timer-start):
(org-timer-pause-or-continue):
(org-timer-seconds):
* lisp/org.el (org-read-date-analyze): Favor nil argument to
explicitly passing current-time result to float-time and decode-time.
Most of these "(current-time) => nil" changes were made in the Emacs
codebase, but we stayed with the original state because we relied on
explicitly overriding current-time in the tests. As of the last
commit, we no longer need to do this and can use org-test-at-time
instead.
2019-02-12 19:46:03 -05:00
Nicolas Goaziou
9b3ca51fa4
Merge branch 'maint'
2019-02-09 18:53:28 +01:00
Nicolas Goaziou
b929c3e5e4
Fix typo in docstring
...
* lisp/org.el (org-get-tags): Fix typo in docstring.
2019-02-09 18:52:54 +01:00
Nicolas Goaziou
230cc1ee07
Merge branch 'maint'
2019-02-06 19:34:10 +01:00
Nicolas Goaziou
03d7441813
Fix `org-edit-special' on INCLUDE with additional parameters
...
* lisp/org.el (org-edit-special): Correctly parse filenames with
quotes and additional parameters.
Reported-by: Joon Ro <joon.ro@outlook.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00066.html >
2019-02-06 19:32:30 +01:00
Nicolas Goaziou
0b5ce28f1e
Fix :package-version value
...
* lisp/org.el (org-email-link-description-format):
Fix :package-version value.
2019-02-05 09:17:51 +01:00
Nicolas Goaziou
96cc9b58c2
Bump Org version
2019-02-03 14:54:58 +01:00
Nicolas Goaziou
ce48c6b0d1
Merge branch 'maint'
2019-02-03 14:42:18 +01:00
Nicolas Goaziou
70c90c2cb5
Fix nested VISIBILITY property
...
* lisp/org.el (org-set-visibility-according-to-property): Fix nested
VISIBILITY property. Small refactoring.
* testing/lisp/test-org.el (test-org/set-visibility-according-to-property):
Add test.
Reported-by: Michael Maurer <maurer.michael@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00402.html >
2019-02-03 14:23:44 +01:00
Kyle Meyer
646d4a5fe9
Merge branch 'maint'
2019-01-31 23:04:06 -05:00
Kyle Meyer
af7795533a
Revert "(current-time) => nil" for Emacs 24 compatibility
...
* lisp/org-clock.el (org-clock-resolve-clock):
(org-clock-resolve):
(org-resolve-clocks-if-idle):
* lisp/org-element.el (org-element--cache-interrupt-p):
(org-element--cache-sync):
* lisp/org-habit.el (org-habit-insert-consistency-graphs):
* lisp/org-indent.el (org-indent-add-properties):
* lisp/org-timer.el (org-timer-show-remaining-time):
* lisp/org.el (org-babel-load-file):
(org-current-time):
(org-today):
(org-auto-repeat-maybe): Revert nil to (current-time) replacement for
compatibility with Emacs 24.
This reverts many changes introduced by eb10ad936
(Backport commit
c75f505de from Emacs, 2017-10-20).
Reported-by: Samuel Wales <samologist@gmail.com>
<https://lists.gnu.org/archive/html/emacs-orgmode/2019-01/msg00427.html >
2019-01-31 23:03:10 -05:00
Nicolas Goaziou
683df456a4
org-list: Remove fancy description list indentation
...
* lisp/org-list.el (org-list-description-max-indent): Remove variable.
(org-list-item-body-column): No longer indent specially description
items.
* lisp/org.el (org-indent-line): Prune reference to removed variable
in docstring.
Special indentation on description items breaks indentation in
sub-items.
2019-01-31 00:26:00 +01:00
Nicolas Goaziou
ee29cdc40e
Merge branch 'maint'
2019-01-30 22:36:14 +01:00
Nicolas Goaziou
a6adc9831d
Add new `org-todo-repeat-hook'
...
* lisp/org.el (org-todo-repeat-hook): New variable.
(org-auto-repeat-maybe): Use it.
See <http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00102.html >.
2019-01-30 22:35:30 +01:00
Nicolas Goaziou
5e47e49832
Revert actionable repeaters in inactive timestamps
...
* lisp/org.el (org-repeat-re): Repeaters are for active timestamps
only.
* testing/lisp/test-org.el (test-org/auto-repeat-maybe): Update test.
Reported-by: cesar mena <cesar.mena@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00095.html >
2019-01-30 22:19:28 +01:00
Nicolas Goaziou
5fe9e6cbea
Extend pcomplete binding to C-M-i
...
* lisp/org.el (org-mode-map): Add TAB equivalent to <tab> binding.
Reported-by: Johannes Altmanninger <aclopte@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00373.html >
2019-01-29 10:06:19 +01:00
Marco Wahl
ed7ea512c2
org: Fix match of todo items
...
* lisp/org.el (org-show-todo-tree): Don't match headlines that start
with a todo kwd as prefix.
2019-01-25 10:32:07 +01:00
Nicolas Goaziou
deb5c4f39a
Merge branch 'maint'
2019-01-24 15:05:13 +01:00
Nicolas Goaziou
24030ef62b
Fix consecutive radio links
...
* lisp/org.el (org-activate-target-links): Properly match consecutive
radio links.
Reported-by: Jay Dresser <jay@jaydresser.us>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00327.html >
2019-01-24 15:03:47 +01:00
Yasushi SHOJI
4a076ed545
Allow cloning subtrees while shifting them backward in time
...
* lisp/org.el (org-clone-subtree-with-time-shift): Accept a negative
value to shift the timestamp backward in time.
* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add test.
Reported-by: Scott Randby <srandby@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00151.html >
Signed-off-by: Yasushi SHOJI <yasushi.shoji@gmail.com>
2019-01-21 18:47:49 +01:00
Kyle Meyer
baa98a4a6f
babel: Fix incorrect merge resolution from ba321d0e4
...
* lisp/org.el (org-babel-load-file): Fix type error introduced by
merge ba321d0e4
.
Reported-by: Gregor Zattler <telegraph@gmx.net>
<https://lists.gnu.org/archive/html/emacs-orgmode/2019-01/msg00208.html >
2019-01-14 17:09:03 -05:00
Kyle Meyer
ba321d0e44
Merge branch 'maint'
2019-01-13 15:14:37 -05:00
Paul Eggert
d64c9a996b
Backport commit 662bee7d7 from Emacs
...
* lisp/ob-eval.el (org-babel--shell-command-on-region):
* lisp/org-attach.el (org-attach-commit):
* lisp/org-macro.el (org-macro-initialize-templates):
* lisp/org.el (org-babel-load-file)
(org-file-newer-than-p):
* lisp/ox-html.el (org-html-format-spec):
* lisp/ox-publish.el (org-publish-find-date)
(org-publish-cache-ctime-of-src):
Prefer (file-attribute-size A) to (nth 7 A), and similarly
for other file attributes accessors.
* lisp/ox-publish.el (org-publish-cache-ctime-of-src):
Prefer float-time to doing time arithmetic by hand.
file-attributes cleanup
662bee7d70ccd3903e123b08c7ec9108a1a2ce0b
Paul Eggert
Sun Sep 23 18:32:59 2018 -0700
2019-01-13 12:43:04 -05:00
Paul Eggert
28d2c81709
Backport commit f18af6cd5 from Emacs
...
* lisp/org.el:
* lisp/ox-publish.el:
Prefer ash to lsh when either will do.
Audit use of lsh and fix glitches
f18af6cd5cb7dbbf7420ec2d3efed4e202c4f0dd
Paul Eggert
Tue Aug 21 13:44:32 2018 -0700
2019-01-13 12:43:04 -05:00
Glenn Morris
f73cc4811b
Backport commit 18de2ada2 from Emacs
...
* lisp/org.el (org-CUA-compatible)
(org-popup-calendar-for-date-prompt):
Move aliases before targets, to silence new compiler warning.
More alias-related tedium
18de2ada243653ece98b18044233e5d29eee5903
Glenn Morris
Fri Apr 20 18:55:04 2018 -0400
2019-01-13 12:43:04 -05:00
Glenn Morris
3d11e4c69b
Backport commit 9c3eeba4d from Emacs
...
* lisp/org-agenda.el (org-agenda-search-view-search-words-only)
(org-agenda-remove-tags-when-in-prefix)
(org-agenda-align-tags-to-column, org-agenda-keymap):
* lisp/org.el (org-special-ctrl-a)
(org-log-state-notes-into-drawer)
(org-agenda-multi-occur-extra-files):
Move aliases before targets, to silence new compiler warning.
The tedious game of whack-a-mole with compiler warnings continues
9c3eeba4db26ddaeead100beea7a96f9fa640918
Glenn Morris
Fri Apr 20 18:34:39 2018 -0400
2019-01-13 12:43:04 -05:00
Glenn Morris
16c8187db1
Backport commit d5f6ff99c from Emacs
...
* lisp/org.el (image-refresh):
* lisp/ox-odt.el (clear-image-cache, image-size): Declare.
Quieten without-x org compilation
d5f6ff99c2b594919931b277a2d94d3a289ca764
Glenn Morris
Wed Feb 28 16:55:41 2018 -0500
2019-01-13 12:43:04 -05:00
Kyle Meyer
6df3e8880e
Partially revert backport of c75f505de
...
* lisp/org-colview.el (org-columns-compute-all):
* lisp/org-timer.el (org-timer-start):
(org-timer-pause-or-continue):
(org-timer-seconds):
(org-timer-set-timer):
* lisp/org.el (org-read-date-analyze): Restore use of `current-time`
for testing purposes.
In these spots, we call (current-time) so that it can be overriden in
tests. Add a comment about this in the cases that don't have one.
2019-01-13 12:43:04 -05:00
Paul Eggert
eb10ad9360
Backport commit c75f505de from Emacs
...
* lisp/org-agenda.el (org-agenda-to-appt):
* lisp/org-clock.el (org-clock-resolve-clock)
(org-clock-resolve, org-resolve-clocks-if-idle):
* lisp/org-colview.el (org-columns-edit-value, org-columns)
(org-agenda-columns):
* lisp/org-element.el (org-element--cache-interrupt-p)
(org-element--cache-sync):
* lisp/org-habit.el (org-habit-get-faces)
(org-habit-insert-consistency-graphs):
* lisp/org-indent.el (org-indent-add-properties):
* lisp/org-timer.el ((org-timer-show-remaining-time):
* lisp/org.el (org-babel-load-file, org-current-time)
(org-today, org-auto-repeat-maybe)
(org-small-year-to-year, org-goto-calendar):
* lisp/ox.el (org-export-insert-default-template):
Use nil instead of (current-time) where either will do, as nil is
a bit more efficient and should have less timing error.
Prefer nil to (current-time) when either works
c75f505dea6a560b825384cf3d277690f86840bf
Paul Eggert
Fri Oct 20 19:42:23 2017 -0700
Note(km): The changes that will reverted in the next commit have been
dropped from the ChangeLog entries above.
2019-01-13 12:43:03 -05:00
Kyle Meyer
6972cce38b
Merge branch 'maint'
2019-01-13 00:13:46 -05:00
Kyle Meyer
87c4635c88
Fix docstring typo
...
* lisp/org.el (org-insert-link): Fix docstring typo.
2019-01-12 23:47:36 -05:00
Nicolas Goaziou
871119986a
Merge branch 'maint'
2019-01-12 11:50:37 +01:00
Nicolas Goaziou
f9596eb472
Fix following timestamp in planning lines
...
* lisp/org.el (org-open-at-point): Open calendar when called on
a timestamp in a planning line.
Reported-by: Bob Hepple <bob.hepple@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00158.html >
2019-01-12 11:49:50 +01:00
Kaushal Modi
8a5d8f79a1
Merge branch 'maint'
2019-01-08 11:35:34 -05:00
Kaushal Modi
34e5dcfb06
Fix the order of org-get-tags collected tags from #+filetags
...
* lisp/org.el (org-get-tags): Now org-get-tags returns tags list with
tags from #+filetags in the beginning.
* testing/lisp/test-org.el (test-org/get-tags): Add test.
Fixes regression caused by commit
<5e27b2fd32
>.
Bug reported in
<https://lists.gnu.org/r/emacs-orgmode/2019-01/msg00052.html >.
2019-01-08 11:29:58 -05:00
Marco Wahl
2862bea69b
org: Option for user to force non fast tag selection interface
...
* lisp/org.el (org-set-tags-command): Disable the fast tag selection
interface when the command is prefixed by C-u C-u.
2019-01-05 13:16:31 +01:00
Marco Wahl
99f0c53418
Merge branch 'maint'
2019-01-05 11:41:57 +01:00
Marco Wahl
e8ad394c74
org: Fix docstring
...
* lisp/org.el (org-loop-over-headlines-in-active-region): Complete the
list of concerned functions.
2019-01-05 11:35:26 +01:00
Kaushal Modi
b334a59902
Merge branch 'maint'
2019-01-04 08:59:10 -05:00
Kaushal Modi
539091799b
Fix C-u M-x org-align-tags not aligning all tags in buffer
...
* lisp/org.el (org-align-tags): Move point to the beginning of the
visible buffer first before attempting to look for Org headline
tags.
* testing/lisp/test-org.el (test-org/tag-align): Add test.
Fixes a regression in
1615261cdc
.
Bug reported in
<https://lists.gnu.org/r/emacs-orgmode/2019-01/msg00051.html >.
2019-01-04 08:57:10 -05:00
memeplex
7db8ebc1df
Add option to natively fontify LaTeX snippets and environments
...
* lisp/org.el: add a 'native value to org-highlight-latex-and-related
that allows to use tex native font locking by means of
org-src-font-lock-fontify-block.
* etc/ORG-NEWS: add note about new feature.
2019-01-04 14:22:11 +01:00
memeplex
0e26444fe0
Use xcolor for all latex preview converters
...
* lisp/org.el: remove :use-xcolor option and make dvipng use xcolor
since usage of CLI fg and bg color args is incompatible with docs
that themselves use xcolor (e.g. through tikz).
* etc/ORG-NEWS: add incompatible change note.
2019-01-04 14:20:23 +01:00
Kyle Meyer
23ef240aa6
Merge branch 'maint'
2019-01-03 20:43:15 -05:00
Van L
98407c111d
Fix two docstring typos
...
* lisp/org.el (org-read-date-force-compatible-dates): Fix docstring
typos.
TINYCHANGE
2019-01-03 20:43:01 -05:00
stardiviner
34b71a0ca9
Add a dispatcher command for inserting dynamic blocks
...
* lisp/org.el (org-dynamic-block-insert-dblock,
org-dynamic-block-alist, org-dynamic-block-functions,
org-dynamic-block-types, org-dynamic-block-define,
org-dynamic-block-function): New variables, New functions.
* lisp/org-keys.el (org-dynamic-block-insert-dblock): Add binding for
the function.
(org-clock-report, org-columns-insert-dblock): Remove function
keybindings. Mark them as obsolete.
* doc/org-manual.org (Dynamic Blocks): : Add manual for dispatch
command `org-dynamic-block-insert-dblock'.
* testing/lisp/test-org-clock.el: New test.
2019-01-02 15:55:51 +01:00
Nicolas Goaziou
43fbf8a540
Fix last commit
...
* lisp/org.el (org-do-latex-and-related): Silence byte-compiler.
2019-01-01 17:40:38 +01:00
Carlos Pita
80268c0e07
Fix fontification of LaTeX environments
...
* lisp/org.el (org-fontify-extend-region): New function.
(org-compute-latex-and-related-regexp):
(org-do-latex-and-related): Revert recent changes.
(org-set-font-lock-defaults): Use new function.
2019-01-01 17:31:18 +01:00
Nicolas Goaziou
b35bda573a
Merge branch 'maint'
2019-01-01 17:17:59 +01:00
Nicolas Goaziou
284799a2e8
Fix `org-insert-link' with nil description
...
* lisp/org.el (org-insert-link): DESC may be nil; do not use
`string-match' directly on it.
2019-01-01 17:16:50 +01:00
Bastien
7a22b8f93b
Merge branch 'maint'
2019-01-01 11:54:01 +01:00
Bastien
f584d37a67
Update copyright year
2019-01-01 11:50:56 +01:00
Nicolas Goaziou
974bfcb0fa
Merge branch 'master' into next
2018-12-18 01:07:47 +01:00
Nicolas Goaziou
abbe5d3958
Fix a docstring
...
* lisp/org.el (org-store-link-functions): Fix docstring.
2018-12-18 01:07:21 +01:00
Nicolas Goaziou
dd26f03e18
Merge branch 'master' into next
2018-12-16 11:14:16 +01:00