Nicolas Goaziou
ed06b159c3
Small fix to emphasis fontification
...
* lisp/org.el (org-do-emphasis-faces): Do not span over paragraph
separators.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00202.html >
2017-11-25 15:42:10 +01:00
Nicolas Goaziou
08c9de2a74
Fix typo in docstring
...
* lisp/org.el (org-speed-commands-user): Fix typo in docstring.
2017-11-03 23:10:38 +01:00
Nicolas Goaziou
8860fe2938
Fix `org-display-inline-images'
...
* lisp/org.el (org-display-inline-images): Fix regexp.
Reported-by: Leslie Watter <watter@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00455.html >
2017-10-31 19:33:55 +01:00
Nicolas Goaziou
2567fee3c9
Fix Org corruption when `org-agenda-files' is invalid
...
* lisp/org.el (org-install-agenda-files-menu): Prevent errors in
`org-agenda-files' from corrupting Org initialization.
Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00424.html >
2017-10-30 00:50:11 +01:00
Nicolas Goaziou
a2a034f5b9
Prevent leaking fontification across table fields' borders
...
* lisp/org.el (org-do-emphasis-faces): Prevent leaking fontification
across table fields' borders.
Reported-by: Ryan <rct@thompsonclan.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00321.html >
2017-10-22 14:39:36 +02:00
Allen Li
8c5c030c64
Fix `org-insert-todo-heading'
...
* lisp/org.el (org-insert-todo-heading): Insert TODO keyword relative
to the original headline, not to the headline above.
* testing/lisp/test-org.el (test-org/insert-todo-heading-respect-content):
Add test.
2017-10-18 22:48:16 +02:00
Allen Li
90d283f189
Update documentation on org-protocol template placeholders
...
* doc/org.texi (@code{capture} protocol): Fix placeholder names
(Template expansion): Add org-protocol placeholders
* lisp/org.el (org-store-link-plist): Fix docstring grammar
(org-store-link-props): Fix docstring grammar
2017-10-17 23:28:53 +02:00
Nicolas Goaziou
1d5142601a
Silence byte-compiler
2017-10-14 12:32:08 +02:00
Nicolas Goaziou
5861a55740
`org-file-contents': Improve error message
...
* lisp/org.el (org-file-contents): Improve error message.
2017-10-14 10:59:51 +02:00
Nicolas Goaziou
d747e51fbf
Consider headlines as sentences by themselves
...
* lisp/org.el (org-forward-sentence): Consider headlines as sentences
by themselves.
* testing/lisp/test-org.el (test-org/forward-sentence): Add test.
Reported-by: Mat Vibrys <vibrysec@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00130.html >
2017-10-08 10:35:22 +02:00
Nicolas Goaziou
6432fcd433
C-c C-c on a planning info timestamp fixes day
...
* lisp/org.el (org-ctrl-c-ctrl-c): On a timestamp in a planning line,
fix day, like regular timestamps.
Reported-by: Aaron Jensen <aaronjensen@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00132.html >
2017-10-08 10:07:36 +02:00
Nicolas Goaziou
fb403ca34e
Fix `org-backward-paragraph' on an empty heading
...
* lisp/org.el (org-backward-paragraph): Fix behavior on greater
elements without contents.
* testing/lisp/test-org.el (test-org/backward-paragraph): Add test.
Reported-by: Omar Antolin <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00099.html >
2017-10-06 19:34:28 +02:00
Nicolas Goaziou
ef6dac812b
Fix `org-backward-paragraph' on block opening line
...
* lisp/org.el (org-backward-paragraph): Do not error when called from
a block opening line.
* testing/lisp/test-org.el (test-org/backward-paragraph): Add tests.
Reported-by: Omar Antolin <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00051.html >
2017-10-04 12:57:14 +02:00
Nicolas Goaziou
018fb0149d
Fix parsing properties with title or summary type
...
* testing/lisp/test-org.el (test-org/buffer-property-keys): Ignore
title and summary type when extracting name.
Reported-by: Adrian Bradd <adrian.bradd@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00001.html >
2017-10-01 19:01:58 +02:00
Nicolas Goaziou
80cbf909ea
Remove useless binding
...
* lisp/org.el (org-mode-map): Remove [(meta return)] binding, handled
by (kbd "M-RET").
Suggested-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00411.html >
2017-09-17 12:48:17 +02:00
Paul Eggert
ff0dcf52a5
Backport commit bc511a64f from Emacs
...
Prefer HTTPS to FTP and HTTP in documentation
bc511a64f6da9ab51acc7c8865e80c4a4cb655c2
Paul Eggert
Wed Sep 13 15:54:37 2017 -0700
2017-09-17 00:28:38 -04:00
Nicolas Goaziou
9fb98f4c9c
Add M-RET binding for terminal
...
* lisp/org.el (org-mode-map): Add M-RET binding.
Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00386.html >
2017-09-16 17:19:00 +02:00
Nicolas Goaziou
25f12218d2
Fix `org-auto-repeat-maybe'
...
* lisp/org.el (org-auto-repeat-maybe): Fix `org-auto-repeat-maybe'.
* testing/lisp/test-org.el (test-org/auto-repeat-maybe): Add test.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00298.html >
2017-09-14 15:40:28 +02:00
Nicolas Goaziou
95271315cc
Fix `org-forward-sentence' on a headline
...
* lisp/org.el (org-forward-sentence): Fix `org-forward-sentence' on a headline.
* testing/lisp/test-org.el (test-org/forward-sentence): Add tests.
Reported-by: Mat Vibrys <vibrysec@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00282.html >
2017-09-12 09:02:02 +02:00
Reuben Thomas
a307011136
Fix logic of calling org-make-link-desciption-function
...
* lisp/org.el (org-insert-link): Simplify so that description is only
prompted for once, if auto-desc is not set, and takes as its default
value, in order, default-description, the return value of
org-make-link-description-function (if the variable is non-nil), and
the current desc. Update the docstring to reflect that
default-description takes precedence over
org-make-link-description-function.
(org-make-link-description-function): Remove from docstring the
statement that if the variable is nil, then the link will be used as
the default description. This is undesirable, and was not in any case
implemented.
2017-09-08 06:59:30 +02:00
Kyle Meyer
79d9f0c0ce
Update customize-package-emacs-version-alist
...
* lisp/org.el (customize-package-emacs-version-alist): Add entries for
all existing ":package-version" values, and remove entries for
versions that aren't used as ":package-version" values.
Note that this alist has a limited effect because we specify
":version" in almost all of our defcustoms. Two functions make use of
this alist: describe-variable-custom-version-info and
customize-changed-options. The former only looks at the alist if
:version isn't specified, and the latter only looks at :version if an
entry for :package-version isn't found in the alist.
We should consider removing the defcustom :version specifications so
that the package-version->version mapping only needs to be maintained
in one place.
2017-09-07 16:56:15 -04:00
Kyle Meyer
6496d0ca95
Correct defcustom version information
...
* lisp/ob-lilypond.el (org-babel-lilypond-commands):
* lisp/ob-lua.el (org-babel-lua-command):
(org-babel-lua-mode):
(org-babel-lua-hline-to):
(org-babel-lua-None-to):
* lisp/org-agenda.el (org-agenda-search-view-max-outline-level):
* lisp/org.el (org-mouse-1-follows-link):
(org-src-fontify-natively):
(orgstruct-heading-prefix-regexp):
* lisp/ox-ascii.el (org-ascii-format-inlinetask-function):
* lisp/ox-latex.el (org-latex-format-drawer-function):
(org-latex-listings-langs):
* lisp/ox-odt.el (org-odt-format-drawer-function):
* lisp/ox.el (org-export-with-properties): Correct ":version" value.
* lisp/org-attach.el (org-attach-annex-auto-get): Correct
":package-version" value.
2017-09-07 16:56:11 -04:00
Nicolas Goaziou
ea4e3dac6d
Use `split-string' instead of `org-split-string'
...
* contrib/lisp/org-depend.el (org-depend-trigger-todo):
(org-depend-block-todo):
* contrib/lisp/ox-bibtex.el (org-bibtex-get-arguments):
* contrib/lisp/ox-koma-letter.el (org-koma-letter-template):
* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-unique-id):
(org-taskjuggler-resolve-dependencies):
* lisp/ob-core.el (org-babel-insert-result):
* lisp/org-agenda.el (org-search-view):
* lisp/org-lint.el (org-lint-duplicate-target):
(org-lint-wrong-header-value):
* lisp/org.el (org--setup-collect-keywords):
(org-make-org-heading-search-string):
(org-search-radio-target):
(org-local-logging):
(org-entry-add-to-multivalued-property):
(org-entry-remove-from-multivalued-property):
(org-entry-member-in-multivalued-property):
(org-entry-get-multivalued-property):
(org-entry-put-multivalued-property):
(org-wrap):
* lisp/ox-beamer.el (org-beamer-allowed-property-values):
* lisp/ox.el (org-export--get-subtree-options):
(org-export--get-inbuffer-options): Use `split-string' instead of
`org-split-string'.
2017-09-07 14:36:50 +02:00
Nicolas Goaziou
c01b62305e
Merge branch 'maint'
2017-08-30 08:12:29 +02:00
Nicolas Goaziou
7d18632a73
Fix "Symbol’s function definition is void: org-clocking-buffer"
...
* lisp/org.el (org-sort-entries): Fix "Symbol’s function definition is
void: org-clocking-buffer".
Reported-by: Ian Garmaise <ian.g@phorixsol.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00647.html >
Reported-by: Allen Choong <allencch@hotmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00649.html >
2017-08-30 00:14:42 +02:00
Nicolas Goaziou
8b5b2cf49e
Merge branch 'maint'
2017-08-28 09:15:54 +02:00
Nicolas Goaziou
ab65bc13d6
Fix deleting a region in a table (part 2)
...
* lisp/org.el (org-delete-backward-char): Fix deleting a region in
a table.
2017-08-28 09:14:57 +02:00
Nicolas Goaziou
e0682619dd
Merge branch 'maint'
2017-08-26 00:12:46 +02:00
Nicolas Goaziou
a6840598ed
Fix `org-copy-visible'
...
* lisp/org.el (org-copy-visible): Rewrite function. Do not use
dubious `org-find-visible' and `org-find-invisible'.
* testing/lisp/test-org.el (test-org/copy-visible): New test.
Reported-by: Gary Cheng <garycheng12@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00568.html >
2017-08-26 00:09:51 +02:00
Nicolas Goaziou
6a590738b1
Remove `org-enable-table-editor'
...
* doc/org.texi (Built-in table editor): Document removal.
* lisp/org-table.el (orgtbl-optimized):
(org-table-auto-blank-field): Ignore removed variable.
2017-08-19 23:39:22 +02:00
Nicolas Goaziou
9638de598c
`org-enable-table-editor' does not affect syntax
...
* lisp/org-table.el (org-table-paste-rectangle):
* lisp/org.el (org-at-table-p):
(org-at-table.el-p):
(org-at-table-hline-p):
(org-ctrl-c-ctrl-c):
(org-tbl-menu): Ignore `org-enable-table-editor'.
2017-08-19 21:44:47 +02:00
Nicolas Goaziou
ac6b6a45de
Merge branch 'maint'
2017-08-17 18:17:39 +02:00
Nicolas Goaziou
91c68865c6
Fix deleting region in a table
...
* lisp/org.el (org-self-insert-command): Fix deleting region in
a table.
Reported-by: Nick Helm <nick@tenpoint.co.nz>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00346.html >
2017-08-17 18:16:22 +02:00
Nicolas Goaziou
3fb025137b
Fix previous commit
...
* lisp/org.el (org-display-inline-images): Fix thinko in previous
commit. Also remove code related to nested links as this is no
longer possible in Org syntax.
2017-08-17 15:55:15 +02:00
Nicolas Goaziou
6ec148a263
Allow link abbreviations to be displayed as inline images
...
* lisp/org.el (org-display-inline-images): Also display link
abbreviations when they point to a valid image file.
Reported-by: Fabrice Popineau <fabrice.popineau@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00395.html >
2017-08-17 15:45:47 +02:00
Nicolas Goaziou
2fb129b5c7
`org-scan-tags' retrieve all TODO keywords, not only not-done ones
...
* lisp/org.el (org-scan-tags): Retrieve all TODO keywords. DONE
keywords can be filtered using "/!" matcher syntax or equivalent.
Reported-by: Julien Cubizolles <j.cubizolles@free.fr>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00367.html >
2017-08-17 15:16:07 +02:00
Galen Menzel
10b1cfb031
Fix `org-toggle-tag
...
* lisp/org.el (org-toggle-tag): Fix
d777d5e0b7
.
Reported-by: Josh Moller-Mara <jmm@cns.nyu.edu>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00278.html >
2017-08-11 11:02:01 +02:00
Grant Rettke
33e0dc6155
Add Easy Template for COMMENT (C)
...
* lisp/org.el: (org-structure-template-alist): Added `COMMENT' block template
bound to `C'
* doc/org.texi: Add documentation for `COMMENT' Easy Template.
* contrib/orgmanual.org: Add documentation for `COMMENT' Easy
Template.
* etc/ORG-NEWS: Added note for 9.1 release under Miscellaneous
2017-08-10 12:45:02 +02:00
Nicolas Goaziou
829ffa977c
Merge branch 'maint'
2017-08-10 12:42:51 +02:00
Nicolas Goaziou
313d22dec6
org.el: Fix org-open-at-point for tags.
...
lisp/org.el (org-open-at-point): Move case for tags up so that it's
not shortcutted by the case for no valid context.
TINYCHANGE
2017-08-10 12:41:35 +02:00
Nicolas Goaziou
f1b2a95bee
Merge branch 'maint'
2017-08-07 23:27:51 +02:00
Nicolas Goaziou
1876514e26
Fix customize interface
...
* lisp/org.el (org-tag-alist, org-tag-persistent-alist): Add non-keyed
tag type.
2017-08-07 23:27:10 +02:00
Nicolas Goaziou
bfbaf1caa4
Merge branch 'maint'
2017-08-07 14:47:14 +02:00
Nicolas Goaziou
ec129f8e10
Silence byte-compiler
2017-08-07 14:46:59 +02:00
Nicolas Goaziou
e805aba972
Add "vala" to org-babel-load-languages
...
* lisp/org.el (org-babel-load-languages): Add "vala".
2017-08-07 14:44:38 +02:00
Nicolas Goaziou
d777d5e0b7
Fix thinko
...
* lisp/org.el (org-toggle-tag): Do not call `match-string' after
`replace-match'.
2017-08-07 13:13:56 +02:00
Nicolas Goaziou
7d21349dbe
Merge branch 'maint'
2017-08-07 13:12:32 +02:00
Nicolas Goaziou
f6a28ba1c2
Tiny refactoring
...
* lisp/org.el (org-sort-entries): Use keyword instead of symbol.
2017-08-07 13:11:54 +02:00
Nicolas Goaziou
c8f3833e9b
Merge branch 'maint'
2017-08-07 12:56:20 +02:00
Nicolas Goaziou
6a9fc48097
Fix `org-sort-entries' loosing clock marker
...
* lisp/org.el (org-sort-entries): Properly restore clock marker, when
appropriate.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00177.html >
2017-08-07 12:51:35 +02:00
Nicolas Goaziou
e83255c993
Silence byte-compiler
2017-08-07 11:43:50 +02:00
Nicolas Goaziou
15f112259b
Fix spurious colons next to TODO keywords
...
* lisp/org.el (org-toggle-tag): Fix spurious colons next to TODO
keywords.
Reported-by: Colin Baxter <m43cap@yandex.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00075.html >
2017-08-07 11:32:39 +02:00
Nicolas Goaziou
bd9f63a22a
Merge branch 'maint'
2017-08-07 10:53:22 +02:00
Nicolas Goaziou
e8fe579a17
Silence byte-compiler
...
* lisp/org-macs.el (org-unique-local-variables):
(org-get-local-variables):
(org-clone-local-variables): Moved from "org.el".
2017-08-07 10:52:37 +02:00
Nicolas Goaziou
a7e11643a9
Merge branch 'maint'
2017-08-06 10:31:06 +02:00
Nicolas Goaziou
fca0dbcc61
Fix `org-clone-local-variables'
...
* lisp/org.el (org-clone-local-variables): Prevent errors that could
happen when trying to set local variables that cannot be set,
e.g. `enable-multibyte-characters'.
2017-08-06 10:26:01 +02:00
Nicolas Goaziou
9d7f8a71a9
Merge branch 'maint'
2017-08-06 02:17:25 +02:00
Nicolas Goaziou
62b4edb263
Fix `org-refile' with prefix argument
...
* lisp/org.el (org-refile): Handle special file targets.
Reported-by: Michaël Cadilhac <michael@cadilhac.name>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00045.html >
2017-08-06 02:16:15 +02:00
Nicolas Goaziou
dd6be5d161
Allow emphasis markers after an hyphen
...
* lisp/org.el (org-emphasis-regexp-components): Allow emphasis markers
after an hyphen.
(org-do-emphasis-faces): Do not strike-through table hlines.
Hypen is already allowed after emphasis markers. This allows one to
write, e.g., 2017-*09*-27.
2017-08-04 18:40:28 +02:00
Nicolas Goaziou
80d7025770
Fix `org-store-log-note'
...
* lisp/org.el (org-store-log-note): Ignore empty log buffers.
The regression was introduced in
f776e65373
. From then, (org-split-string
"") no longer returns nil.
Suggested-by: Dale Sedivec <dale@codefu.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00013.html >
2017-08-01 20:14:23 +02:00
Nicolas Goaziou
e79b0bd9f3
Merge branch 'maint'
2017-07-28 10:15:35 +02:00
Nicolas Goaziou
808089ee04
`org-forward/backward-paragraph' do not error at buffer boundaries
...
* lisp/org.el (org-forward-paragraph):
(org-backward-paragraph): Do not error at buffer boundaries.
Reported-by: Omar Antolín Camarena <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00478.html >
2017-07-28 10:07:53 +02:00
Nicolas Goaziou
648b12d57d
Remove `org-dwidth' and `org-dwidth-n' properties
...
* lisp/org.el (org-raise-scripts):
(org-display-custom-time): Remove `org-dwidth' and `org-dwidth-n'
properties.
2017-07-27 15:32:06 +02:00
Nicolas Goaziou
9a60db0ec3
Move `org-string-width' to "org-macs.el"
...
* lisp/org.el (org-string-width): Move from here...
* lisp/org-macs.el (org-string-width): ... to here.
2017-07-27 15:23:31 +02:00
Nicolas Goaziou
27466a38bc
Fix `org-string-width'
...
* lisp/org.el (org-string-width): Better handle various invisible
characters.
2017-07-27 15:22:45 +02:00
Nicolas Goaziou
f776e65373
Move `org-split-string' to "org-macs.el"
...
* lisp/org.el (org-split-string): Move the function...
* lisp/org-macs.el (org-split-string): ... here. Also clarify
docstring with regards to `split-string'.
2017-07-27 13:39:52 +02:00
Marco Wahl
534678382f
org: User interface message at tag edit slightly more legible
2017-07-19 00:16:23 +02:00
Kyle Meyer
5e4bb2627c
Merge branch 'maint'
2017-07-18 13:32:38 -04:00
Kyle Meyer
52e0966fd4
Document STATE parameter for org-cycle-hide-* functions
...
* lisp/org.el (org-cycle-hide-archived-subtrees):
(org-cycle-hide-drawers): Mention STATE parameter in docstring.
2017-07-18 13:31:07 -04:00
Kyle Meyer
8ed27480aa
org-cycle-hide-drawers: Remove an unnecessary state check
...
* lisp/org.el (org-cycle-hide-drawers): Don't check whether STATE is
`contents' within the `when' body because the `when' condition will
not pass in this case.
2017-07-18 13:24:32 -04:00
Kyle Meyer
d39ccc17d4
Merge branch 'maint'
2017-07-09 11:28:54 -04:00
Paul Eggert
b7fdc30388
Backport commit 20e9a00fb from Emacs
...
* lisp/org-table.el (org-table-sort-lines): Fix misspelling in prompt.
* lisp/ox-ascii.el (org-ascii--describe-datum): Fix misspelling in
call to org-element-lineage.
Spelling fixes
20e9a00fb5d12ad408f9dd15adcfcd205783c1b0
Paul Eggert
Thu Jul 6 00:24:56 2017 -0700
2017-07-09 11:27:12 -04:00
Kaushal Modi
73907bee5b
Merge branch 'maint'
2017-07-07 17:35:41 -04:00
Kaushal Modi
21df3a3c2f
Fix curved quotes in error message
...
* lisp/org.el (org-create-formula-image): Use back-quote + single
quote to get the correct rendering of curved quotes.
Message displayed before this fix: "Please adjust ’imagemagick’ .."
Message displayed after this fix: "Please adjust ‘imagemagick’ .."
The effect of this fix is visible on emacs 25.1 and newer (See Emacs
NEWS).
2017-07-07 17:18:22 -04:00
Nicolas Goaziou
97a1a49895
Fix failing tests in non-daylight saving time zones
...
* lisp/org.el (org-time-string-to-time): Remove optional POS and
BUFFER arguments. Accept new optional ZONE argument.
(org-time-string-to-seconds): Accept optional ZONE argument.
(org-check-before-date):
(org-check-after-date):
(org-check-dates-range):
(org-goto-calendar):
* lisp/ob-gnuplot.el (org-time-string-to-time):
* lisp/org-agenda.el (org-agenda-get-blocks):
* lisp/org-clock.el (org-clock-timestamps-change):
* lisp/org-list.el (org-time-string-to-seconds): Use UTC for time
difference and time comparison.
* testing/lisp/test-org-clock.el (org-test-clock-create-clock): Use
UTC for time differences.
2017-07-07 18:23:10 +02:00
Nicolas Goaziou
fd6a6b5cb4
Merge branch 'maint'
2017-07-06 19:21:48 +02:00
Jan Seeger
1849f391bc
org.el: Fix custom timestamps for date ranges
...
* org.el (org-activate-dates): Change `org-activate-dates' to activate
custom timestamps for both dates in date ranges. Formerly, only the
second date would be activated. The reason was a misplaced
`if'. Replaced it with `when'. Also added doc comments.
TINYCHANGE
2017-07-06 19:21:06 +02:00
Nicolas Goaziou
8c548b81b9
Merge branch 'maint'
2017-07-04 01:13:03 +02:00
Nicolas Goaziou
a3d02c49a0
Do not cancel note when `org-add-log-note' is called with a prefix argument
...
* lisp/org.el (org-add-log-note):
(org-store-log-note): Ignore prefix argument.
The behaviour is undocumented and can lead to data loss.
Reported-by: Kyle Meyer <kyle@kyleam.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00024.html >
2017-07-04 01:11:57 +02:00
Nicolas Goaziou
a20c17fa51
Merge branch 'maint'
2017-07-04 00:20:12 +02:00
Nicolas Goaziou
cc5a9bf538
Fix wrong data in clock table using :block
...
* lisp/org.el (org-2ft): Use new signature for
`org-parse-time-string'.
2017-07-04 00:19:47 +02:00
Rasmus
2e02581cbf
Merge branch 'maint'
2017-07-03 12:05:47 +02:00
Rasmus
ad8e508e93
Fix bug in org-inside-LaTeX-fragment-p
...
* lisp/org.el (org-inside-LaTeX-fragment-p): Also work correctly in
first paragraph.
2017-07-03 12:05:36 +02:00
Nicolas Goaziou
f4f921ce5a
Merge branch 'maint'
2017-07-01 14:24:29 +02:00
Nicolas Goaziou
4f372457f2
Fix `org-check-before-invisible-edit', part 2
...
* lisp/org.el (org-check-before-invisible-edit): Fix error before
first headline. Handle nested overlays.
2017-07-01 14:23:41 +02:00
Nicolas Goaziou
9ed5674dcb
Merge branch 'maint'
2017-06-29 16:32:08 +02:00
Nicolas Goaziou
f409c13be1
Fix `org-check-before-invisible-edit' before first headline
...
* lisp/org.el (org-check-before-invisible-edit): Fix "Before first
heading" error.
Invisible characters can come from overlays and text properties. The
current implementation tries to remove outline overlays, even though
it may be something else.
Reported-by: John Kitchin <jkitchin@andrew.cmu.edu>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00365.html >
2017-06-29 16:29:20 +02:00
Nicolas Goaziou
87a6e3970a
Merge branch 'maint'
2017-06-26 23:40:35 +02:00
Nicolas Goaziou
6c498f1337
Forbid empty string as org-ellipsis value
...
* lisp/org.el (org-ellipsis): Harden :safe value.
(org-display-table): Fix typo.
(org-mode): Only change ellipsis if `org-ellipsis' is a non-empty
string. Remove obsolete checks.
Reported-by: Michael Ax <michaelax@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/114283 >
2017-06-26 23:38:23 +02:00
Kyle Meyer
3741196060
Merge branch 'maint'
2017-06-22 21:33:24 -04:00
Kyle Meyer
1930a8f05a
org-todo: Display state change message when headline is not visible
...
* lisp/org.el (org-todo): Display state change message when headline
is not visible, reversing unintentional modification from dd17e9d29
.
Prior to dd17e9d29
(2014-05-31), a message was displayed when changing
the state of a headline that was *not* visible, helping the user know
what the new state was even though the headline was off the screen.
While extending this code, dd17e9d29
unintentionally reversed the
visibility check, resulting in the message only being shown when the
headline is visible.
Reported-by: Russell Adams <RLAdams@AdamsInfoServ.Com>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00442.html >
2017-06-22 21:29:43 -04:00
Nicolas Goaziou
a0d1ad325d
Merge branch 'maint'
2017-06-22 18:32:38 +02:00
Nicolas Goaziou
5d99560ddf
Fix open-at-point in example blocks and diary-sexps
...
* lisp/org.el (org-open-at-point): Also open links in example blocks
and diary-sexps.
* testing/lisp/test-org.el (test-org/open-at-point/keyword):
(test-org/open-at-point/property):
(test-org/open-at-point/comment): Add tests.
Reported-by: Dieter Faulbaum <Dieter.Faulbaum@helmholtz-berlin.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00277.html >
2017-06-22 18:30:58 +02:00
Nicolas Goaziou
92e8c85381
Merge branch 'maint'
2017-06-21 22:57:44 +02:00
Nicolas Goaziou
521734d51f
Fix link fontification
...
* lisp/org.el (org-activate-links): Fix link fontification.
Reported-by: John Kitchin <jkitchin@andrew.cmu.edu>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00381.html >
2017-06-21 22:55:10 +02:00
Nicolas Goaziou
080dc4b445
Merge branch 'maint'
2017-06-16 07:59:18 +02:00
Nicolas Goaziou
673fe87b05
Fix compilation warning
...
* lisp/org.el (org-parse-time-string): Fix compilation warning.
2017-06-16 07:58:18 +02:00
Kaushal Modi
62ce814130
Merge branch 'maint'
2017-06-15 09:03:35 -04:00
Kaushal Modi
3bcfed071d
Fix breakage due to outline-invisible-p defn change in emacs 26+
...
* lisp/org.el (org-invisible-p): New function. Restore the behavior
of outline-invisible-p prior to the following commint on emacs master
<http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9cc59ffbbb2f20fbbf1c72d2e0c9dc47c7906a99 >.
* lisp/org.el (org-cycle-internal-local)
(org-clean-visibility-after-subtree-move, org-goto)
(org-get-location, org-move-subtree-down, org-copy-subtree)
(org-paste-subtree, org-next-link, org-mark-ring-goto)
(org-todo, org-deadline, org-schedule, org-set-tags)
(org-truely-invisible-p, org-invisible-p2)
(org-forward-heading-same-level, org-forward-paragraph)
(org-backward-paragraph, org-down-element)
(org-bookmark-jump-unhide, org-mark-jump-unhide):
* lisp/org-list.el (org-insert-item):
* lisp/org-crypt.el (org-encrypt-entry, org-decrypt-entry):
* lisp/org-clock.el (org-clock-load):
* lisp/org-archive.el (org-archive-subtree)
(org-archive-to-archive-sibling, org-toggle-archive-tag)
(org-archive-set-tag):
* contrib/lisp/org-drill.el (org-drill-hide-subheadings-if): Use
org-invisible-p instead of outline-invisible-p.
Reference:
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00230.html >
2017-06-15 08:10:47 -04:00
Nicolas Goaziou
1c7cf61bd7
Merge branch 'maint'
2017-06-14 11:03:40 +02:00