Nicolas Goaziou
5bf7730674
Fix exporting LaTeX fragments within inline footnotes
...
* lisp/ox.el (org-export--prune-tree): Do not change parent by side
effect. It affects footnote references already in the tree.
Reported-by: Paul Stansell <paulstansell@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00302.html >
2017-08-13 15:11:48 +02:00
Galen Menzel
bff63cbeb3
Fix false test failure
...
* testing/lisp/test-org.el (test-org/deadline-close-p): Fix false
failures due to time-zone differences.
2017-08-10 22:39:30 +02:00
Nicolas Goaziou
febab2fedb
Add test for `org-open-at-point'
...
* testing/lisp/test-org.el (test-org/open-at-point/tag): New test.
2017-08-10 12:41:54 +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
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
ec129f8e10
Silence byte-compiler
2017-08-07 14:46:59 +02:00
Nicolas Goaziou
b561c8b7ef
org-clock: Fix typo in last commit
...
* lisp/org-clock.el (org-clock-get-sum-start): Fix typo.
2017-08-07 13:29:52 +02:00
Nicolas Goaziou
43a1d5e920
org-clock: Fix `org-clock-get-sum-start'
...
* lisp/org-clock.el (org-clock-get-sum-start): Return time as UTC.
Reported-by: Josh Moller-Mara <jmm@CNS.NYU.EDU>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00128.html >
2017-08-07 13:25:20 +02:00
Nicolas Goaziou
f6a28ba1c2
Tiny refactoring
...
* lisp/org.el (org-sort-entries): Use keyword instead of symbol.
2017-08-07 13:11:54 +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
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
Marshall handheld Flax
492420b605
org.texi: Replace a misused word
...
* doc/org.texi (Code evaluation security): Replace misused "weary"
with "wary".
TINYCHANGE
2017-08-06 11:58:10 -04:00
Nicolas Goaziou
9974ed39b2
org-src: Fix remote footnote edition
...
* lisp/org-src.el (org-edit-footnote-reference): Clone local variables
in remote editing buffer.
* testing/lisp/test-org-src.el (test-org-src/footnote-references): Add
test.
2017-08-06 10:30:48 +02:00
Nicolas Goaziou
fca0dbcc61
Fix `org-clone-local-variables'
...
* lisp/org.el (org-clone-local-variables): Prevent errors that could
happen when trying to set local variables that cannot be set,
e.g. `enable-multibyte-characters'.
2017-08-06 10:26:01 +02:00
Nicolas Goaziou
f3d7284ebd
ox-md: Fix non-"file" image links
...
* lisp/ox-md.el (org-md-link): Handle non-"file" image links.
Reported-by: Jay Kamat <jaygkamat@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00147.html >
2017-08-06 09:11:59 +02:00
Nicolas Goaziou
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
Michaël Cadilhac
1f6f46aa69
org-capture.el: Document what the time stamp is in capture templates
...
* lisp/org-capture.el (org-capture-templates): Make explicit that the time
stamp aware %-escapes are influenced by `org-capture-use-agenda-date'.
TINYCHANGE
2017-08-06 01:44:23 +02:00
Nicolas Goaziou
4b89f5c0e4
ox-icalendar: Fix thinko
...
* lisp/ox-icalendar.el (org-icalendar-export-current-agenda): Use
`member' instead of `memq'.
2017-08-06 01:19:49 +02:00
Nicolas Goaziou
7e241af591
org-clock: Fix regression in `org-clock-sum'
...
* lisp/org-clock.el (org-clock-sum): Fix regression introduced in
112c5ba479
. Small refactoring.
Reported-by: Josh Moller-Mara <jmm@cns.nyu.edu>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00117.html
2017-08-05 15:35:37 +02:00
Nicolas Goaziou
e67f0f29de
ox-icalendar: Prevent duplicates when writing agenda view
...
* lisp/ox-icalendar.el (org-icalendar-export-current-agenda): Prevent
duplicates when writing agenda view.
Reported-by: Nicolae Cindea <ncindea@gmail.com>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00116.html
2017-08-05 11:02:14 +02:00
Jay Kamat
f320f05192
ORG-NEWS: Fix a small typo in new org babel header example
...
* etc/ORG-NEWS (Using): Fix typo in babel :header-args: conversion
TINYCHANGE
2017-08-01 18:47:07 +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
Jeff Larson
f203d378bd
org-mobile: Specify message digest for OpenSSL commands
...
* lisp/org-mobile.el (org-mobile-encrypt-file):
(org-mobile-decrypt-file): Fix the message digest as MD5 for
compatibility across OpenSSL versions.
OpenSSL switched to using SHA256 by default for symmetric encryption
in version 1.1. Unfortunately that means that newer versions of the
openssl command line tool can not decrypt encrypted org-mobile files
without the '-md md5' option. This commit changes the shell commands
in org-mobile-encrypt-file and org-mobile-decrypt-file to explicitly
specify MD5 as the hash digest.
TINYCHANGE
2017-07-25 09:07:59 +02:00
Nicolas Goaziou
d9713fe3ca
org-clock: Fix :tend with a time zone
...
* lisp/org-clock.el (org-clocktable-steps): Do not force UTC
for :tend.
Reported-by: Dale Sedivec <dale@codefu.org>
2017-07-24 09:40:58 +02:00
Nicolas Goaziou
10bdef394d
org.texi: Fix last commit
2017-07-24 09:34:57 +02:00
Nicolas Goaziou
16dbf09419
org.texi: Document Org Protocol
...
* doc/org.texi (Protocols): Document feature.
2017-07-23 22:48:51 +02:00
Nicolas Goaziou
5e0db07988
ob-emacs-lisp: Fix pp results
...
* lisp/ob-emacs-lisp.el (org-babel-expand-body:emacs-lisp): Move "pp" handling...
(org-babel-execute:emacs-lisp): ... here.
* testing/lisp/test-ob-emacs-lisp.el (ob-emacs-lisp/commented-last-block-line):
Small refactoring.
Reported-by: Chunyang Xu <mail@xuchunyang.me>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00355.html >
2017-07-23 22:41:27 +02:00
Stig Brautaset
a49e146621
Use cl-lib rather than cl variants in org-drill
...
org-drill requires only cl-lib rather than cl, so should use cl-gensym
rather than gensym I believe.
From 1eef99d550e467bf4a3eaf6bdbe4d3a482f6c187 Mon Sep 17 00:00:00 2001
From: Stig Brautaset <stig@brautaset.org>
Date: Fri, 14 Jul 2017 20:45:37 +0100
Subject: [PATCH 2/3] org-drill.el: use cl-gensym rather than gensym
cl-lib is already required by this file, but cl is not.
2017-07-23 11:06:41 +02:00
Stig Brautaset
3e1aeac3b3
use cl-lib functions rather than cl ones in org-test
...
From ead36e862d150e3a83d363bdead850a2e3ec281d Mon Sep 17 00:00:00 2001
From: Stig Brautaset <stig@brautaset.org>
Date: Fri, 14 Jul 2017 20:43:11 +0100
Subject: [PATCH 1/3] org-test.el: use prefixed functions from cl-lib.el rather
than cl.el
2017-07-23 11:06:37 +02:00
Rasmus
3650c980d8
ox-html: Use correct "br" tag for subtitle
...
* lisp/ox-html.el (org-html-template): Use correct "br" tag depending
on :html-doctype.
Reported-by: Olivier Berger <olivier.berger@telecom-sudparis.eu>
<http://permalink.gmane.org/gmane.emacs.orgmode/114546 >
2017-07-22 14:07:39 +02: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
Nathaniel Flath
404ac42ee5
org-agenda-filter-by-tag: Only accept existing tags
...
* org-agenda.el (org-agenda-filter-by-tag): Pass t for the
require-match argument of completing-read because the collection
includes all valid tags.
In addition to preventing a user from filtering on a value that
doesn't match any entries, this makes the default Emacs completion
more convenient because a tag can be selected by entering its unique
prefix.
2017-07-16 16:58:35 -04:00
Nicolas Goaziou
8d9854ca8a
org-capture: Fix last commit
...
* lisp/org-capture.el (org-capture-fill-template): %K link
specifically targets a headline. Also provide a description.
2017-07-14 10:40:03 +02:00
Nicolas Goaziou
3315bd1118
org-capture: Fix %k and %K in capture template
...
* lisp/org-capture.el (org-capture-fill-template): Fix link returned
by %K. Also, both %k and %K should be expanded as strings even when
there is no clocking data.
Reported-by: Michal Politowski <mpol@meep.pl>
2017-07-13 14:08:20 +02:00
Chunyang Xu
a8e13b9ffc
library-of-babel: Fix typo
...
* doc/library-of-babel.org: Replace non-existent with-temp-filebuffer.
TINYCHANGE
2017-07-13 10:00:58 +02:00
Yuri D. Lensky
b3c54c1119
org-depend.el: Fix check for previous-sibling blocker
...
* contrib/lisp/org-depend.el (org-depend-block-todo): Fix check for
previous-sibling blocker.
The "previous-sibling" blocker checked the previous visible heading,
instead of the true previous sibling.
2017-07-12 14:11:53 +02:00
Nicolas Goaziou
60eda8e4ec
org-clock: Fix :tstart :tend parsing with time zones
...
* lisp/org-clock (org-clocktable-steps): Fix :tstart :tend parsing
with time zones.
The regression was introduced in 112c5ba479
.
Reported-by: Dale Sedivec <dale@codefu.org>
2017-07-10 10:56:56 +02:00
Jay Kamat
a8ee8e1e50
ox-md.el: Fix export of irc and mailto links
...
* lisp/ox-md.el (org-md-link): Add mailto and irc to links that pass
their types through to markdown export
See: https://github.com/larstvei/ox-gfm/issues/17 for an external
bug report
TINYCHANGE
2017-07-10 10:07:58 +02: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
Glenn Morris
4abe197403
Backport commit 0fda6d53e from Emacs
...
; Standardize some copyright and license notices
0fda6d53e38cc7073186fed0bd862221d21500ab
Glenn Morris
Wed Jul 5 14:08:35 2017 -0400
2017-07-09 11:27:12 -04:00
Glenn Morris
ef742df8b5
Backport commit 26a308ea1 from Emacs
...
* lisp/ox-html.el (org-html-infojs-template): Update copyright.
26a308ea112637911fd3870139ba0e2d98e58aa0
Glenn Morris
Wed Jul 5 14:07:14 2017 -0400
2017-07-09 11:27:10 -04:00
Marco Wahl
4b4f659d74
doc/org.texi (Easy templates): unified the notation.
2017-07-08 23:29:49 +02: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
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
61ffe97885
ob-comint: Remove unnecessary (require 'tramp)
...
* lisp/ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
Remove unnecessary cache flush.
2017-07-06 19:10:28 +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
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
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
796a78222a
Move an obsolete declaration in "org-compat.el"
...
* lisp/org-compat.el (org-capture-import-remember-templates): Moved
from "org-capture.el".
2017-07-02 09:19:09 +02:00