Mario Martelli
5748615c48
org-protocol: Fix for failing open-source subprotocol
...
* (org-protocol-open-source): Make sure url is sanitised before
processing.
TINYCHANGE
2017-06-28 11:19:44 +02:00
Kyle Meyer
a8d007db15
doc/Makefile: Auto-generate org-version.tex for orgcard
...
* doc/Makefile: Add rule to generate org-version.tex.
* doc/orgcard.tex: Include org-version.tex rather than explicitly
setting version and year.
This removes the only instance in the repo where the Org version is
hardcoded.
2017-06-28 00:54:32 -04: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
Nicolas Goaziou
bc1d6aadfd
org-element: Fix $...$ parser error
...
* lisp/org-element.el (org-element-latex-fragment-parser): Also check
border character right after opening "$" sign.
* testing/lisp/test-org-element.el (test-org-element/latex-fragment-parser):
Add tests.
Reported-by: thomas <thomas@friendlyvillagers.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/114285 >
2017-06-26 22:07:05 +02:00
Nicolas Goaziou
7b065b1d0a
ox-odt: Include #+latex_header when converting LaTeX to PNG
...
* lisp/ox-odt.el (org-odt--translate-latex-fragments): Include
#+latex_header when converting LaTeX to PNG.
Reported-by: edgar@openmail.cc
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00480.html >
2017-06-25 23:09:21 +02:00
Kitamoto Tsuyoshi
08334effc1
doc/org.texi (HTML doctypes): Fix formatting
...
* doc/org.texi (HTML doctypes): Fix formatting.
TINYCHANGE
2017-06-25 10:38:46 +02:00
Nicolas Goaziou
e903288e50
ox-latex: Fix LATEX_HEADER_EXTRA keyword
...
* lisp/ox-latex.el (org-latex-make-preamble): Do not include
LATEX_HEADER_EXTRA keywords' contents when previewing a LaTeX
fragment.
Reported-by: Mario Román <mromang08@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00477.html >
2017-06-25 09:39:32 +02:00
Nicolas Goaziou
7ca34d2aef
org-indent: Fix indentation of inline tasks
...
* lisp/org-indent.el (org-indent--compute-prefixes): Fix indentation
of inline tasks when `org-inlinetask-show-first-star is non-nil.
Reported-by: Rasmus <rasmus@gmx.us>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00452.html >
2017-06-23 13:52:16 +02:00
Kaushal Modi
3c9ec81e18
Improve Noweb documentation
...
* doc/org.texi (noweb, noweb-ref, Noweb reference syntax): Add
examples and improve wording. Clarify how to use Noweb style
references with code block arguments. Replace occurrences of
``noweb'' and ``Noweb'' with Noweb for consistency.
2017-06-23 06:03:36 -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
Kyle Meyer
17a1cd23b9
etc/styles/README: Update copyright year
...
This has not been getting updated during the bulk copyright year
updates.
2017-06-22 13:31:04 -04:00
Kyle Meyer
f2980782c4
Clean up spacing to pass Emacs's pre-commit check
...
This is in preparation for syncing with the Emacs repo.
2017-06-22 13:31:04 -04:00
Paul Eggert
549c2cb75e
ORG-NEWS: Backport commit dc152c54f from Emacs
...
Modernize usage of 'macOS' in doc and comments
dc152c54f4e44f5f2040883b03f71ff6aa66c893
Paul Eggert
Sun Nov 6 00:42:03 2016 -0700
2017-06-22 13:30:44 -04:00
Paul Eggert
265ee374c0
ORG-NEWS: Backport commit 62803a2ef from Emacs
...
Specify coding if Latin-1 Emacs would misinterpret.
62803a2ef134e37f1ba2c404dda15bf5e2a2a036
Paul Eggert
Sat May 24 15:23:47 2014 -0700
2017-06-22 13:30:44 -04: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
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
112c5ba479
org-clock: Remove daylight saving time offset in duration
...
* lisp/org-clock.el (org-clock-out):
(org-clock-sum):
(org-clocktable-steps):
(org-clock-update-time-maybe): Use UTC to compute time differences.
* testing/lisp/test-org-clock.el (test-org-clock/clocktable/scope):
Update test.
2017-06-21 22:32:57 +02:00
Tsuyoshi Kitamoto
877377ebb3
doc/org.texi (External links): Tiny formatting fix
...
* doc/org.texi (External links): Tiny formatting fix.
TINYCHANGE
2017-06-21 15:23:23 +02:00
Nicolas Goaziou
7fe9ae6bd2
org-element: Fix babel call parser
...
* lisp/org-element.el (org-element-babel-call-parser): Handle complex
arguments.
* testing/lisp/test-org-element.el (test-org-element/babel-call-parser):
Add test.
Reported-by: Eric S Fraga <e.fraga@ucl.ac.uk>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00366.html >
2017-06-20 21:20:30 +02:00
Nicolas Goaziou
97fa95cbc3
org-indent: Fix "Fix line and wrap prefixes"
...
* lisp/org-indent.el (org-indent-set-line-properties): Fix
wrap-prefix.
Reported-by: William Denton <wtd@pobox.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00360.html >
2017-06-20 09:53:26 +02:00
Nicolas Goaziou
bb25a04f86
org.texi: Fix menus
...
* doc/org.texi (Top):
(Texinfo export): Fix menus.
2017-06-20 09:32:10 +02:00
Nicolas Goaziou
5d6325ffa3
ox-texinfo: Remove spurious "@insertcopying"
...
* lisp/ox-texinfo.el (org-texinfo-template): Remove "@insertcopying"
command outside title page.
See (info "(texinfo) Copyright") for details.
2017-06-20 09:28:40 +02:00
Nicolas Goaziou
fa6b7bf25c
ox-texinfo: Fix location of text before first headline
...
* doc/org.texi (Info directory file): Fix node name.
(Headings and sectioning structure): Document location of text before
first headline.
(A Texinfo example): Update example.
* lisp/ox-texinfo.el (org-texinfo-template): Handle contents of very
first section.
(org-texinfo-section): Ignore very first section.
According to Texinfo specifications, Top node contents should not
appear in printed output. Move it near "@top" command, within
"@ifnottex".
2017-06-20 09:24:34 +02:00
Kyle Meyer
2ab2a420a6
org.texi: Clean up spacing to pass Emacs's pre-commit check
...
Like c1822e556
(2017-01-25), this is in preparation for syncing with
the Emacs repo.
2017-06-19 23:23:07 -04:00
Nicolas Goaziou
002e2a072c
org-indent: Fix line and wrap prefixes
...
* lisp/org-indent.el (org-indent--text-line-prefixes):
(org-indent--heading-line-prefixes):
(org-indent--inlinetask-line-prefixes): New variables.
(org-indent--compute-prefixes): New function.
(org-indent-mode): Use new function.
(org-indent-set-line-properties): Use new variables. Also prevent
regular lines from being prefixed with stars.
Reported-by: Forrest Sedgwick <fgsedgwick@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00341.html >
2017-06-19 12:24:16 +02:00
Nicolas Goaziou
df62584820
org.texi: Small update
...
* doc/org.texi (A Texinfo example): Update according to latest
ox-texinfo fixes.
2017-06-18 11:03:13 +02:00
Nicolas Goaziou
8769cfc91c
Revert "ox-texinfo: Escape @ { } in index"
...
* lisp/ox-texinfo.el (org-texinfo-keyword): Index keywords are
specific to Texinfo back-end, so they expect regular Texinfo code.
* doc/org.texi (Indices): Update documentation.
2017-06-18 11:00:56 +02:00
Allen Li
b9b921716b
org-attach: Respect org-attach-commit everywhere
...
* lisp/org-attach.el (org-attach-delete-one): Respect org-attach-commit
(org-attach-delete-all): Respect org-attach-commit
(org-attach-sync): Respect org-attach-commit
TINYCHANGE
2017-06-17 16:16:27 +02:00
Nicolas Goaziou
39351d0d14
ox-texinfo: Add missing entities
...
* lisp/ox-texinfo.el (org-texinfo-entity): Add "@textdegree{}" and
"@registeredsymbol".
2017-06-17 12:04:36 +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
Tsuyoshi Kitamoto
01ba5cafa5
doc/org.texi: Fix typos
...
* doc/org.texi (Include files)
(Special blocks in Texinfo export, Translator functions): Fix typos.
TINYCHANGE
2017-06-15 16:48:21 +02: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
17382722db
ox-texinfo: Fix last commit
...
* lisp/ox-texinfo.el (org-texinfo-keyword): Fix last commit.
Do not escape raw #+TEXINFO value.
2017-06-14 23:07:04 +02:00
Nicolas Goaziou
a621289953
ox-texinfo: Escape @ { } in index
...
* lisp/ox-texinfo.el (org-texinfo-keyword): Escape @ { } in index.
2017-06-14 21:27:02 +02:00
Nicolas Goaziou
b47920ed20
org-colview: Fix failing test
...
* lisp/org.el (org-parse-time-string): Allow to specify zone as an
optional argument.
* lisp/org-colview.el (org-columns--age-to-seconds): Apply change
above.
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
Update tests.
2017-06-14 11:00:01 +02:00
Nicolas Goaziou
2040b61391
org-element: Remove outdated comments
2017-06-13 10:41:13 +02:00
Nicolas Goaziou
62dc27dc75
ox-texinfo: Fix spurious "nil" in "special block export
...
* lisp/ox-texinfo.el (org-texinfo-special-block): Remove spurious
"nil" when no option is defined.
2017-06-11 11:38:45 +02:00
Nicolas Goaziou
b8df40eccc
ob-shell: Fix handling list variables
...
* lisp/ob-shell.el (org-babel--variable-assignments:bash): Do not
error when value is a list.
* testing/lisp/test-ob-shell.el (ob-shell/simple-list): New test.
Reported-by: Keith Amidon <camalot@picnicpark.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/113920 >
2017-06-10 00:06:24 +02:00
Kaushal Modi
7cd7b90dcb
Update remote file syntax for Tramp
...
* testing/lisp/test-ox.el (test-org-export/file-uri):
* doc/org.texi (External links): The method part of remote file names
is mandatory now in the emacs master (26+). A valid remote file name
starts with "/method:host:" or "/method:user@host:". ssh is used as
an example method here.
This change in the examples is backward compatible with emacs 25, 24, ..
Suggested by: Michael Albinus <michael.albinus@gmx.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00151.html >
Relevant commit in emacs master causing this change:
<http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ed33337c3e0d0b1a8b140e23168421ea43d79324 >
2017-06-09 16:15:15 -04:00
Nicolas Goaziou
4bdf11a967
org-macro: Silence byte-compiler
2017-06-09 21:22:53 +02:00
Nicolas Goaziou
9a8506b7af
org-footnote: Fix footnote deletion
...
* lisp/org-footnote.el (org-footnote-delete-definitions): Preserve
blank lines after the definition.
* testing/lisp/test-org-footnote.el (test-org-footnote/delete): Add
test.
2017-06-09 09:43:49 +02:00
Nicolas Goaziou
9fdc77a3cd
ox-texinfo: Improve entities handling
...
* lisp/ox-texinfo.el (org-texinfo-entity): Use Texinfo specific
commands whenever possible.
2017-06-08 23:26:26 +02:00
Nicolas Goaziou
a138fedfd2
ox-texinfo: Use UTF-8 instead of LaTeX for entities
...
* lisp/ox-texinfo.el (org-texinfo-entity): Use UTF-8 instead of LaTeX
for entities.
2017-06-08 21:16:43 +02:00
Nicolas Goaziou
6921d84198
ox: Fix search cell error on footnote sections
...
* lisp/ox.el (org-export--install-footnote-definitions):
Provide :raw-value property when building a virtual footnote
section, as `org-export-search-cells' expects it.
2017-06-08 20:59:29 +02:00
Nicolas Goaziou
f03387ef90
ox-texinfo: Fix special characters in plain text
...
* lisp/ox-texinfo.el (org-texinfo-plain-text): Add missing
discretionary hyphenation point. Tiny refactoring.
2017-06-08 15:14:48 +02:00
Nicolas Goaziou
3cf6345b40
org-macro: Fix macro expansion in commented trees
...
* lisp/org-macro.el (org-macro-replace-all): Prevent macro expansion
in commented trees.
* testing/lisp/test-org-macro.el (test-org/macro-replace-all): Add
tests.
* testing/lisp/test-ox.el (test-org-export/expand-macro): Remove
tests.
2017-06-08 14:59:34 +02:00
Nicolas Goaziou
da8b8f0774
org-compat: Add obsolete aliases for link fontification functions
...
* lisp/org-compat.el (org-activate-bracket-links):
(org-activate-plain-links):
(org-activate-angle-links): Define aliases for backward compatibility.
2017-06-08 13:01:44 +02:00
Nicolas Goaziou
9f5c252f93
org-src: Fix footnote reference remote editing
...
* lisp/org-src.el (org-edit-footnote-reference): Do not collapse
footnote definitions after editing remotely one of them.
* testing/lisp/test-org-src.el (test-org-src/footnote-references): New
test.
2017-06-08 00:57:38 +02:00
Nicolas Goaziou
3b8037f316
org-src: Raise an error when source buffer is unreachable
...
* lisp/org-src.el (org-edit-src-exit): Raise an error when source
buffer is unreachable.
2017-06-08 00:57:23 +02:00
Kaushal Modi
51b743fc29
Mention org-speed-command-help in Speed Keys info node
...
* doc/org.texi (Speed keys): Mention org-speed-command-help.
2017-06-07 18:37:23 -04:00