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
Nicolas Goaziou
6656f11596
Fix typo
...
* lisp/org.el (org-do-latex-and-related): Fix typo.
2018-12-16 11:13:49 +01:00
Nicolas Goaziou
cc594e6fba
Merge branch 'master' into next
2018-12-16 11:09:35 +01:00
Nicolas Goaziou
af3e2b1856
Fix fontification of LaTeX elements (take two)
...
* lisp/org.el (org-do-latex-and-related): Fix last commit.
2018-12-16 11:08:00 +01:00
Nicolas Goaziou
5da146626d
Merge branch 'master' into next
2018-12-13 21:30:01 +01:00
Nicolas Goaziou
a86b14253b
Fix fontification of LaTeX environments
...
* lisp/org.el (org-compute-latex-and-related-regexp):
(org-do-latex-and-related): Fix fontification of LaTeX environments.
2018-12-13 21:28:14 +01:00
Nicolas Goaziou
4ef9228617
Silence byte-compiler
2018-11-30 21:18:29 +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
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
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
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
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
cd12a9eefe
Merge branch 'master' into next
2018-11-10 20:00:31 +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
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
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
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
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
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
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
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
9d6a9e1739
Merge branch 'master' into next
2018-10-14 09:58:55 +02:00
Nicolas Goaziou
f12f9b4f28
Fix fontification of links within verbatim markup
...
* lisp/org.el (org-do-emphasis-faces): Prevent fontification of links
within verbatim markup.
2018-10-14 09:57:47 +02:00
Nicolas Goaziou
36c7bada28
Merge branch 'master' into next
2018-10-13 16:54:39 +02:00
Michaël Cadilhac
d9fdc204cc
org.el: Fix typo
...
* lisp/org.el (org-enforce-todo-checkbox-dependencies): Fix typo.
TINYCHANGE
2018-10-13 16:54:01 +02:00
Nicolas Goaziou
100541b53c
Bump version keyword to 9.3
2018-10-06 12:12:13 +02:00
Nicolas Goaziou
ffad253307
Merge branch 'master' into next
2018-10-06 09:50:52 +02:00
Nicolas Goaziou
1fbae137da
Silence byte-compiler
2018-10-06 09:50:32 +02:00
Nicolas Goaziou
0954d4c258
Merge branch 'master' into next
2018-10-04 22:52:53 +02:00
Nicolas Goaziou
2ada40b796
Fix `org-paste-subtree' when called at the end of a headline
...
* lisp/org.el (org-paste-subtree): Fix `org-paste-subtree' when called
at the end of a headline.
Reported-by: Dale Sedivec <dale@codefu.org>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00050.html >
2018-10-04 22:50:09 +02:00
Nicolas Goaziou
bb36c0c8ab
Refactor `org-babel-load-file'
...
* lisp/org.el (org-babel-load-file): Refactor code.
2018-10-03 18:44:34 +02:00
Nicolas Goaziou
144c27e39d
org-keys: Extract key bindings into their own library
...
* lisp/org.el (org-replace-disputed):
(org-use-extra-keys):
(org-disputed-keys):
(org-key):
(org-defkey):
(org-use-speed-commands):
(org-speed-commands-user):
(org-follow-link-hook):
(org-tab-follows-link):
(org-return-follows-link):
(org-return-follows-link):
(org-mouse-1-follows-link):
(org-mouse-map):
(org-read-date-minibuffer-local-map):
(org-remap):
(org-speed-commands-default):
(org-print-speed-command):
(org-speed-command-help):
(org-speed-move-safe):
(org-speed-command-activate):
(org-babel-speed-command-activate):
(org-speed-command-hook): Move to "org-keys.el".
* lisp/org-keys.el: New file.
* lisp/ob-keys.el: Remove file.
2018-10-03 18:44:34 +02:00
Nicolas Goaziou
0266c36645
Do not use `org-refresh-effort-properties' when initializing Org
...
* lisp/org.el (org-mode): Do not call `org-refresh-effort-properties'.
(org-set-effort): Avoid using `effort' text property.
* lisp/org-timer.el (org-timer-set-timer): Avoid using
`effort-minutes' text property.
Limit use of `effort' and `effort-minutes' properties to "org-agenda".
2018-10-03 18:44:34 +02:00
Nicolas Goaziou
0dd2985509
`org-fill-paragraph' leaves buffer unmodified when doing nothing
...
* lisp/org.el (org-fill-paragraph): Leave buffer unmodified when
nothing was filled.
* lisp/org-compat.el: Add forward compatibility with `buffer-hash'
function.
2018-10-03 18:44:34 +02:00
Chris Kauffman
09f9507238
Added keybindings for `org-table-move-cell-*' functions
...
* lisp/org.el (org-shiftup):
(org-shiftdown):
(org-shiftright):
(org-shiftleft): Dispatch `org-table-move-cell-*' commands.
2018-10-03 18:44:34 +02:00
Nicolas Goaziou
77aadd569c
Improve a docstring
...
* lisp/org.el (org-complete-tags-always-offer-all-agenda-tags):
Improve docstring.
Reported-by: No Wayman <iarchivedmywholelife@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00027.html >
2018-10-03 12:40:58 +02:00
Marco Wahl
d3e286257b
org: Fix dangling parens in org-info-find-node
2018-10-03 09:21:58 +02:00
Marco Wahl
4ec502fc98
Merge branch 'master' into contextual-docu
2018-10-02 16:34:58 +02:00
Marco Wahl
3be61dff2f
org: Unify a few settings in the org-mode-map
2018-10-02 15:05:59 +02:00
Marco Wahl
9968e66b64
org: Dropped one non-functional keybinding
2018-10-01 23:40:27 +02:00
Marco Wahl
b19e7737dd
org,org-agenda: New: open info depending on context
...
* lisp/org.el (org-info-find-node): Function to jump to info depending
on context. For an org file the context is the element type at point.
2018-10-01 22:47:33 +02:00
Marco Wahl
3f8b1b0265
org: Enable planning lines for special edit
...
* lisp/org.el (org-edit-special): Add a case for element type
'planning.
2018-09-27 13:46:19 +02:00
Marco Wahl
7ae1230816
Merge remote-tracking branch 'origin/master'
2018-09-26 22:22:46 +02:00
Marco Wahl
6e584d06fd
org: Show planning type in prompt when editing
...
* lisp/org.el (org-add-planning-info): Call `org-read-date' with either
DEADLINE or SCHEDULED as value for the prompt.
2018-09-26 22:20:15 +02:00
Marco Wahl
fe72a05ba5
org: Show planning type in prompt when editing
...
* lisp/org.el (org-add-planning-info): Call `org-read-date' with either
DEADLINE or SCHEDULED as value for the prompt.
2018-09-26 14:15:34 +02:00
Nicolas Goaziou
17edaf8c14
"src block" -> "source block" in documentation and comments
...
* etc/ORG-NEWS (Maxima: new headers ~:prologue~ and ~:epilogue~):
(Texinfo exports inline source blocks as ~@code{}~):
(Default lexical evaluation of emacs-lisp source blocks):
* lisp/ob-clojure.el (org-babel-clojure-default-ns):
* lisp/ob-core.el (org-babel-named-src-block-regexp-for-name):
(org-babel-current-src-block-location):
(org-babel-mark-block):
(org-babel-insert-result):
* lisp/ob-emacs-lisp.el (org-babel-default-header-args:emacs-lisp):
* lisp/ob-exp.el (org-babel-exp-process-buffer):
* lisp/ob-lob.el (org-babel-lob-ingest):
* lisp/ob-ref.el:
* lisp/org-element.el (org-element-object-restrictions):
(org-element-src-block-parser):
(org-element-inline-src-block-parser):
* lisp/org-lint.el:
(org-lint--checkers):
* lisp/org-pcomplete.el (pcomplete/org-mode/block-option/src):
* lisp/org-src.el (org-edit-inline-src-code):
* lisp/org.el (org-ctrl-c-ctrl-c):
(org-in-src-block-p):
(org-fill-element):
* lisp/ox-html.el (org-html--textarea-block):
(org-html-format-code):
* lisp/ox-latex.el (org-latex-minted-options):
(org-latex-custom-lang-environments):
* lisp/ox-md.el:
* lisp/ox-odt.el (org-odt-format-code):
* lisp/ox.el (org-export-collect-listings):
* testing/lisp/test-ob-exp.el (ob-exp/src-block-with-affiliated-keyword):
* testing/lisp/test-ob.el (test-ob/preserve-results-indentation):
Correct "src block" occurrences when they do not specifically refer
to the element type `src-block'.
2018-09-20 11:23:49 +02:00
Marco Wahl
13090d114b
org: Add special edit on timestamps
...
* lisp/org.el (org-edit-special): Added a case to call a suitable
function to edit the timestamp at hand.
2018-09-18 17:59:52 +02:00
Nicolas Goaziou
5fe1650034
Fix `org-copy-visible'
...
* lisp/org.el (org-copy-visible): Deactivate region before adding
visible part to kill ring.
See https://lists.gnu.org/archive/html/emacs-devel/2018-09/msg00476.html
2018-09-11 12:06:22 +02:00
Matt Lundin
5e27b2fd32
Ensure that org-get-tags returns all local tags
...
* lisp/org.el: (org-get-tags) Create a clearer separation between
local and inherited tags in the function, so that
org-remove-uninherited tags is only run on inherited tags. This is
important to avoid destroying existing tags when adding new tags.
* testing/lisp/test-org.el: (test-org/get-tags) Add regression test
2018-08-19 10:28:27 +02:00
Nicolas Goaziou
d975b44fd4
Fix `org-kill-line' on tag lines
...
* lisp/org.el (org-kill-line): Preserve tags when `org-special-ctrl-k'
is non-nil.
* testing/lisp/test-org.el (test-org/kill-line): New test.
Reported-by: Matt Lundin <mdl@imapmail.org>
<http://lists.gnu.org/r/emacs-orgmode/2018-07/msg00122.html >
2018-07-17 22:24:01 +02:00
Nicolas Goaziou
d3774fba77
Limit `org-open-at-point'
...
* lisp/org.el (org-open-at-point): Do not open everything that looks
like a link, in particular in verbatim or code objects. However,
still conveniently open links in comments, node properties and
keywords.
2018-07-05 13:35:26 +02:00
Nicolas Goaziou
120f871f41
Small refactoring
...
* lisp/ob-core.el (org-babel-open-src-block-result): Fix docstring,
refactor code.
* lisp/org.el (org-open-at-point): Refactor so as to not call
`org-babel-open-src-block-result' unconditionally.
2018-07-05 13:15:30 +02:00
Nicolas Goaziou
accf99cbc0
Deprecate `org-effort-durations'
...
* lisp/org.el (org-effort-duration): Remove unused variable.
* lisp/org-compat.el (org-effort-durations): Make
`org-effort-duration' an alias for `org-duration-units'.
* lisp/org-clock.el (org-clock-modify-effort-estimate): Fix docstring.
* doc/org-manual.org (Footnotes): Clarify footnote.
The variable is inactive since introduction of "org-duration" library.
2018-06-25 17:13:04 +02:00
Nicolas Goaziou
62dd2cc829
Fix regression in tags alignment
...
* lisp/org.el (org--align-tags-here): Correctly preserve column.
* testing/lisp/test-org.el (test-org/tag-align): Add test.
The regression was introduced in
593058e4a6
.
Reported-by: Bernt Hansen <bernt@norang.ca>
<http://lists.gnu.org/r/emacs-orgmode/2018-06/msg00245.html >
2018-06-22 18:49:11 +02:00
Nicolas Goaziou
593058e4a6
`org-set-tags' modifies buffer only when necessary
...
* lisp/org.el (org--align-tags-here):
(org-set-tags): Modify buffer only when necessary.
* testing/lisp/test-org.el (test-org/set-tags): Add tests.
Reported-by: Allen Li <darkfeline@felesatra.moe>
<http://lists.gnu.org/r/emacs-orgmode/2018-06/msg00242.html >
2018-06-19 09:40:00 +02:00
Nicolas Goaziou
2e1daf14e0
Update "Version" keyword
2018-06-17 10:25:35 +02:00
Christian Schwarzgruber
7fcceecf5d
Improve org-log-reschedule
and `org-log-redeadline' docstrings
...
* lisp/org.el (org-log-reschedule):
(org-log-redeadline): Improve docstring.
TINYCHANGE
2018-06-16 21:51:37 +02:00
Nicolas Goaziou
42a2c248eb
org-capture: Fix completion for properties in capture buffer
...
* lisp/org.el (org-read-property-value):
* lisp/org-capture.el (org-capture-fill-template): Sidestep
`org-set-property'. Use previous function and `org-entry-put'
instead.
Reported-by: Eric Danan <eric.danan@u-cergy.fr>
<http://lists.gnu.org/r/emacs-orgmode/2018-06/msg00061.html >
2018-06-16 17:03:22 +02:00
Nicolas Goaziou
b3981d6ad0
Fix org-metaup' and
org-metadown' on regions
...
* lisp/org.el (org-metaup): Do not leave a character behind when
transposing regions.
(org-metadown): Fix "Transposed regions overlap" error.
Reported-by: Adam Porter <adam@alphapapa.net>
<http://lists.gnu.org/r/emacs-orgmode/2018-06/msg00184.html >
2018-06-15 18:52:09 +02:00
Nicolas Goaziou
956a5a4cb1
Ignore inlinetasks in `org-before-first-heading-p'
...
* lisp/org.el (org-before-first-heading-p): Ignore inlinetasks.
2018-06-13 22:20:27 +02:00
Nicolas Goaziou
f50f373389
Add facility for commit log messages from Org documents
...
* lisp/org-compat.el (org-add-log-current-headline): New function.
* lisp/org.el (org-mode): Use new function.
2018-06-13 22:15:56 +02:00
Nicolas Goaziou
3f26c9bd2e
`org-get-heading' returns nil instead of erroring out
...
* lisp/org.el (org-get-heading): Return nil instead of throwing an
error before first headline.
2018-06-13 22:15:17 +02:00
Nicolas Goaziou
f440ff0a6a
Fix imenu compatibility with non-contiguous structure
...
* lisp/org.el (org-mode): Move imenu compatibility to "org-compat.el".
* lisp/org-compat.el (org-imenu-new-marker): Remove function.
(org-imenu-get-tree): Handle non-contiguous structure.
Reported-by: Thibault Polge <thibault@thb.lt>
<http://lists.gnu.org/r/emacs-orgmode/2018-06/msg00088.html >
2018-06-13 01:13:16 +02:00
Nicolas Goaziou
3745c0af9f
Fix indentation when wrapping a block around a region
...
* lisp/org.el (org-insert-structure-template): Indent like the first
line, not the line the point happens to be on.
Reported-by: stardiviner <numbchild@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-06/msg00107.html >
2018-06-12 09:03:33 +02:00
Nicolas Goaziou
ed7d1dc6d7
Fix quirks in `org-insert-structure-template'
...
* lisp/org.el (org-insert-structure-template): Fix some issues.
Refactor code.
* testing/lisp/test-org.el (test-org/insert-structure-template):
Update tests.
Reported-by: stardiviner <numbchild@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-05/msg00553.html >
2018-06-02 23:41:56 +02:00
Rasmus
7ac46c52b7
Check format of org-structure-template-alist
...
* org.el (org--check-org-structure-template-alist): New function
yielding user-error if using old org-structure-template-alist
format.
(org--insert-structure-template-mks):
* org-tempo.el (org-tempo-add-templates): Use new function
2018-05-28 23:44:51 +02:00
Aaron Ecay
c32938b7fd
Revert "Un-fontlock sub/superscripts when point enters them"
...
This reverts commit 102832e66f
.
See <https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=%2Bmessage-id%3A%3C87y3g43mjy.fsf%40nicolasgoaziou.fr%3E&submit=Search&idxname=emacs-orgmode >
2018-05-27 21:29:57 +01:00
Nicolas Goaziou
c698c8e959
Fix tags completion
...
* lisp/org.el (org-tags-completion-function): Refactor function. Fix
tag completion.
Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/r/emacs-orgmode/2018-05/msg00450.html >
2018-05-27 22:13:00 +02:00
Aaron Ecay
102832e66f
Un-fontlock sub/superscripts when point enters them
...
* lisp/org.el (org-remove-font-lock-display-properties): Rename to
‘org-remove-font-lock-display-properties’. It is a more
specific/accurate name.
(org-match-substring-with-braces-regexp):
(org-match-substring-regexp): Add a note to docstrings about what the
match groups are.
(org-raise-scripts--post-command-hook): New function, modeled on
‘prettify-symbols--post-command-hook’.
(org-raise-scripts): Use the above.
Inspired by
<https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=%2Bmessage-id%3A%3C518DCC34-E435-42F7-A15E-FAE7727033F8%40scratch.space%3E&submit=Search&idxname=emacs-orgmode >
2018-05-27 17:13:59 +01:00
Aaron Ecay
1117d65622
org.el: remove trailing whitespace
2018-05-27 16:58:39 +01:00
Nicolas Goaziou
2c5a8740ad
Remove spurious colon in tags view
...
* lisp/org.el (org-scan-tags): Remove spurious colon in tags view.
Small refactoring.
The regression was introduced in
be31a0c459
.
Reported-by: Rainer Stengele <rainer.stengele@online.de>
<http://lists.gnu.org/r/emacs-orgmode/2018-05/msg00478.html >
2018-05-26 12:30:46 +02:00
Nicolas Goaziou
1cfd5d04e3
Fix a docstring
...
* lisp/org.el (org-store-link): Use "link" instead of puzzling
"org-link".
2018-05-17 16:55:31 +02:00
Nicolas Goaziou
463664bdd0
Merge branch 'maint'
2018-05-16 22:07:33 +02:00
Nicolas Goaziou
2b26644b3a
Fix `org-skip-over-state-notes'
...
* lisp/org.el (org-skip-over-state-notes): Allow empty TODO states.
Reported-by: Michael Brand <michael.ch.brand@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-05/msg00337.html >
2018-05-16 22:06:39 +02:00
Nicolas Goaziou
7143ae0355
Fix typo
...
* lisp/org.el (org-tag-alist): Fix typo in docstring.
2018-05-14 15:38:05 +02:00
Nicolas Goaziou
ac21151c4a
Fix typo in docstring
...
* lisp/org.el (org-tag-persistent-alist): Fix typo.
Reported-by: Bernt Hansen <bernt@norang.ca>
<http://lists.gnu.org/r/emacs-orgmode/2018-05/msg00293.html >
2018-05-13 22:36:09 +02:00
Aaron Ecay
7106eab974
Many small code improvements
...
* lisp/org-capture.el (org-capture-member): Make obsolete; the old
definition was identical to ‘org-capture-get’ anyway.
(org-capture-mode-map): Move the calls to ‘define-key’ up to where the
variable is defined.
(org-capture-mode-hook): Small docstring tweak.
(org-capture-mode): Fix typo in mode lighter.
(org-capture-set-target-location, org-capture-place-item):
(org-capture-place-plain-text, org-capture-narrow):
(org-capture-empty-lines-after):
(org-capture-import-remember-templates): ‘if’ without else -> ‘when’
* lisp/org-colview.el (org-columns-edit-value): Change an error to a
user-error.
(org-columns-uncompile-format): Improve docstring.
* lisp/org-compat.el (org-remove-from-invisibility-spec): Make
obsolete, the underlying emacs function exists since 1997, commit 31aa282e.
(org-in-invisibility-spec-p, org-count-lines): ‘if’ without else -> ‘when’.
* lisp/org-element.el (org-element-swap-A-B):
* lisp/org-entities.el (org-entities-create-table):
* lisp/org-list.el (org-insert-item):
* lisp/org-macs.el (org-with-point-at, org-base-buffer):
(org-preserve-local-variables, org-overlay-display):
(org-overlay-before-string): ‘if’ without else -> ‘when’.
* lisp/org-eshell.el (org-eshell-open): Fix docstring typo.
* lisp/org-pcomplete.el (pcomplete/org-mode/file-option/language):
(pcomplete/org-mode/file-option/startup):
(pcomplete/org-mode/file-option/options):
(pcomplete/org-mode/file-option/infojs_opt):
(pcomplete/org-mode/link, pcomplete/org-mode/tex):
(pcomplete/org-mode/todo, pcomplete/org-mode/searchhead):
(pcomplete/org-mode/tag, pcomplete/org-mode/prop): Avoid the formerly
misspelled ‘pcomplete-uniqify-list’ function. It has a defalias in
emacs >= 27; we add our own for older emacsen.
(pcomplete/org-mode/file-option/bind): ‘if’ without else -> ‘when’.
* lisp/org-protocol.el (org-protocol-capture):
(org-protocol-convert-query-to-plist): ‘if’ without else -> ‘when’.
(org-protocol-do-capture): Pacify byte compiler, simplify conditional
logic.
* lisp/org-table.el (org-table-create-with-table.el): Simplify conditional
logic.
(org-table-create, org-table-convert-region, org-table-next-field):
(org-table-beginning-of-field, org-table-end-of-field):
* lisp/org-w3m.el (org-w3m-copy-for-org-mode): ‘if’ without else ->
‘when’.
* lisp/org.el (org-babel-do-load-languages, org-previous-link):
(org-refile): Use ‘(foo ...)’ instead of ‘(funcall 'foo ...)’.
(org-add-log-note): Convert a long cond into a cl-case.
(org-priority): Improve docstring, show a deprecation warning if the
‘show’ argument is passed (which was previously silently ignored).
Also, use ?\s instead of ?\ as a character literal for space.
(org-fast-tag-insert): Fix docstring typo.
(org-fill-element): ‘if’ without else -> ‘when’.
(org-on-target-p): Remove ancient compatibility alias.
2018-05-10 04:22:30 +01:00
Aaron Ecay
581fd90645
Fix declare-function and friends in org.el
...
* lisp/org-table.el (org-table-with-shrunk-field): Move from here...
* lisp/org-macs.el: ...to here
The move is necessary because this macro is used (at compile time) in
org.el. We cannot leave its definition in org-table, because that
would lead to a require loop. So we need to put it in org-macs, and
require the latter file in org.el also at compile time.
Finally, update and sort the declare-function calls.
2018-05-10 01:07:57 +01:00
Nicolas Goaziou
0dda9bf1c1
Mark `org-get-indentation' as obsolete
...
* lisp/org-macs.el (org-get-indentation): Move function...
* lisp/org-compat: ... here.
* lisp/ob-core.el (org-babel-demarcate-block):
(org-babel-insert-result):
(org-babel-update-block-body):
* lisp/ob-exp.el (org-babel-exp-process-buffer):
* lisp/org-agenda.el (org-agenda-get-some-entry-text):
* lisp/org-capture.el (org-capture-place-item):
* lisp/org-clock.el (org-clock-in):
* lisp/org-element.el (org-element-swap-A-B):
* lisp/org-feed.el (org-feed-format-entry):
* lisp/org-indent.el (org-indent-add-properties):
* lisp/org-list.el (org-in-item-p):
(org-list-struct):
(org-list-struct-apply-struct):
(org-list-item-body-column):
(org-toggle-item):
* lisp/org-src.el (org-src--edit-element):
* lisp/org.el (org-fixup-indentation):
(org-cdlatex-environment-indent):
(org--get-expected-indentation):
(org-indent-region):
(org-toggle-fixed-width):
* lisp/ox.el (org-export-expand-include-keyword): Use
`current-indentation' instead.
2018-05-09 01:26:31 +02:00
Kyle Meyer
1dbc506086
Merge branch 'maint'
2018-05-06 02:33:55 -04:00
Kyle Meyer
732aa477b0
Update version keyword
2018-05-06 02:28:09 -04:00
Nicolas Goaziou
ede4b999b8
Silence byte-compiler
2018-04-30 14:23:26 +02:00
Bastien
6dea0de7ca
org.el: Add a new `org-browse-news' menu entry
...
* lisp/org.el (org-browse-news): New command to browse the
news for the latest major release.
(org-org-menu): New menu entry to use the new command.
Thanks to Thomas Dye and Tim Cross for suggesting this.
2018-04-30 00:27:16 +02:00
Bastien
e11613b1c5
org.el: Add missing modules
...
* lisp/org.el (org-modules): Add missing modules.
2018-04-30 00:20:34 +02:00
Bastien
5c9bab29d4
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2018-04-29 23:39:55 +02:00
Bastien
4697a19f6f
org.el: Enhance a docstring
...
* lisp/org.el (org-babel-load-languages): Enhance docstring.
2018-04-29 23:39:32 +02:00
Nicolas Goaziou
70fc172191
Mark `org-file-remote-p' as obsolete
...
* lisp/org.el (org-file-remote-p): Move function...
* lisp/org-compat.el: ... here.
* lisp/ox.el (org-export--prepare-file-contents):
(org-export-file-uri): Use `file-remote-p'.
2018-04-29 16:28:25 +02:00
Nicolas Goaziou
9d8aade7ec
Mark `org-with-silent-modifications' as obsolete
...
* lisp/org-clock.el (org-clock-sum):
* lisp/org-colview.el (org-columns--display-here):
(org-columns-remove-overlays):
(org-columns-quit):
(org-columns-edit-value):
(org-columns--compute-spec):
(org-columns-compute-all):
(org-agenda-colview-compute):
* lisp/org-indent.el (org-indent-remove-properties):
(org-indent-add-properties):
* lisp/org.el (org-sort-entries):
(org-refresh-properties):
(org-refresh-category-properties):
(org-refresh-stats-properties):
(org-agenda-prepare-buffers): Do not use
`org-with-silent-modifications'.
2018-04-29 12:02:01 +02:00
Nicolas Goaziou
31afe4b718
Move window-related function to "org-macs.el"
...
* lisp/org.el (org-switch-to-buffer-other-window):
* lisp/org-compat.el (org-fit-window-to-buffer): Move functions...
* lisp/org-macs.el: ... here.
2018-04-29 10:31:24 +02:00
Nicolas Goaziou
4d568fc83c
Move `org-parse-time-string' to "org-macs.el"
...
* lisp/org.el (org-parse-time-string): Move function...
* lisp/org-macs.el : ... here. Remove obsolete FIXME. Improve
docstring.
2018-04-29 10:26:41 +02:00
Nicolas Goaziou
f77f5b963d
Add :safe keyword to `org-hide-emphasis-markers'
...
* lisp/org.el (org-hide-emphasis-markers): Add :safe keyword.
2018-04-29 00:19:55 +02:00
Nicolas Goaziou
c6d717cc89
Slightly speed up `org--align-tags-here'
...
* lisp/org.el (org--align-tags-here): Check if tags are already at the
correct column before messing with the buffer.
2018-04-29 00:11:24 +02:00
Nicolas Goaziou
8785052735
`org-set-tags' cleans tag even when new tags are identical
...
* lisp/org.el (org-set-tags): Clean old tags unconditionally.
Even if the tags are the same, the line could contain noise, e.g.,
blanks after the tags, that could be cleaned up anyway.
2018-04-29 00:11:24 +02:00
Nicolas Goaziou
1615261cdc
Preserve point when setting or aligning tags
...
* lisp/org.el (org--align-tags-here):
(org-set-tags-command):
(org-align-tags): Preserve point.
* testing/lisp/test-org.el (test-org/set-tags-command): Add test.
2018-04-28 23:45:04 +02:00
Nicolas Goaziou
7aadf4fe8c
Improve `org-fix-tags-on-the-fly'
...
* lisp/org.el (org-fix-tags-on-the-fly): Improve docstring. Skip more
cases.
2018-04-28 23:45:04 +02:00
Nicolas Goaziou
4c13d0a1a8
Do not load Org Tempo by default
...
* lisp/org.el (org-modules): Do not load Org Tempo by default.
Org Tempo is a backward compatible substitute for the new expansion
mechanism. It is only available for either die-hard "<s" users or
power users that need advanced templates.
2018-04-28 17:29:00 +02:00
Bastien
2debcd5b22
org.el: New command `org-toggle-narrow-to-subtree'
...
* lisp/org.el (org-toggle-narrow-to-subtree): New command.
(org-speed-commands-default): Use the new command for the "s"
speed command.
2018-04-28 14:00:25 +02:00
Bastien
0f83eac078
org.el: Enhance messages when (un)setting timestamps
...
* lisp/org.el (org--deadline-or-schedule): Enhance messages.
2018-04-28 13:31:45 +02:00
Bastien
4c14e0d1f2
org.el: New speed command "k" to kill the subtree at point
...
* lisp/org.el (org-speed-commands-default): Add "k" to kill
the subtree at point.
2018-04-28 12:57:15 +02:00
Bastien
5c8cb1e733
Add messages for org-table-copy-region' and
org-copy-visible'
...
* lisp/org-table.el (org-table-copy-region):
* lisp/org.el (org-copy-visible): Add a message.
2018-04-28 12:52:20 +02:00
Bastien
b5b7bb8446
org.el: Display a message when a checkbox could not be updated
...
* lisp/org.el (org-ctrl-c-ctrl-c): Display a message when the
checkbox item at point could not be updated.
* lisp/org-list.el (org-list-write-struct): Return the updated
structure.
2018-04-28 12:43:14 +02:00
Bastien
26f54050b6
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2018-04-28 08:06:20 +02:00
Bastien
39b9a12bab
org.el: Enhance a few docstrings
...
* lisp/org.el (org-structure-template-alist)
(org--insert-structure-template-mks)
(org--insert-structure-template-unique-keys)
(org-insert-structure-template): Enhance docstrings.
2018-04-28 08:05:54 +02:00
Nicolas Goaziou
031f362352
Fix `org-toggle-tag'
...
* lisp/org.el (org-toggle-tag): Fix weird behavior with inherited tags.
* testing/lisp/test-org.el (test-org/toggle-tag): Add test.
Reported-by: Bernt Hansen <bernt@norang.ca>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00537.html >
2018-04-28 02:10:44 +02:00
Nicolas Goaziou
9a1f208223
Merge branch 'maint'
2018-04-27 17:13:40 +02:00
Nicolas Goaziou
388254e0d0
Revert "org.el: Fix bug when links contain special characters"
...
This reverts commit b1d084c1ab
.
The fix introduces a bug where `org-edit-special' throws an error on
INCLUDE keywords.
2018-04-27 17:12:18 +02:00
Bastien
b08245a74e
Merge branch 'maint'
2018-04-27 12:32:30 +02:00
Bastien
e8c40b7a07
org.el: Update version keyword to 9.1.12
...
Thanks to Nicolas for reminding me.
2018-04-27 12:31:13 +02:00
Bastien
67f1a33b45
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2018-04-27 01:27:40 +02:00
Bastien
6cd224e833
Merge branch 'maint' of code.orgmode.org:bzg/org-mode into maint
2018-04-27 01:27:15 +02:00
Bastien
8fd176ee76
Merge branch 'maint' into wip
2018-04-27 01:09:51 +02:00
Marco Wahl
a0a40a4651
org: Remove special whitespace treatment when moving subtree
...
* lisp/org.el (org-move-subtree-down): Remove special whitespace treatment.
* testing/lisp/test-org.el (test-org/drag-element-backward):
Accommodate test.
2018-04-27 01:08:29 +02:00
Bastien
b1d084c1ab
org.el: Fix bug when links contain special characters
...
* lisp/org.el (org-open-link-from-string): Fix bug when links
contain special characters.
Thanks to Joon Ro for reporting this.
2018-04-26 21:52:39 +02:00
Bastien
b64f31abd2
org.el: Tiny enhancements for `org-open-at-point-global'
...
* lisp/org.el (org-open-at-point-global): Use `thing-at-point'
to match possibly more urls and emails. Enhance docstring.
2018-04-26 21:50:37 +02:00
Bastien
d561b3d0b9
org.el: Add org-eww to the list of default modules
...
* lisp/org.el (org-modules): Add org-eww to the list of
default modules.
2018-04-26 21:30:37 +02:00
Bastien
71ad7d19ea
org.el: Add org-tempo to the list of default modules
...
* lisp/org.el (org-modules): Add org-tempo to the list of
default modules.
Template expansion is likely to be expected by many users, as it was
on by default in previous releases. Let's load org-tempo by default
and let users remove it. If needed, we can remove this in future
releases.
2018-04-26 21:29:48 +02:00
Nicolas Goaziou
60483fbfc3
Merge branch 'maint'
2018-04-26 14:18:07 +02:00
Nicolas Goaziou
e2e5495239
Fix "(wrong-number-of-arguments max 0)" with fast tag selection
...
* lisp/org.el (org-fast-tag-selection): Fix
"(wrong-number-of-arguments max 0)" error when setting tag and no
tag is defined.
2018-04-26 14:16:17 +02:00
Nicolas Goaziou
ea6825cf1f
Improve docstring
...
* lisp/org.el (org-set-tags-command): Improve docstring.
2018-04-26 13:52:19 +02:00
Bastien
886ab9c766
Modify syntax entry for < and > globally
...
* lisp/org.el (org-mode): Let < and > be recognized as opening
and ending characters.
These characters are typically used in timestamps where it is useful
to use C-M-f and C-M-b to manipulate them.
2018-04-26 11:29:30 +02:00
Bastien
5a0162097a
org.el (org-mode): Don't modify syntax entry for "@" globally
...
* lisp/org.el (org-mode): Don't modify syntax entry for "@" globally.
This syntax entry dates from commit fe939ecb
when it was used to allow
"@" in tags. Now "@" is a word constituent in tags, not anywhere.
2018-04-26 11:26:18 +02:00
Nicolas Goaziou
2056b60aae
Fix merge with maint
...
Re-introduce commit "Fix multiple tag selection" (f1b43fe9e
).
2018-04-26 02:44:23 +02:00
Nicolas Goaziou
8a90b34aa6
Fix error when setting more than one tag
...
* lisp/org.el (org-set-tags-command): Fix type of history argument in
`completing-read'.
2018-04-26 02:30:09 +02:00
Nicolas Goaziou
f1b43fe9e6
Fix multiple tag selection
...
* lisp/org.el (org--tag-add-to-alist): Preserve order when merging tag
alists. Remove duplicates only when they are outside a group.
Rename from `org-tag-add-to-alist'.
(org-set-regexps-and-options):
(org-global-tags-completion-table):
(org-make-tags-matcher):
(org-set-tags):
(org-change-tag-in-region):
(org-agenda-prepare-buffers): Apply renaming.
Reported-by: Alex Branham <alex.branham@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00311.html >
2018-04-23 15:24:23 +02:00
Kyle Meyer
08e196d7fa
Merge branch 'maint'
2018-04-22 11:13:14 -04:00
Kyle Meyer
e3b1c664e7
Update version keyword
2018-04-22 11:09:36 -04:00
Nicolas Goaziou
95af956cfd
Merge branch 'maint'
2018-04-20 11:05:56 +02:00
Andrew Eggenberger
8c3d4fbde7
Document org-timestamp-up' and
org-timestamp-down' behavior
...
* org.el (org-timestamp-up): Document undocumented behavior.
(org-timestamp-up): The function changes the timestamp type when
the point is on the enclosing bracket. The documentation now
reflects that behavior.
* org.el (org-timestamp-down): Document undocumented behavior.
(org-timestamp-down): The function changes the timestamp type when
the point is on the enclosing bracket. The documentation now
reflects that behavior.
TINYCHANGE
2018-04-20 11:05:28 +02:00
Nicolas Goaziou
4d152b994e
Rewrite tags setting functions
...
* lisp/org.el (org-setting-tags): Remove variable.
(org-set-tags-command): Change signature. For interactive use only.
(org-set-tags-to): Remove function.
(org-align-all-tags): Remove function.
(org-align-tags): New function.
(org-set-tags): Change signature. For non-interactive use only.
(org-promote):
(org-demote):
(org-refile):
(org-todo):
(org-priority):
(org-toggle-tag):
(org-entry-put):
(org-fix-tags-on-the-fly):
(org-ctrl-c-ctrl-c):
(org-delete-indentation):
(org-return):
(org-kill-line): Apply signature change. Use new functions.
* lisp/ox-beamer.el (org-beamer-property-changed):
(org-beamer-select-environment): Apply signature change. Use new
functions.
* testing/lisp/test-org-archive.el (test-org-archive/to-archive-sibling):
Update test.
* testing/lisp/test-org.el (test-org/set-tags): Add tests.
(test-org/set-tags-command): New test.
(test-org/set-tags-to): Remove test.
2018-04-20 10:51:21 +02:00
Nicolas Goaziou
be31a0c459
Standardize tag regexps
...
* lisp/org.el (org-tag-re):
(org-tag-group-re): New variable
(org-tag-string-to-alist):
(org-scan-tags):
(org-make-tags-matcher):
(org-fast-tag-selection): Use new variables.
* lisp/org-agenda.el (org-agenda-list-stuck-projects):
(org-agenda-format-item):
(org-agenda-fix-displayed-tags):
* lisp/org-archive.el (org-archive-subtree): Use new variables.
2018-04-19 14:28:54 +02:00
Nicolas Goaziou
edc159c2f2
Remove `org-get-tags-string'
...
* lisp/org.el (org-get-tags-string): Move to "org-compat".
(org-make-tag-string): New function
(org-set-tags-to):
(org-set-tags):
(org-set-current-tags-overlay):
(org-entry-properties):
(org-agenda-prepare-buffers):
* lisp/org-mouse.el (org-mouse-set-tags):
* lisp/ox-ascii.el (org-ascii--build-title):
* lisp/ox-beamer.el (org-beamer-select-environment):
* lisp/ox-latex.el (org-latex-format-inlinetask-default-function):
* lisp/ox-md.el (org-md-headline):
(org-md--build-toc):
* lisp/ox-texinfo.el (org-texinfo-format-headline-default-function):
(org-texinfo-format-inlinetask-default-function):
* contrib/lisp/ox-groff.el (org-groff-headline):
(org-groff-inlinetask): Use new function.
* lisp/org-compat.el (org-get-tags-string): New function.
2018-04-19 11:52:07 +02:00
Nicolas Goaziou
e87ebca2a7
Use `org-tag-line-re'
...
* lisp/org.el (org-activate-tags):
(org-toggle-tag):
(org--align-tags-here):
(org-fast-tag-selection):
(org-kill-line):
* lisp/org-agenda.el (org-agenda-align-tags): Use `org-tag-line-re'.
2018-04-19 11:52:07 +02:00
Nicolas Goaziou
7d2ebc3ffa
Deprecate org-get-local-tags' and
org-get-local-tags-at'
...
* contrib/lisp/org-drill.el (org-drill-entry-p):
(org-drill-entry-leech-p):
* lisp/org-bibtex.el (org-bibtex-headline):
(org-get-local-tags-at): Use `org-get-tags'.
* lisp/org.el (org-get-local-tags-at):
(org-get-local-tags): Move to...
* lisp/org-compat.el: ... here.
2018-04-19 11:51:54 +02:00
Nicolas Goaziou
f05493504a
Replace org-get-tags-at' with
org-get-tags'
...
* contrib/lisp/org-drill.el (org-part-of-drill-entry-p):
* lisp/org-agenda.el (org-agenda-finalize):
(org-search-view):
(org-agenda-get-todos):
(org-agenda-get-timestamps):
(org-agenda-get-sexps):
(org-agenda-get-progress):
(org-agenda-get-deadlines):
(org-agenda-get-scheduled):
(org-agenda-get-blocks):
(org-agenda-change-all-lines):
* lisp/org-bibtex.el (org-bibtex-headline):
* lisp/org-clock.el (org-clock-get-table-data):
* lisp/org-pcomplete.el (org-get-tags):
* lisp/org.el (org-trust-scanner-tags):
(org-get-local-tags-at):
(org-get-local-tags):
(org-set-tags):
(org-map-entries):
(org-entry-properties): Use `org-get-tags' instead of
`org-get-tags-at'.
2018-04-19 11:51:54 +02:00
Nicolas Goaziou
fbe56f89f7
Change `org-get-tags' specifications
...
* lisp/org.el (org-tag-line-re): New variable.
(org-hide-archived-subtrees):
(org-get-buffer-tags): Use new function.
(org--get-local-tags): New function.
(org-get-tags): Change meaning. Now get all inherited tags. Change
signature.
* lisp/org-archive.el (org-archive-subtree):
* lisp/org-mobile.el (org-mobile-apply):
(org-mobile-edit):
* lisp/org-mouse.el (org-mouse-tag-menu):
* lisp/org-pcomplete.el (pcomplete/org-mode/tag): Apply change
* testing/lisp/test-org.el (test-org/get-tags): New test.
(test-org/tags-at): Remove test.
2018-04-19 11:51:54 +02:00
Nicolas Goaziou
6457a9e4e6
Merge branch 'maint'
2018-04-18 22:18:47 +02:00
Nicolas Goaziou
8814988d1c
Fix error message
...
* lisp/org.el (org-kill-line): Fix error message.
2018-04-18 22:18:23 +02:00
Nicolas Goaziou
ee5fa18430
Remove `org<>' function
...
* lisp/org.el (org<>): Remove function.
2018-04-17 16:08:23 +02:00
Nicolas Goaziou
ff3f3876a8
Move time related functions from "org.el" to "org-macs.el"
...
* lisp/org.el (org-2ft):
(org-time=):
(org-time<):
(org-time<=):
(org-time>):
(org-time>=):
(org-time<>):
(org-matcher-time): Move from here to...
* lisp/org-macs.el: ... here
2018-04-17 16:06:09 +02:00
Nicolas Goaziou
1171d5ef0c
Merge branch 'maint'
2018-04-16 13:45:52 +02:00
Nicolas Goaziou
8b6a617ff5
Remove inlinetask END part from Agenda view
...
* lisp/org-inlinetask.el (org-inlinetask-end-p): New function.
(org-inlinetask-at-task-p):
(org-inlinetask-in-task-p):
(org-inlinetask-goto-beginning):
(org-inlinetask-goto-end):
* lisp/org.el (org-scan-tags): Use new function.
Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00235.html >
2018-04-16 13:44:52 +02:00
Nicolas Goaziou
434d232ca7
Merge branch 'maint'
2018-04-12 21:46:25 +02:00