Nicolas Goaziou
f0bf77e82a
Activate lexical binding in some libraries
...
* lisp/ob-C.el (org-babel-prep-session:C):
(org-babel-load-session:C):
* lisp/ob-J.el:
(org-babel-expand-body:J):
(org-babel-execute:J):
* lisp/ob-R.el:
(org-babel-expand-body:R):
* lisp/ob-abc.el:
(org-babel-execute:abc):
(org-babel-prep-session:abc):
* lisp/ob-asymptote.el:
(org-babel-execute:asymptote):
(org-babel-prep-session:asymptote):
* lisp/ob-awk.el:
(org-babel-expand-body:awk):
* lisp/ob-calc.el:
(org-babel-expand-body:calc):
* lisp/ob-clojure.el:
* lisp/ob-comint.el:
(org-babel-comint-in-buffer):
(org-babel-comint-with-output):
(org-babel-comint-eval-invisibly-and-wait-for-file):
* lisp/ob-coq.el:
* lisp/ob-css.el:
(org-babel-execute:css):
(org-babel-prep-session:css):
* lisp/ob-ditaa.el:
(org-babel-execute:ditaa):
(org-babel-prep-session:ditaa):
* lisp/ob-dot.el:
(org-babel-execute:dot):
(org-babel-prep-session:dot):
* lisp/ob-ebnf.el:
* lisp/ob-emacs-lisp.el:
* lisp/ob-eval.el:
* lisp/ob-forth.el:
* lisp/ob-fortran.el:
(org-babel-execute:fortran):
(org-babel-prep-session:fortran):
(org-babel-load-session:fortran):
* lisp/ob-gnuplot.el:
(org-babel-expand-body:gnuplot):
(org-babel-prep-session:gnuplot):
(org-babel-gnuplot-initiate-session):
* lisp/ob-groovy.el:
(org-babel-prep-session:groovy):
(org-babel-groovy-initiate-session):
* lisp/ob-haskell.el:
(org-babel-haskell-initiate-session):
* lisp/ob-io.el:
(org-babel-prep-session:io):
(org-babel-io-initiate-session):
* lisp/ob-java.el:
(org-babel-execute:java):
* lisp/ob-js.el:
* lisp/ob-keys.el:
* lisp/ob-latex.el:
(org-babel-prep-session:latex):
* lisp/ob-ledger.el:
(org-babel-execute:ledger):
(org-babel-prep-session:ledger):
* lisp/ob-lilypond.el:
(org-babel-lilypond-commands):
(org-babel-lilypond-process-basic):
(org-babel-prep-session:lilypond):
(org-babel-lilypond-parse-line-num):
* lisp/ob-lisp.el:
* lisp/ob-makefile.el:
(org-babel-execute:makefile):
(org-babel-prep-session:makefile):
* lisp/ob-matlab.el:
* lisp/ob-maxima.el:
(org-babel-prep-session:maxima):
* lisp/ob-mscgen.el:
(org-babel-prep-session:mscgen):
* lisp/ob-ocaml.el:
(org-babel-execute:ocaml):
(org-babel-prep-session:ocaml):
* lisp/ob-octave.el:
(org-babel-execute:octave):
(org-babel-octave-initiate-session):
* lisp/ob-org.el:
(org-babel-prep-session:org):
* lisp/ob-perl.el:
(org-babel-prep-session:perl):
(org-babel-perl--var-to-perl):
(org-babel-perl-initiate-session):
* lisp/ob-picolisp.el:
(org-babel-expand-body:picolisp):
(org-babel-execute:picolisp):
* lisp/ob-plantuml.el:
(org-babel-execute:plantuml):
(org-babel-prep-session:plantuml):
* lisp/ob-processing.el:
(org-babel-prep-session:processing):
* lisp/ob-python.el:
(org-babel-python-initiate-session):
* lisp/ob-ref.el:
(org-babel-ref-resolve):
* lisp/ob-ruby.el:
(org-babel-ruby-initiate-session):
* lisp/ob-sass.el:
(org-babel-execute:sass):
(org-babel-prep-session:sass):
* lisp/ob-scala.el:
(org-babel-execute:scala):
(org-babel-prep-session:scala):
(org-babel-scala-initiate-session):
* lisp/ob-scheme.el:
* lisp/ob-screen.el:
(org-babel-prep-session:screen):
(org-babel-screen-session-write-temp-file):
(org-babel-screen-test):
* lisp/ob.el:
* lisp/org-colview.el:
(org-columns-todo):
(org-columns-set-tags-or-toggle):
(org-columns-new):
(org-columns-uncompile-format):
(org-agenda-colview-summarize):
* lisp/org-footnote.el:
(electric-indent-mode):
* lisp/org-indent.el:
(org-indent-refresh-maybe):
* lisp/org-list.el:
* lisp/org-macro.el:
(org-macro--collect-macros):
* lisp/org-src.el:
* lisp/org-table.el:
(sort-fold-case):
(org-table-create):
(org-table-field-info):
(org-table-transpose-table-at-point):
(org-table-remove-rectangle-highlight):
(orgtbl-create-or-convert-from-region):
(org-define-lookup-function):
* lisp/ox-ascii.el:
(org-ascii-format-drawer-function):
(org-ascii--has-caption-p):
(org-ascii-bold):
(org-ascii-center-block):
(org-ascii-clock):
(org-ascii-code):
(org-ascii-dynamic-block):
(org-ascii-entity):
(org-ascii-example-block):
(org-ascii-export-snippet):
(org-ascii-export-block):
(org-ascii-fixed-width):
(org-ascii-footnote-reference):
(org-ascii-horizontal-rule):
(org-ascii-inline-src-block):
(org-ascii-format-inlinetask-default):
(org-ascii-italic):
(org-ascii-keyword):
(org-ascii-latex-environment):
(org-ascii-latex-fragment):
(org-ascii-line-break):
(org-ascii-node-property):
(org-ascii-planning):
(org-ascii-quote-block):
(org-ascii-radio-target):
(org-ascii-special-block):
(org-ascii-src-block):
(org-ascii-statistics-cookie):
(org-ascii-subscript):
(org-ascii-superscript):
(org-ascii-strike-through):
(org-ascii-timestamp):
(org-ascii-underline):
(org-ascii-verbatim):
(org-ascii-verse-block):
(org-ascii-filter-headline-blank-lines):
(org-ascii-filter-paragraph-spacing):
(org-ascii-filter-comment-spacing): Use lexical binding.
2015-10-26 01:56:00 +01:00
Nicolas Goaziou
b4af3f0852
Allow more characters in emphasis
...
* lisp/org.el (org-emphasis-regexp-components): Allow singe quote,
double quote and comma as the last character in an emphasis string.
Reported-by: Marcin Borkowski <mbork@mbork.pl>
<http://permalink.gmane.org/gmane.emacs.orgmode/102191 >
2015-10-25 19:20:25 +01:00
Nicolas Goaziou
3072cb28e8
org-agenda: Improve display for repeaters
...
* lisp/org-agenda.el (org-agenda-get-deadlines):
(org-agenda-get-scheduled): For past repeaters, compute the number of
scheduled or deadline days since original date, not closest repeater.
Suggested-by: cesar mena <cmena@pobox.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/101884 >
2015-10-25 18:21:03 +01:00
Nicolas Goaziou
dae03e8790
Fix failing tests
...
* testing/lisp/test-org.el (test-org/closest-date): Remove tests that no
longer apply to current code.
2015-10-25 16:50:41 +01:00
Nicolas Goaziou
ebe2d83eea
Partly revert "Change `org-agenda-repeating-timestamp-show-all' targets"
...
* lisp/org.el (org-closest-date): Handle every type of repeater.
Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/102021 >
2015-10-25 16:48:50 +01:00
Nicolas Goaziou
842c5f7cb7
Merge branch 'maint'
2015-10-25 15:55:44 +01:00
Nicolas Goaziou
541aa0f62d
org-clock: Fix clocking in
...
* lisp/org-clock.el (org-clock-find-position): Correctly position cursor
on the correct headline.
Reported-by: Jan Malakhovski <oxij@oxij.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/102170 >
2015-10-25 15:51:53 +01:00
Nicolas Goaziou
ba4d3376c1
org-lint: Allow sorting by warning message.
...
* lisp/org-lint.el (org-lint--report-mode): Allow sorting by warning message.
Suggested-by: Rainer M Krug <Rainer@krugs.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/102047 >
2015-10-24 11:41:44 +02:00
Nicolas Goaziou
9508cc4eef
Merge branch 'maint'
2015-10-24 11:39:09 +02:00
Nicolas Goaziou
9277e63352
ob-core: Fix "wrong-type-argument stringp nil"
...
* lisp/ob-core.el (org-babel-merge-params): Tolerate empty :exports
parameter.
Reported-by: Rainer M Krug <Rainer@krugs.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/102005 >
2015-10-24 11:37:46 +02:00
Kyle Meyer
666fd99175
Merge branch 'maint'
2015-10-23 11:19:16 -04:00
Kyle Meyer
8c763ab08c
Restore behavior of '.' in org-read-date
...
* lisp/org.el (org-read-date-minibuffer-local-map): Fix period behavior
broken by e802936
.
Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/102071 >
2015-10-23 11:15:44 -04:00
Nick Dokos
30ec973c8b
Fix org-bbdb-anniversaries-future.
...
Forgot the mapcar in commit 75f91f0bb7
.
2015-10-20 21:10:52 -04:00
Oleh Krehel
481719fbd5
Clear non-repeated SCHEDULED when marking a repeated DEADLINE done
...
* lisp/org.el (org-auto-repeat-maybe): When a TODO has a DEADLINE
that's repeatable, but SCHEDULED that isn't repeatable, clear the
SCHEDULED after setting the current repeat to DONE.
The repeatable SCHEDULED will be re-scheduled as before.
Reference:
http://stackoverflow.com/questions/18123972/emacs-org-mode-clear-non-repeated-scheduled-time-when-deadline-is-repeated
2015-10-19 14:03:58 +02:00
Nicolas Goaziou
a709aed145
ox: Tiny refactoring
2015-10-18 23:06:08 +02:00
Nicolas Goaziou
9f18368311
Add tests for broken links handling
...
* testing/lisp/test-ox.el (test-org-export/handle-options): Add tests.
2015-10-18 23:02:15 +02:00
Nicolas Goaziou
c2eeaca0ca
ox: Preserve compatibility for Emacs 24.3
2015-10-18 11:02:51 +02:00
Nicolas Goaziou
af4e118870
Merge branch 'maint'
2015-10-18 09:49:15 +02:00
Nicolas Goaziou
4e864643bd
Fix `org-return-follows-link' on links with emphasis
...
* lisp/org.el (org-return): Properly follow links when description is
emphasized. Also tolerate links and timestamps in otherwise forbidden
areas (e.g., comments, node properties...), much like
`org-open-at-point'.
* testing/lisp/test-org.el (test-org/return): Add tests.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/101977 >
2015-10-18 09:48:54 +02:00
Nicolas Goaziou
486d947761
Merge branch 'maint'
2015-10-18 09:28:30 +02:00
Nicolas Goaziou
8e4650c887
ox-ascii: Fix code typo
...
* lisp/ox-ascii.el (org-ascii--describe-links): Fix code typo introduced
in d6a718a
.
2015-10-18 09:27:28 +02:00
Nicolas Goaziou
bf91460d39
Merge branch 'maint'
2015-10-18 01:41:21 +02:00
Nicolas Goaziou
f01b3fadbc
org-clock: Fix clock drawer creation
...
* lisp/org-clock.el (org-clock-find-position): Create clock drawer when
a drawer is missing, even though requested, but some clocks are
already present in the entry.
Reported-by: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/101973 >
2015-10-18 01:39:36 +02:00
Nicolas Goaziou
158e40f58d
Merge branch 'maint'
2015-10-18 00:03:36 +02:00
Nicolas Goaziou
d6a718a93f
ox-ascii: Fix external id links
...
* lisp/ox-ascii.el (org-ascii--describe-links): Fix export when id link
targets an external file.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/101978 >
2015-10-18 00:02:31 +02:00
Nicolas Goaziou
b369da2339
org-agenda: Fix last commit
...
* lisp/org-agenda.el (org-agenda-get-deadlines):
(org-agenda-get-scheduled): Fix last commit.
2015-10-17 21:57:53 +02:00
Nicolas Goaziou
005aa06ed5
org-agenda: Skip SCHEDULED and DEADLINE false positives
...
* lisp/org-agenda.el (org-agenda-get-deadlines):
(org-agenda-get-scheduled): Check point is really on a planning line
before proceeding.
2015-10-17 15:49:45 +02:00
Nicolas Goaziou
59761024b1
ox: Add an option to ignore broken links
...
* lisp/ox.el (org-export-with-broken-links): New variable.
(org-export-options-alist): Add new OPTIONS item.
(org-link-broken): New error type.
(org-export-resolve-coderef):
(org-export-resolve-fuzzy-link):
(org-export-resolve-id-link): Raise appropriate error symbol when a link
cannot be resolved.
(org-export-data): Handle new error type.
* doc/org.texi (Export settings): Document new feature.
* testing/lisp/test-ox.el (test-org-export/resolve-id-link):
(test-org-export/resolve-fuzzy-link):
(test-org-export/resolve-coderef): Update tests.
2015-10-17 14:42:07 +02:00
Nicolas Goaziou
707fbc3778
Merge branch 'maint'
2015-10-16 23:20:57 +02:00
Nicolas Goaziou
9de1ee1b6f
org-element: Fix parsing of planning in inline tasks
...
* lisp/org-element.el (org-element--next-mode): Line following an
inlinetask can be a planning.
* testing/lisp/test-org-element.el (test-org-element/inlinetask-parser):
Update test.
Reported-by: Gregor Zattler <telegraph@gmx.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/101958 >
2015-10-16 23:19:06 +02:00
Nicolas Goaziou
fcb75f322a
Merge branch 'maint'
2015-10-16 22:53:22 +02:00
Nicolas Goaziou
0ee8ba3e0d
ox-beamer: Fix labels
...
* lisp/ox-beamer.el (org-beamer--get-label): Remove protective braces
when extracting label from options.
(org-beamer--format-frame): Protect label with braces if it contains
colons.
Based off a patch from Fabrice
Popineau (<http://permalink.gmane.org/gmane.emacs.orgmode/101933 >).
2015-10-16 22:38:14 +02:00
Nicolas Goaziou
249b7b4742
Merge branch 'maint'
2015-10-16 22:17:09 +02:00
Michael O'Connor
843be85c1d
org.texi, orgguide.texi: Fix spelling of Sean Astin's name
...
* doc/org.texi: Fix a typo of Sean Astin's name as Sean Austin.
* doc/orgguide.texi: Fix a typo of Sean Astin's name as Sean Austin.
TINYCHANGE
2015-10-16 22:16:37 +02:00
Nicolas Goaziou
a427098b57
Change `org-agenda-repeating-timestamp-show-all' targets
...
* lisp/org.el (org-closest-date): Rewrite function with less arguments.
Improve readability.
(org-time-string-to-absolute): Apply changes to `org-closest-date'.
Improve docstring.
* testing/lisp/test-org.el (test-org/closest-date): New test.
This change implies specific repeaters (i.e., ".+" and "++") are no
longer treated the same as regular one (i.e. "+") wrt
`org-agenda-repeating-timestamp-show-all'. Indeed, only the latter
represents multiple dates. The former represent another date only when
TODO state changes, which could then skip some occurrences.
This fixes issue raised at
<http://permalink.gmane.org/gmane.emacs.orgmode/101884 > and
<http://article.gmane.org/gmane.emacs.orgmode/26154 >.
2015-10-16 18:18:49 +02:00
Nicolas Goaziou
3beb530e50
ORG-NEWS: Document ox-beamer change wrt `org-latex-prefer-user-labels'
2015-10-15 18:26:27 +02:00
Nicolas Goaziou
e8f4488f43
ox-beamer: Obey to `org-latex-prefer-user-labels'
...
* lisp/ox-beamer.el (org-beamer--get-label): Obey to
`org-latex-prefer-user-labels'.
Suggested-by: Fabrice Popineau <fabrice.popineau@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/101894 >
2015-10-15 10:33:27 +02:00
Nicolas Goaziou
89c0c2e30b
ORG-NEWS: Document :preparation-function change
2015-10-15 10:26:24 +02:00
Nicolas Goaziou
96681fcb68
Merge branch 'maint'
2015-10-15 00:05:38 +02:00
Nicolas Goaziou
a36c15494e
org-clock: Fix quarterly clock reports
...
* lisp/org-clock.el (org-clock-special-range): Properly set Q according
to block specification.
Reported-by: "L.C. Karssen" <lennart@karssen.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/101899 >
2015-10-15 00:03:36 +02:00
Nicolas Goaziou
606b5fdd87
ox-publish: Fix void-variable project-plist
...
* lisp/ox-publish.el (org-publish-projects): Fix bug introduced in
346d227
.
2015-10-14 12:39:07 +02:00
Nicolas Goaziou
fa61cb4079
Merge branch 'maint'
2015-10-13 23:57:48 +02:00
Nicolas Goaziou
1c7dca9692
ox-beamer: Fix againframe command
...
* lisp/ox-beamer.el (org-beamer-headline): Make sure any fuzzy reference
provided for an againframe ends up pointing to a headline.
2015-10-13 23:51:17 +02:00
Nicolas Goaziou
5565645f75
Merge branch 'maint'
2015-10-13 21:44:13 +02:00
Jan Seeger
d183c59e46
org-capture: Reverse capture finalize and refile, hack buffer killing
...
* org-capture.el (org-capture-refile): Call finalize first, then
refile. If the capture buffer needs to be killed afterwards, kill
after refiling.
Refiling before finalizing led to an incorrect cursor position during
refile. Since adjusting the buffer position and bounds for the refiled
entry is difficult, I reverted the `org-capture-refile' function to its
original order of finalizing and then refiling. However, this leads to
a bug with killing the buffer on capture, described in
<http://permalink.gmane.org/gmane.emacs.orgmode/78027/ >. To work around
this, now the :kill-buffer flag is cleared before calling finalize, and
the capture buffer is killed after `org-refile' is called.
TINYCHANGE
2015-10-13 21:42:47 +02:00
Nicolas Goaziou
346d227228
ox-publish: Call preparation function earlier
...
* lisp/ox-publish.el (org-publish-projects): Call preparation function
earlier in the process, before files constituting the project are
collected.
Suggested-by: Arun Isaac <theroarofthedragon@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/101858 >
2015-10-13 21:39:02 +02:00
Nick Dokos
75f91f0bb7
Allow early-warning anniversaries in agenda.
...
* lisp/org-bbdb.el (org-bbdb-anniversaries-future, org-bbdb-date-list): New functions.
* doc/org.texi: Document the usage of `org-bbdb-anniversaries-future'.
* etc/ORG-NEWS: Feature description.
Feature requested by Julien Cubizolles:
http://thread.gmane.org/gmane.emacs.orgmode/99344
2015-10-13 09:00:16 -04:00
Nicolas Goaziou
94f6b8e124
Merge branch 'maint'
2015-10-11 23:56:57 +02:00
Nicolas Goaziou
c0c16b88fa
ob-clojure: Silence byte-compiler
2015-10-11 23:56:35 +02:00
Nicolas Goaziou
a898059dea
Merge branch 'maint'
2015-10-11 23:32:07 +02:00