Nicolas Goaziou
2ff3101c0e
org-capture: Fix %^T and %^U placeholders
...
* lisp/org-capture.el (org-capture-fill-template): Fix %^T and %^U
placeholders.
Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00528.html >
2017-08-23 10:28:39 +02:00
Jay Kamat
fc84ffee22
ox-md: Fix missing ':' in exported markdown image links
...
* lisp/ox-md.el (org-md-link): Append ':' to the type of non-file
image links.
2017-08-22 23:44:23 +02:00
Nicolas Goaziou
6980b02b6f
Revert "org-macro: Expand macros only within narrowed part of buffer"
...
This reverts commit 82db669de6
.
2017-08-21 21:21:30 +02:00
Nicolas Goaziou
4df137420d
org-src: Fix remote footnote edition
...
* lisp/org-src.el (org-src--edit-element): Ensure read-only overlay in
source buffer is properly removed upon exiting the remote editing
buffer.
2017-08-21 11:27:41 +02:00
Nicolas Goaziou
251f88340a
README_contribute: Change "Org-mode" into "Org mode"
2017-08-20 14:49:10 +02:00
Neil Jerram
69dea9ee63
Fix typo in README_contribute
...
* README_contribute: Fix typo
TINYCHANGE
2017-08-20 14:47:23 +02:00
Nicolas Goaziou
d01ee01d52
Document backslash escaping rule in capture templates
...
* doc/org.texi (Template expansion): Document backslash escaping rule
in capture templates.
Reported-by: Peter Tomhas <peter.tomhas@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00429.html >
2017-08-19 11:10:55 +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
Paul Eggert
731f59f965
Backport commit 5bdc97d55 from Emacs
...
Be consistent in spelling 'ok-if-already-exists'.
5bdc97d55df30f6af107ddd136901983a7e2706a
Paul Eggert
Sun Aug 13 11:55:12 2017 -0700
2017-08-14 22:03:29 -04:00
Galen Menzel
f3abb514a3
Implement `org-decode-time' for backward compatibility
...
* lisp/org-compat.el (org-decode-time): New function.
* lisp/org-clock.el (org-clock-get-sum-start): Use new function.
Emacs 24's `decode-time' doesn't accept two arguments.
2017-08-14 13:02:43 +02:00
Nicolas Goaziou
b862c24b9f
ob-core: Fix `org-babel-goto-named-src-block' at point-min
...
* lisp/ob-core.el (org-babel-find-named-block):
(org-babel-src-block-names): Fix behaviour when match is at point-min.
Reported-by: "Berry, Charles" <ccberry@ucsd.edu>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00324.html >
2017-08-13 19:02:10 +02:00
Chunyang Xu
6f5cacd607
* doc/org.texi: Add org-babel-load-languages to Variable Index
...
TINYCHANGE
2017-08-13 16:23:11 +02:00
Nicolas Goaziou
24a76fbe57
ob-core: Fix improper results indentation
...
* lisp/ob-core.el (org-babel-insert-result): Fix improper results
indentation.
* testing/lisp/test-ob.el (test-ob/preserve-results-indentation): Add
test.
Reported-by: Chunyang Xu <mail@xuchunyang.me>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00308.html >
2017-08-13 16:20:20 +02:00
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