Nicolas Goaziou
d2c834b215
ob-tangle: Remove useless declarations
2016-12-10 09:54:55 +01:00
Nicolas Goaziou
24219e93fb
Merge branch 'maint'
2016-12-10 01:02:06 +01:00
Nicolas Goaziou
00ea6a286c
ob-tangle: Fix last commit
...
* lisp/ob-tangle.el (org-babel-tangle-single-block):
`org-babel-expand-noweb-references' specifically needs to be run in
the Org document so as to resolve references.
* testing/lisp/test-ob-tangle.el (ob-tangle/continued-code-blocks-w-noweb-ref):
Make sure a failing test doesn't leave a file behind it.
2016-12-10 00:59:08 +01:00
Nicolas Goaziou
c8da8529f5
`org-insert-heading' doesn't create items anymore
...
* lisp/org.el (org-insert-heading): Specialize function for headlines,
not items.
(org-meta-return): Update according to new specifications above.
* lisp/org-list.el (org-insert-item): Add interactive spec.
* doc/org.texi (Structure editing): Update documentation.
* testing/lisp/test-org.el (test-org/insert-heading): Remove tests.
* testing/lisp/test-org-list.el (test-org-list/insert-item): Add test.
2016-12-10 00:32:15 +01:00
Nicolas Goaziou
68d8f860cd
Improve blank line handling in `org-insert-heading'
...
* lisp/org.el (org--blank-before-heading-p): New function.
(org-insert-heading): Use previous function. Major refactoring.
* testing/lisp/test-org.el (test-org/insert-heading):
(test-org/insert-todo-heading-respect-content): Update tests.
2016-12-10 00:32:14 +01:00
Nicolas Goaziou
41a5a66072
Merge branch 'maint'
2016-12-10 00:21:40 +01:00
Nicolas Goaziou
7b148e2d0e
ob-tangle: Respect buffer local variables
...
* lisp/ob-tangle.el (org-babel-spec-to-string): Move some processing...
(org-babel-tangle-single-block): ... there. This function is called
with the Org buffer as its original buffer whereas the previous one is
not.
This is a follow-up to 026fb75
, which was reverted.
Reported-by: David Dynerman <emperordali@block-party.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/110670 >
2016-12-10 00:20:38 +01:00
Nicolas Goaziou
04799d8e39
Revert "ob-tangle: Respect buffer local variables"
...
This reverts commit 026fb75ddb
.
2016-12-10 00:19:45 +01:00
Nicolas Goaziou
a9e6d1a6ea
org-agenda: Remove reference to Timeline
...
* lisp/org-agenda.el (org-agenda-get-restriction-and-command): Remove
reference to Timeline.
2016-12-09 22:33:52 +01:00
Nicolas Goaziou
64efc0cd45
Remove Org Timeline
...
* lisp/org-agenda.el (org-timeline-show-empty-dates):
(org-agenda-only-exact-dates): Remove variables.
(org-timeline):
(org-get-all-dates): Remove functions.
(org-agenda): Remove reference to `org-timeline'
* lisp/org-mouse.el (org-mouse-popup-global-menu): Remove reference to
`org-timeline'.
* lisp/org.el (org-org-menu): Likewise.
2016-12-09 22:19:13 +01:00
Eric Danan
9e80c64d79
New `org-bibtex-headline-format-function'
...
* lisp/org-bibtex.el (org-bibtex-write): Make this function read the
headline format from the newly created variable
`org-bibtex-headline-format-function' instead of systematically using
the entry title.
(org-bibtex-headline-format-function): Create this variable to hold
a function of one argument, the entry alist, and return the string to
be inserted as headline. The default value replicates the current
behavior of returning the entry title.
TINYCHANGE
2016-12-09 21:44:06 +01:00
Nicolas Goaziou
5e3fe91b7c
Merge branch 'maint'
2016-12-08 22:42:44 +01:00
Nicolas Goaziou
e32aca36a4
Simplify matching headlines in `org-link-search'
...
* lisp/org.el (org-link-search): Simplify matching headlines.
2016-12-08 22:40:18 +01:00
Kyle Meyer
53d11dc51d
Merge branch 'maint'
2016-12-07 22:36:28 -05:00
Paul Eggert
b7cb9b54d5
Backport commit eeecac7 from Emacs
...
Fix minor quoting problems in doc strings
eeecac7ab9d1f8c3a29cffe4586e5fd2414dd671
Paul Eggert
Wed Dec 7 11:31:16 2016 -0800
2016-12-07 22:33:31 -05:00
Nicolas Goaziou
872666f738
Merge branch 'maint'
2016-12-07 23:14:50 +01:00
Nicolas Goaziou
3c64f06617
Allow coderef on otherwise empty lines
...
* lisp/org-src.el (org-src-coderef-regexp): Update regexp.
* lisp/ox.el (org-export-resolve-coderef): Use function above.
Reported-by: D M German <dmg@turingmachine.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/110656 >
2016-12-07 23:11:10 +01:00
Nicolas Goaziou
47ca6c129c
Merge branch 'maint'
2016-12-07 00:47:45 +01:00
Nicolas Goaziou
c797cc0f87
ox-latex: Do not generate nested sub/superscripts
...
* lisp/ox-latex.el (org-latex--wrap-latex-math-block): Do not wrap
consecutive sub or super-scripts within the same block.
Reported-by: Scott Otterson <scotto@sharpleaf.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/110589 >
2016-12-07 00:45:52 +01:00
Nicolas Goaziou
768e66fb37
Merge branch 'maint'
2016-12-07 00:16:05 +01:00
Nicolas Goaziou
6ed3fc8010
Fix SCHEDULED removal when repeating a task
...
* lisp/org.el (org-auto-repeat-maybe): Fix bug where repeating a task
containing a timestamp without a repeater would remove the scheduled
date.
Reported-by: 毛晓伟 <maoweirm@126.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110633 >
2016-12-07 00:10:29 +01:00
MaDhAt2r
0063075f65
ob-sql: Add sqsh engine
...
* lisp/ob-sql.el (org-babel-sql-dbstring-sqsh): New function.
(org-babel-execute:sql): Add `sqsh' engine.
2016-12-05 22:45:25 +01:00
Nicolas Goaziou
efe6548611
org-agenda: Fix typo in docstring
...
* lisp/org-agenda.el (org-agenda-prefer-last-repeat): Fix typo.
2016-12-04 23:47:10 +01:00
Nicolas Goaziou
c78bb69a11
Merge branch 'maint'
2016-12-03 23:58:22 +01:00
Nicolas Goaziou
026fb75ddb
ob-tangle: Respect buffer local variables
...
* lisp/ob-tangle.el (org-babel-tangle): Make sure buffer local
variables from Org document are taken into consideration in tangled
document.
Reported-by: David Dynerman <emperordali@block-party.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/110577 >
2016-12-03 23:55:28 +01:00
Nicolas Goaziou
3a4d16deab
Improve repeated entries handling
...
* lisp/org-agenda.el (org-agenda-show-future-repeats):
(org-agenda-prefer-last-repeat): New variables.
(org-agenda-repeating-timestamp-show-all): Remove variable.
(org-agenda-get-timestamps):
(org-agenda-get-deadlines):
(org-agenda-get-scheduled): Use new variables.
2016-12-03 23:35:42 +01:00
Nicolas Goaziou
1658cb26ff
Merge branch 'maint'
2016-12-02 23:25:26 +01:00
Nicolas Goaziou
e72485336f
org-agenda: Fix face for past scheduled time stamps
...
* lisp/org-agenda.el (org-agenda-get-scheduled): Fix face.
2016-12-02 23:24:38 +01:00
Nicolas Goaziou
dfb76590c0
Merge branch 'maint'
2016-12-02 13:01:48 +01:00
Nicolas Goaziou
9950252f34
org-agenda: Fix repeats with nil `org-agenda-repeating-timestamp-show-all'
...
* lisp/org-agenda.el (org-agenda-get-timestamps):
(org-agenda-get-deadlines):
(org-agenda-get-scheduled): When
`org-agenda-repeating-timestamp-show-all' is nil, only display repeat
before and repeat after today (or only repeat at today if those
coincide). Also, computations of warnings are done with last repeat
before today instead of base date.
2016-12-02 13:01:22 +01:00
Nicolas Goaziou
6d5e207c7d
org-agenda: Small refactoring
...
* lisp/org-agenda.el (org-agenda-deadline-face): Small refactoring.
2016-12-02 13:01:22 +01:00
Charles Berry
c91f750f9e
org-compat.el: org-export-babel-evaluate is an obsolete variable
...
* lisp/org-compat.el (org-export-babel-evaluate) is marked as an
obsolete variable. It was marked as a function.
2016-12-01 18:34:43 -08:00
Nicolas Goaziou
305ff7d74a
Merge branch 'maint'
2016-11-30 21:56:42 +01:00
Nicolas Goaziou
e336f39ce7
Fix dpi calculation when previewing LaTeX snippets
...
* lisp/org.el (org--get-display-dpi): Fix docstring.
(org-create-formula-image): Use function above.
Reported-by: Scott Otterson <scotto@sharpleaf.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/110526 >
2016-11-30 21:55:45 +01:00
Nicolas Goaziou
3271cbab65
Merge branch 'maint'
2016-11-30 00:17:49 +01:00
Nicolas Goaziou
c3146209ec
org-agenda: Fix priority for deadlines
...
* lisp/org-agenda.el (org-agenda-get-deadlines): Fix priority
computation.
Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/110519 >
2016-11-30 00:16:56 +01:00
Nicolas Goaziou
28f6fa844d
Merge branch 'maint'
2016-11-29 23:56:50 +01:00
Nicolas Goaziou
ba06303016
org-agenda: Fix time of day presence
...
* lisp/org-agenda.el (org-agenda-get-deadlines): Small refactoring.
(org-agenda-get-scheduled): Do no insert a time of day when current
entry is only a reminder of a previously scheduled task.
Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/110517 >
2016-11-29 23:55:15 +01:00
Nicolas Goaziou
e53452c76c
Merge branch 'maint'
2016-11-29 09:30:10 +01:00
Lixin Chin
f5916c4fbb
Relax the match criteria for MathML header line
...
* lisp/org.el (org-create-math-formula): Allow the xmlns attribute to
be preceded by any other mathml header attribute.
The problem here was that the match criteria for MathML assumed that
the xmlns attribute is the first listed in the top level MathML <math>
element. Some LaTeX -> MathML converters (e.g., pandoc) will add
attributes before xmlns, which is still valid MathML.
2016-11-29 09:28:06 +01:00
Lixin Chin
73694b21d7
ox-odt.el: Fix LaTeX formulae in opendocument exports
...
* lisp/ox-odt.el (org-odt--translate-latex-fragments): Apply signature
change for `org-format-latex'.
Commit a24f339f58
changed the signature
for `org-format-latex' (lisp/org.el) to add `beg' and `end' optional
parameters. This led to an error in ox-odt.el when exporting an
odt document containing LaTeX formulae.
2016-11-29 09:24:11 +01:00
Kyle Meyer
3d80b3545e
Merge branch 'maint'
2016-11-28 18:56:17 -05:00
Kyle Meyer
6983f8e8bf
Issue user-error when trying to drag before first element
...
* lisp/org.el (org-drag-element-backward):
(org-drag-element-forward): Check that org-element-at-point returns a
non-nil value to avoid a type-error when called before first element.
* testing/lisp/test-org.el (test-org/drag-element-backward):
(test-org/drag-element-forward): Add test for when point is before
first element. Adjust existing should-error calls to specify
user-error.
2016-11-28 18:40:43 -05:00
Nicolas Goaziou
9d5e9dc312
Merge branch 'maint'
2016-11-28 01:37:01 +01:00
Nicolas Goaziou
9299efa351
org-agenda: Fix deadlines
...
* lisp/org-agenda.el (org-agenda-get-deadlines): Fix deadlines
display. Also improve priority adjustment.
2016-11-28 01:35:21 +01:00
Nicolas Goaziou
aa15dc1820
Merge branch 'maint'
2016-11-27 23:46:13 +01:00
Nicolas Goaziou
6907766913
org-agenda: Fix docstrings
...
* lisp/org-agenda.el (org-agenda-skip-scheduled-if-done): Tiny rewording.
(org-agenda-skip-deadline-if-done): Fix typo.
2016-11-27 23:45:35 +01:00
Nicolas Goaziou
abbf497b84
org-agenda: Fix done scheduled display
...
* lisp/org-agenda.el (org-agenda-get-scheduled): Skip done scheduled
unconditionally whenever the base date is not the one currently
considered.
2016-11-27 23:43:00 +01:00
Nicolas Goaziou
345449d088
Merge branch 'maint'
2016-11-27 23:09:48 +01:00
Nicolas Goaziou
4b99ed5eb0
org-agenda: Fix repeated time stamps
...
* lisp/org-agenda.el (org-agenda-get-timestamps): Properly handle
repeated time stamps. Refactor code. Improve docstring.
2016-11-27 23:09:23 +01:00
Nicolas Goaziou
2998a139c4
Tiny fix
...
* lisp/org.el (org-at-clock-log-p): Use `beginning-of-line' instead of
`move-beginning-of-line'.
2016-11-27 23:09:15 +01:00
Nicolas Goaziou
8887e1de1c
Merge branch 'maint'
2016-11-27 12:20:30 +01:00
Nicolas Goaziou
7fc980f75e
Tiny docstring fix
...
* lisp/org.el (org-compile-file): Fix docstring.
2016-11-27 12:20:01 +01:00
Nicolas Goaziou
8165eb9156
Merge branch 'maint'
2016-11-27 12:09:23 +01:00
Nicolas Goaziou
289363d510
Fix LaTeX preview
...
* lisp/org.el (org-compile-file): Introduce new %O placeholder.
(org-preview-latex-process-alist): Use it.
* lisp/ox-latex.el (org-latex-pdf-process):
* lisp/ox-man.el (org-man-pdf-process):
* lisp/ox-texinfo.el (org-texinfo-info-process): Document it.
Reported-by: Scott Otterson <scotto@sharpleaf.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/110464 >
2016-11-27 12:07:11 +01:00
Nicolas Goaziou
dffd30b24e
Merge branch 'maint'
2016-11-26 00:18:28 +01:00
Nicolas Goaziou
ee7721f795
org-clock: Fix clock tables with file list scope
...
* lisp/org-clock.el (org-dblock-write:clocktable): Handle scope as
a list of files.
Reported-by: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110452 >
2016-11-26 00:15:44 +01:00
Nicolas Goaziou
f50c44897a
Merge branch 'maint'
2016-11-25 18:02:11 +01:00
Nicolas Goaziou
b77ef877ab
org-agenda: Fix "no-catch --cl-block-nil--"
...
* lisp/org-agenda.el (org-agenda-get-category-icon): Use `cl-dolist'
instead of `dolist'.
Reported-by: Karl Voit <devnull@Karl-Voit.at>
<http://permalink.gmane.org/gmane.emacs.orgmode/110443 >
2016-11-25 17:49:13 +01:00
Nicolas Goaziou
8bf0d32aed
Merge branch 'maint'
2016-11-25 12:23:24 +01:00
Nicolas Goaziou
2e35a59763
ox-latex: Fix error when compiling in a different than source file
...
* lisp/ox-latex.el (org-latex-compile): List logfiles with their full
name instead of relative ones.
Reported-by: Éric Würbel <eric.wurbel@univ-amu.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/110402 >
2016-11-25 12:22:54 +01:00
Nicolas Goaziou
b769b57ec4
Merge branch 'maint'
2016-11-25 02:08:46 +01:00
Nicolas Goaziou
26828778c6
org-agenda: Fix previous commit
...
* lisp/org-agenda.el (org-agenda-get-timestamps):
(org-agenda-get-deadlines): Apply `org-agenda--timestamp-to-absolute'
signature change.
2016-11-25 02:07:54 +01:00
Nicolas Goaziou
d82811a4f9
Merge branch 'maint'
2016-11-25 01:54:14 +01:00
Nicolas Goaziou
69ec6258b6
org-agenda: Fix scheduled dates display
...
* lisp/org.el (org-time-string-to-absolute): Change signature.
* lisp/org-agenda.el (org-agenda-get-scheduled): Fix various glitches
in scheduled dates display. Also fix such dates when
`org-agenda-repeating-timestamp-show-all' is nil. Apply signature
change.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110116 >
2016-11-25 01:51:42 +01:00
Nicolas Goaziou
a43eaccfce
Merge branch 'maint'
2016-11-21 23:25:51 +01:00
Nicolas Goaziou
0dd024aa92
ob-js: Fix error when code block ends with a comment
...
* lisp/ob-js.el (org-babel-js-function-wrapper): Isolate body within
wrapper.
Reported-by: Compro Prasad <comproprasad@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110390 >
2016-11-21 23:21:23 +01:00
Nicolas Goaziou
e257da172c
Merge branch 'maint'
2016-11-19 23:18:38 +01:00
Nicolas Goaziou
1319a3be44
ox-html: Fix %d placeholder in pre/postamble string
...
* lisp/ox-html.el (org-html-format-spec): Correctly apply
`org-html-metadata-timestamp-format' on %d placeholder.
Reported-by: Pavel Panchekha <me@pavpanchekha.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110374 >
2016-11-19 23:17:32 +01:00
Nicolas Goaziou
db0377ddc6
Merge branch 'maint'
2016-11-19 23:09:33 +01:00
Nicolas Goaziou
c3c33841eb
Merge branch 'maint' of orgmode.org:org-mode into maint
2016-11-19 23:08:33 +01:00
Nicolas Goaziou
9e2dc98eef
Fix error when exporting body only of an empty buffer
...
* lisp/ox.el (org-export-filter-apply-functions): Return empty string
instead of nil when a filter returns the empty string.
* testing/lisp/test-ox.el (test-org-export/export-scope): Add test.
(test-org-export/filter-apply-functions): New test.
Reported-by: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/110371 >
2016-11-19 23:08:12 +01:00
Kyle Meyer
bc0bebbc43
Merge branch 'maint'
2016-11-19 16:50:37 -05:00
Paul Eggert
ad5e2aed21
Backport commit dc152c5 from Emacs
...
Apple changed the spelling of its operating system again, to "macOS",
effective with macOS 10.12 Sierra (2016-09-20). Change Emacs
documentation and comments to match this. Stick with older OS
spellings ("OS X", "Mac OS X") when talking about older releases where
the older names are more correct.
Modernize usage of 'macOS' in doc and comments
dc152c54f4e44f5f2040883b03f71ff6aa66c893
Paul Eggert
Sun Nov 6 00:42:03 2016 -0700
2016-11-19 16:49:15 -05:00
Nicolas Goaziou
2c466ebff2
ob-clojure: Normalize :show-process syntax
...
* lisp/ob-clojure.el (org-babel-execute:clojure): :show-process
requires a non-nil (and non "no") value.
2016-11-19 07:39:05 +01:00
Nicolas Goaziou
cd4186c5c3
ob-clojure: Small refactoring
...
* lisp/ob-clojure.el (org-babel-execute:clojure): Small refactoring.
2016-11-19 07:35:23 +01:00
Frederick Giasson
56c0ce4a8d
ob-clojure: Add :show-process
...
* lisp/ob-clojure.el (org-babel-clojure-sync-nrepl-timeout): New variable.
(org-babel-execute:clojure): Implement :show-process. Better error
handling.
2016-11-19 00:30:39 +01:00
Nicolas Goaziou
68df8bc4fd
Merge branch 'maint'
2016-11-18 23:04:15 +01:00
Nicolas Goaziou
b3125dc84b
ox-icalendar: Use \r\n instead of \n as line breaks
...
* lisp/ox-icalendar.el (org-icalendar-fold-string): Break lines with
\r\n instead of \n, per RFC 5545.
Reported-by: Stephen Eglen <sje30@cam.ac.uk>
<http://permalink.gmane.org/gmane.emacs.orgmode/110306 >
2016-11-18 23:03:01 +01:00
Charles Berry
3b5ce449c4
Replace `org-export-babel-evaluate' with `org-export-use-babel'
...
* lisp/ob-exp.el (org-babel-exp-process-buffer): Change variable
name `org-export-babel-evaluate' to `org-export-use-babel'. Also
change the name in its `defcustom' and set the `:safe' key.
* lisp/ox-icalendar.el (org-icalendar-export-current-agenda): Change
variable name.
* lisp/ox.el (org-export-as): Change variable name.
* doc/org.texi (Exporting code blocks): Change variable name. Amplify
the explanation of what the variable does. Add variable index entry.
* testing/lisp/test-ob-exp.el: Change variable name.
* testing/lisp/test-ob-lob.el: Change variable name.
* testing/lisp/test-ox.el: Change variable name.
Users were often confused that setting this variable to `nil' will
cause header arguments to be ignored in addition to preventing code
from being evaluated. It is hoped that the documentation changes and
the name `org-export-use-babel' will better convey that everything
babel does can be switched off with this variable.
2016-11-13 15:29:33 -08:00
Nicolas Goaziou
45f25aea75
Merge branch 'maint'
2016-11-13 18:10:53 +01:00
Nicolas Goaziou
8a5e54f1cc
Small fix to documentation
...
* doc/org.texi (Setting tags): Remove misleading information.
* lisp/org.el (org-tag-alist): Fix consistency with
`org-tag-persistent-alist'.
2016-11-13 18:08:15 +01:00
Nicolas Goaziou
6ea46c7257
Merge branch 'maint'
2016-11-13 11:38:09 +01:00
Nicolas Goaziou
cec084584d
Fix docstring
...
* lisp/org.el (org-link-search-must-match-exact-headline): Fix
docstring. Add :safe keyword.
2016-11-13 11:37:53 +01:00
Nicolas Goaziou
ebbc675bd9
Fix TODO keywords case sensitivity
...
* lisp/org.el (org-todo-regexp):
(org-not-done-regexp):
(org-not-done-heading-regexp):
(org-todo-line-regexp):
(org-complex-heading-regexp): Improve docstrings.
(org-insert-todo-heading):
(org-fix-position-after-promote):
(org-link-search):
(org-block-todo-from-children-or-siblings-or-parent):
(org-get-todo-state):
(org-priority):
(org-point-at-end-of-empty-headline):
* lisp/org-agenda.el (org-fix-agenda-info):
(org-agenda-get-todos):
(org-cmp-alpha):
* lisp/org-archive.el (org-archive-subtree):
(org-archive-all-done):
* lisp/org-list.el (org-toggle-item):
* lisp/org-pcomplete.el (pcomplete/org-mode/searchhead): Bind
`case-fold-search' to nil when matching aginst one of the regexp
above.
* testing/lisp/test-org.el (test-org/fuzzy-links): Add tests.
2016-11-13 11:26:17 +01:00
Nicolas Goaziou
3375671e83
Merge branch 'maint'
2016-11-12 01:45:46 +01:00
Nicolas Goaziou
ff0748beac
Small documentation fixes
...
* doc/org.texi (The very busy C-c C-c key):
* lisp/org.el (org-startup-folded): Documentation fixes.
2016-11-12 01:45:05 +01:00
Nicolas Goaziou
6340a78c9f
Merge branch 'maint'
2016-11-12 01:23:36 +01:00
Nicolas Goaziou
393f490386
Remove dependency on "gs" for preview LaTeX
...
* lisp/org.el (org-preview-latex-process-alist): Remove "gs"
requirement.
Reported-by: Frederick Giasson <fred@fgiasson.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110216 >
2016-11-12 01:21:25 +01:00
Nicolas Goaziou
ea3de7286e
Merge branch 'maint'
2016-11-12 01:09:31 +01:00
Nicolas Goaziou
31a112d4dd
org-clock: Add missing space in clock line
...
* lisp/org-clock.el (org-clock-get-clock-string): Add missing space in
clock line when no effort is defined.
Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110235 >
2016-11-12 01:09:00 +01:00
Nicolas Goaziou
e9b3c3ec57
Merge branch 'maint'
2016-11-11 17:49:39 +01:00
Nicolas Goaziou
27b10fb265
ox: Fix duplicate internal references for same title headings
...
* lisp/ox.el (org-export-get-reference): Ensure different elements or
objects generating the same search cell do not get the same internal
reference.
* testing/lisp/test-ox.el (test-org-export/get-reference): Add test.
Reported-by: mstrey@strey.biz
<http://permalink.gmane.org/gmane.emacs.orgmode/110211 >
2016-11-11 17:47:09 +01:00
Nicolas Goaziou
b28377998d
Merge branch 'maint'
2016-11-11 12:04:21 +01:00
Nicolas Goaziou
a3c366eb98
org-colview: Fix time sum when mixing duration and H:MM:SS time
...
* lisp/org-colview.el (org-columns--time-to-seconds): Recognize
a duration even when it contains a H:MM:SS part.
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
Add test.
Reported-by: Björn Döring <bjoern@doering.io>
<http://permalink.gmane.org/gmane.emacs.orgmode/110144 >
2016-11-11 12:02:34 +01:00
Nicolas Goaziou
9a10da6acc
Merge branch 'maint'
2016-11-11 10:18:36 +01:00
Nicolas Goaziou
c93a17dd8a
ox: Fix subtree export when starting with meta-data
...
* lisp/ox.el (org-export-as): Skip planning info and first property
drawer when exporting a subtree.
* testing/lisp/test-ox.el (test-org-export/export-scope): Add test.
2016-11-11 10:17:15 +01:00
Nicolas Goaziou
07ce47693e
Merge branch 'maint'
2016-11-11 01:11:17 +01:00
Nicolas Goaziou
efcaff3688
org-agenda: Treat fake planning info as regular time-stamp
...
* lisp/org-agenda.el (org-agenda-get-timestamps): Treat fake planning
info as regular time-stamp.
Reported-by: Alan Tyree <alantyree@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110197 >
2016-11-11 01:08:53 +01:00
Nicolas Goaziou
147cada506
Merge branch 'maint'
2016-11-11 00:48:30 +01:00
Nicolas Goaziou
c6f9aeb06e
ox-publish: Fix too many opened buffer upon publishing
...
* lisp/ox-publish.el (org-publish-cache-file-needs-publishing): Create
a new buffer for Org files only.
Reported-by: Éric Würbel <eric.wurbel@univ-amu.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/110190 >
2016-11-11 00:45:21 +01:00
Nicolas Goaziou
c0b37e1883
Merge branch 'maint'
2016-11-10 00:27:21 +01:00
Nicolas Goaziou
9f98979ff0
org-element: Prevent parsing meta-data after blank lines
...
* lisp/org-element.el (org-element--current-element): Check that
planning info and property drawers are correctly located before
parsing them.
* testing/lisp/test-org-element.el (test-org-element/planning-parser):
(test-org-element/property-drawer-parser): Add tests.
2016-11-10 00:25:34 +01:00
Nicolas Goaziou
1dc6c4bc9c
org-element: Fix inlinetask parsing
...
* lisp/org-element.el (org-element-headline-parser): Small refactoring.
(org-element-inlinetask-parser): Add missing :pre-blank property. Small
refactoring. Also fix regexp for task end.
* testing/lisp/test-org-element.el (test-org-element/inlinetask-parser):
Add test.
2016-11-09 23:30:39 +01:00
Nicolas Goaziou
52387021dc
Merge branch 'maint'
2016-11-09 18:43:36 +01:00
Nicolas Goaziou
1f87273fd2
ox-latex: Fix temporary files removal when compiling files
...
* lisp/ox-latex.el (org-latex-compile): Assume temporary files are
located in the output directory.
This partly reverts 120f8c0
.
2016-11-09 18:42:29 +01:00
Nicolas Goaziou
c9e0a52a99
Merge branch 'maint'
2016-11-08 18:25:08 +01:00
Nicolas Goaziou
ae68bc516d
ox-latex: Fix texi2dvi command
...
* lisp/ox-latex.el (org-latex-pdf-process): Handle cases where tex file
is not located in default-directory.
2016-11-08 18:24:13 +01:00
Nicolas Goaziou
3fbc867d1a
Merge branch 'maint'
2016-11-08 17:53:48 +01:00
Nicolas Goaziou
004bd64948
Fix docstring
...
* lisp/org.el (org-compile-file): Fix docstring.
2016-11-08 17:53:22 +01:00
Nicolas Goaziou
09e25bd16d
Merge branch 'maint'
2016-11-08 13:41:30 +01:00
Nicolas Goaziou
a135f746a1
ox-latex: Fix latexmk command
...
* lisp/ox-latex.el (org-latex-pdf-process): Fix latexmk command.
2016-11-08 13:40:36 +01:00
Nicolas Goaziou
398ec42685
Merge branch 'maint'
2016-11-08 11:48:35 +01:00
Nicolas Goaziou
120f8c09f4
Fix file compilation in a different directory than current one
...
* lisp/org.el (org-compile-file): Do not set default directory.
(org-preview-latex-process-alist): Update since base-name may no be
located in current directory.
* lisp/ox-latex.el (org-latex-compile): Remove auxiliary files in
default directory instead of ".tex" file directory.
Reported-by: Alex Fenton <alex.fenton@pressure.to>
<http://permalink.gmane.org/gmane.emacs.orgmode/110078 >
2016-11-08 11:44:28 +01:00
Nicolas Goaziou
8dc2d77678
Merge branch 'maint'
2016-11-07 01:16:29 +01:00
Nicolas Goaziou
13dbea95af
Fix documentation
...
* doc/org.texi (Installation):
(Feedback):
(Handling links):
(Setting tags):
(Matching tags and properties):
(Storing searches):
(The very busy C-c C-c key):
(org-crypt):
(Adding hyperlink types):
* lisp/org-agenda.el (org-agenda-todo-ignore-deadlines):
(org-agenda-show-inherited-tags):
(org-agenda-week-view):
(org-agenda-fortnight-view):
(org-agenda-month-view):
(org-agenda-year-view):
* lisp/org-archive.el (org-archive-to-archive-sibling):
* lisp/org-capture.el (org-capture-templates):
* lisp/org-table.el:
* lisp/org.el (org-startup-folded):
(org-tag-alist):
(org-match-sparse-tree): Provide more accurate documentation.
Reported-by: Jorge Morais Neto <jorge13515@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110080 >
2016-11-07 01:14:04 +01:00
Nicolas Goaziou
2c0d8774b4
ox-latex: Allow horizontal rules in table math mode
...
* lisp/ox-latex.el (org-latex--math-table): Handle horizontal rules.
* doc/org.texi (Tables in @LaTeX{} export): Update documentation.
2016-11-06 23:31:54 +01:00
Nicolas Goaziou
a236f7d44f
Merge branch 'maint'
2016-11-06 23:26:15 +01:00
Nicolas Goaziou
975260cb25
ox-latex: Add column groups back in table math mode
...
* lisp/ox-latex.el (org-latex--math-table): Preserve column groups.
Reported-by: Stefanos Carlström <stefanos.carlstrom@fysik.lth.se>
<http://permalink.gmane.org/gmane.emacs.orgmode/110086 >
2016-11-06 23:25:06 +01:00
Nicolas Goaziou
8826f2e36d
Merge branch 'maint'
2016-11-06 13:31:33 +01:00
Nicolas Goaziou
fda64f1ae2
org-clock: Fix `org-clock-load'
...
* lisp/org-clock.el (org-clock-load): New variable.
(org-clock-save):
(org-clock-stored-resume-clock): Use new variable. Small refactoring.
Reported-by: Daniel Borchmann <daniel.borchmann@tu-dresden.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/110077 >
2016-11-06 13:30:05 +01:00
Nicolas Goaziou
bff65547ff
Merge branch 'maint'
2016-11-06 11:30:55 +01:00
Nicolas Goaziou
58683d2cf4
ox-publish: Improve docstrings
...
* lisp/ox-publish.el (org-publish-cache-get): Improve docstrings.
2016-11-06 11:30:23 +01:00
Nicolas Goaziou
88a3c2483e
org-capture: Improve error handling for file locations
...
* lisp/org-capture.el (org-capture-expand-file): Return an error on
invalid locations.
(org-capture-target-buffer): Remove useless checks.
2016-11-06 11:20:25 +01:00
Nicolas Goaziou
dc3c69918f
org-capture: Remove error checking in capture template
...
* lisp/org-capture.el (org-capture-expand-file): Remove error checking
in capture template introduced in
b89dfaa904
for now.
2016-11-06 11:10:23 +01:00
Nicolas Goaziou
958eacdf22
org-capture: Small refactoring
...
* lisp/org-capture.el (org-capture-set-target-location): Refactor using
pattern-matching for clarity.
2016-11-06 09:29:09 +01:00
Nicolas Goaziou
bd061b91f3
Merge branch 'maint'
2016-11-06 08:59:47 +01:00
Nicolas Goaziou
b89dfaa904
org-capture: Fix file+olp target with a relative file name
...
* lisp/org-capture.el (org-capture-expand-file): Expand relative file
names from `org-directory'
(org-capture-target-buffer): Apply change above.
Reported-by: Allen Li <darkfeline@felesatra.moe>
<http://permalink.gmane.org/gmane.emacs.orgmode/110075 >
2016-11-06 08:56:22 +01:00
Nicolas Goaziou
f5645675a3
Disallow S-exp in capture templates
...
* lisp/org-capture.el (org-capture-expand-file): Disallow S-exp.
(org-capture-templates):
* doc/org.texi (Template elements): Update documentation.
A function is equivalent to using S-exp, without tainting code with an
yet another call to `eval'.
2016-11-04 17:41:27 +01:00
Nicolas Goaziou
c81f9fff3b
Revert "org-capture: Remove forbidden value type from "file" templates"
...
This reverts commit 5485170263
.
2016-11-04 17:30:12 +01:00
Renato Ferreira
1d0a27e227
Fix "Invalid face attribute/reference" errors
...
* lisp/org-agenda.el (org-agenda-fontify-priorities): Generate
correct :inherit face property.
2016-11-04 16:42:00 +01:00
Nicolas Goaziou
4c4e843319
ob-core: Fix typos in messages
...
* lisp/ob-core.el (org-babel-check-evaluate):
(org-babel-confirm-evaluate): Fix typos.
2016-11-04 08:34:57 +01:00
Nicolas Goaziou
80befa1983
ox-publish: Fix typo
...
* lisp/ox-publish.el (org-publish-cache-get-file-property): Fix typo.
2016-11-03 12:48:40 +01:00
Nicolas Goaziou
0d97a96c62
ob-core: Fix typo
...
* lisp/ob-core.el (org-babel--get-vars): Fix typo.
2016-11-03 12:45:30 +01:00
Nicolas Goaziou
c61ee8b82a
ox-publish: Fix unwanted buffer pop-up
...
* lisp/ox-publish.el (org-publish-cache-file-needs-publishing): Use
`find-file-noselect' instead of `find-file'.
2016-11-02 09:28:24 +01:00
Nicolas Goaziou
1dc78402dc
ox-publish: Fix typo in docstring
...
* lisp/ox-publish.el (org-publish-cache-get-file-property): Fix typo.
2016-11-02 09:16:35 +01:00
Bastien
e010215e82
lisp/ob-lua.el: Small indentation fix
...
* lisp/ob-lua.el (org-babel-lua-evaluate)
(org-babel-lua-evaluate-external-process): Fix indentation.
2016-11-01 21:39:11 +01:00
Nicolas Goaziou
58dbdb25a1
Fix repeated tasks in certain languages
...
* lisp/org.el (org-timestamp-change): Handle `after' position.
`after' position needs to take into consideration changes in time-stamp
length. Some time locales have variable lengths for abbreviated day
names throughout the week.
Reported-by: "Bruce V. Chiarelli" <mano155@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109951 >
2016-11-01 09:38:56 +01:00
Nicolas Goaziou
1d7150319b
Fix docstrings
...
* lisp/org-clock.el (org-clock-get-table-data):
* lisp/org-element.el (org-element--cache-objects):
(org-element--cache-generate-key):
* lisp/org-footnote.el (org-footnote--collect-references):
* lisp/org-list.el (org-list-to-lisp):
* lisp/org-table.el (orgtbl-to-generic):
* lisp/org.el (org-file-apps):
(org-execute-file-search-functions):
(org-after-todo-statistics-hook):
(org-find-olp):
* lisp/ox-html.el (org-html-table-row-open-tag): Do not escape
parenthesis in docstring when not at column 0.
2016-10-31 10:01:33 +01:00
Nicolas Goaziou
21932c15d3
org-list: Fix docstrings
...
* lisp/org-list.el (org-list-to-latex):
(org-list-to-html):
(org-list-to-texinfo): Document missing parameter.
(org-list-to-subtree): Replace obsolete `org-list-parse-list' with
`org-list-to-lisp'.
2016-10-30 20:25:57 +01:00
Nicolas Goaziou
adfa7649e5
org-compat: Assume `string-prefix-p' is defined
...
* lisp/org-compat.el: `string-prefix-p' was introduced in Emacs 24.1,
which is below Org minimal expectations. Only define
`string-suffix-p' when necessary.
2016-10-29 10:02:27 +02:00
Nicolas Goaziou
a94493f5a2
Properly fontify short captions
...
* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Properly fontify
short captions.
2016-10-29 01:09:26 +02:00
Nicolas Goaziou
7bbe9202c2
Match `org-complex-heading-regexp' with a nil `case-fold-search'
...
* lisp/org-agenda.el (org-agenda-goto):
* lisp/org-clock.el (org-clock-in):
(org-clock-out):
(org-clock-put-overlay):
(org-clock-load):
* lisp/org-element.el (org-element-context):
* lisp/org-footnote.el (org-footnote--allow-reference-p):
* lisp/org-mobile.el:
* lisp/ox.el (org-export--get-subtree-options):
* lisp/org.el (org-insert-heading):
(org-edit-headline):
(org-open-at-point):
(org-refile-get-targets):
(org--get-outline-path-1):
(org-toggle-comment):
(org-set-tags-to):
(org-set-tags):
(org-entry-properties):
(org-delete-indentation):
(org-beginning-of-line):
(org-end-of-line):
(org-mode-flyspell-verify): Bind `case-fold-search' to nil when matching
`org-complex-heading-regexp'.
(org-complex-heading-regexp): Add a note about the necessity to have
`case-fold-search' bound to nil.
2016-10-29 00:38:15 +02:00
Nicolas Goaziou
e8b4eeb482
Fix `org-return' on non-keyword
...
* lisp/org.el (org-return): Recognize non-keywords and split text
accordingly.
* testing/lisp/test-org.el (test-org/return): Add test.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109929 >
2016-10-29 00:00:32 +02:00
Nicolas Goaziou
4f9ec1adeb
org-element: Fix export of LaTeX math in headlines
...
* lisp/org-element.el (org-element-class): Find pseudo-objects in
secondary strings.
* testing/lisp/test-org-element.el (test-org-element/class): Add test.
This bug was introduced in 1a88cf920e
.
Reported-by: Stefanos Carlström <stefanos.carlstrom@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109922 >
2016-10-28 15:46:22 +02:00
Nicolas Goaziou
33f8f8adaa
org-clock: Fix clock table with `file-with-archives' scope
...
* lisp/org-clock.el (org-dblock-write:clocktable): Small refactoring.
(org-clocktable-write-default): Avoid writing a "File" column when using
`file-with-archives' scope instead of deleting it at the end of the
process.
* testing/lisp/test-org-clock.el (test-org-clock/clocktable): Add test.
Reported-by: Dale <dale@codefu.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/109856 >
2016-10-27 11:42:27 +02:00
Nicolas Goaziou
c51d6ca4ab
org-element: Remove wrong code comment
...
* lisp/org-element.el (org-element--parse-objects): Remove wrong code
comment. The function doesn't untabify since 44cb8b1
.
2016-10-27 00:48:33 +02:00
Nicolas Goaziou
018772a795
org-element: Tiny speed-up
...
* lisp/org-element.el (org-element--object-lex): Do not search for radio
targets when they are not allowed in current restriction.
2016-10-27 00:47:11 +02:00
Nicolas Goaziou
a300f362a0
org-element: Fix parsing radio links
...
* lisp/org-element.el (org-element--object-lex): Do not re-match past
1-character long radio links.
* testing/lisp/test-org-element.el (test-org-element/link-parser): Add
test.
Reported-by: Daniel Clemente <n142857@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109861 >
2016-10-27 00:41:19 +02:00
Nicolas Goaziou
0204b0e16f
org-element: Tiny refactoring
...
* lisp/org-element.el (org-element--object-lex): Tiny refactoring.
2016-10-25 18:28:37 +02:00
Nicolas Goaziou
b76e6543b2
Tiny refactoring
...
* lisp/org-element.el (org-element-interpret-data):
* lisp/ox.el (org-export-data): Remove useless binding.
2016-10-25 18:19:05 +02:00
Nicolas Goaziou
5fd886c955
org-src: Silence byte-compiler
2016-10-25 13:23:31 +02:00
Nicolas Goaziou
1a88cf920e
org-element: Improve support for pseudo objects and elements
...
* lisp/org-element.el (org-element-class): New function.
(org-element-map):
(org-element-interpret-data):
* lisp/org-footnote.el (org-footnote--allow-reference-p):
* lisp/org-src.el (org-src--on-datum-p):
* lisp/ox-odt.el (org-odt-footnote-reference):
(org-odt-table-cell):
* lisp/ox.el (org-export-data):
(org-export-expand): Use new function.
* testing/lisp/test-org-element.el (test-org-element/class): New test.
Using generic `org-element-class' allows to handle unknown, i.e.,
pseudo, object or element types. It also reduces code duplication in
`org-element-interpret-data' and `org-export-data', preventing, e.g.,
bugs as the one fixed in c58e1b5
.
2016-10-25 13:13:26 +02:00
Nicolas Goaziou
dd670073de
org-element: Fix interpreting links with % in description
...
* lisp/org-element.el (org-element-link-interpreter): % in description
are confused with format string placeholders. Escape them so as to
fix the error.
* testing/lisp/test-org-element.el (test-org-element/link-interpreter):
Add test.
Reported-by: Daniel Clemente <n142857@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109878 >
2016-10-24 23:56:34 +02:00
Nicolas Goaziou
e5ca11cab8
ox-latex: Fix matrices export
...
* lisp/ox-latex.el (org-latex--wrap-latex-matrices): Do not add spurious
blank lines within a matrices block.
Reported-by: thomas.stenhaug@gmail.com
<http://permalink.gmane.org/gmane.emacs.orgmode/109854 >
2016-10-24 23:33:28 +02:00
Nicolas Goaziou
c58e1b565b
Fix :post-blank handling for pseudo elements and objects
...
* lisp/org-element.el (org-element-interpret-data):
* lisp/ox.el (org-export-data): Correctly guess if a pseudo element or
object should be followed by spaces or blank lines.
* testing/lisp/test-ox.el (test-org-export/pseudo-objects):
(test-org-export/pseudo-elements): New tests.
2016-10-24 23:32:15 +02:00
Michael Brand
359afa6806
Fix table align when recalculating buffer tables
...
* lisp/org-table.el (org-table-recalculate-buffer-tables): Align all
tables in a buffer.
(org-table-iterate-buffer-tables): Align a table only once, align all
tables in a buffer.
2016-10-21 17:35:13 +02:00
Nicolas Goaziou
7a927bcd27
ox: Fix typo
...
* lisp/ox.el (org-export-dictionary): Fix typo.
2016-10-19 23:27:56 +02:00
Nicolas Goaziou
fe4c6a8529
Fix S-TAB when called on a block
...
* lisp/org.el (org-cycle): Call `org-hide-block-toggle-maybe' after
universal argument check. Also remove the function from
`org-tab-first-hook' to that effect.
2016-10-19 20:08:09 +02:00
Nicolas Goaziou
fce3e7395b
Merge branch 'master' of orgmode.org:org-mode
2016-10-19 19:24:02 +02:00
Nicolas Goaziou
e4c38ab1d3
Improve documentation for capture templates
...
* doc/org.texi (Template expansion):
* lisp/org-capture.el (org-capture-templates): Clarify documentation.
Suggested-by: Stig Brautaset <stig@brautaset.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/109844 >
2016-10-19 19:23:31 +02:00
Nicolas Goaziou
449f83b44c
ox: Add translations for Islandic
...
* lisp/ox.el (org-export-dictionary): Add translations for Islandic.
Suggested-by: Jón Gunnar Þorsteinsson <jongth@hi.is>
2016-10-19 18:02:59 +02:00
Bastien
622f233796
org-entities.el (org-entities): Add Amacr and amacr entities
...
Thanks to Karel Sprenger for the suggestion.
2016-10-19 17:05:08 +02:00
Nicolas Goaziou
9aeee623fd
Silence byte-compiler
2016-10-19 16:09:59 +02:00
Nicolas Goaziou
6ca5cc8efb
Better integration between Babel and `C-c C-c'
...
* lisp/org.el (org-ctrl-c-ctrl-c): Handle Babel context without relying
to user hooks.
* lisp/ob-core.el (org-babel-execute-maybe):
(org-babel-hash-at-point): Do not functions in `C-c C-c' hook.
2016-10-19 16:08:09 +02:00
Nicolas Goaziou
4ccd1dfff1
Small refactoring
...
* lisp/org.el (org-ctrl-c-ctrl-c): Small refactoring.
2016-10-19 15:48:42 +02:00
Nicolas Goaziou
a7169be6b2
Remove unnecessary calls to `org-update-radio-target-regexp'
...
* lisp/org-ctags.el (org-ctags-append-topic): Remove call to
`org-update-radio-target-regexp' since topic uses regular targets.
* lisp/org.el (org-ctrl-c-ctrl-c): Do not update radio targets when
point is on a target.
2016-10-19 15:31:10 +02:00
Nicolas Goaziou
77c9c2468d
ox: Add Icelandic quotes
...
* lisp/ox.el (org-export-smart-quotes-alist): Add Icelandic quotes.
Suggested-by: Jón Gunnar Þorsteinsson <jongth@hi.is>
2016-10-19 12:23:34 +02:00
Nicolas Goaziou
3c6c53d426
org-agenda: Fix regression with `org-agenda-skip-scheduled-if-deadline-is-shown'
...
* lisp/org-agenda.el (org-agenda-get-scheduled): Fix code typo. Tiny
refactoring.
The typo was introduced in 72c3f5e8e5
.
Reported-by: Luke <mideniko1234-org@yahoo.co.uk>
<http://permalink.gmane.org/gmane.emacs.orgmode/109832 >
2016-10-18 23:56:16 +02:00
Nicolas Goaziou
adaf808605
ox-latex: Fix source block label with listings package
...
* lisp/ox-latex.el (org-latex-src-block): Properly translate label into
Org internal reference when using "listings" package.
2016-10-18 23:10:56 +02:00
Nicolas Goaziou
e4d4c6e1bc
Fix code typo
...
* lisp/org.el (org-beginning-of-line):
(org-end-of-line): Fix typo in pattern matching.
Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/109829 >
2016-10-17 22:55:57 +02:00
Nicolas Goaziou
8dbee91858
org-agenda: Fix effort sorting
...
* lisp/org-agenda.el (org-cmp-effort): Find effort in the appropriate
location.
The bug was introduced in d978a9e585
.
Reported-by: Luke <mideniko1234-org@yahoo.co.uk>
<http://permalink.gmane.org/gmane.emacs.orgmode/109811 >
2016-10-16 21:02:35 +02:00
Nicolas Goaziou
0cf58cc208
Improve docstrings
...
* lisp/ob-core.el (org-confirm-babel-evaluate):
(org-babel-no-eval-on-ctrl-c-ctrl-c):
(org-babel-hash-at-point):
* lisp/org-agenda.el (org-agenda-custom-commands):
(org-stuck-projects):
(org-agenda):
(org-timeline):
(org-todo-list):
(org-agenda-filter-by-tag):
(org-agenda-log-mode):
(org-agenda-refile):
(org-agenda-show-and-scroll-up):
(org-agenda-tree-to-indirect-buffer):
(org-agenda-show-the-flagging-note):
(org-agenda-to-appt):
* lisp/org-capture.el (org-capture-mode):
(org-capture-use-agenda-date):
(org-capture):
* lisp/org-clock.el (org-clock-in):
(org-clock-display):
* lisp/org-colview.el (org-columns--display-here):
(org-columns):
* lisp/org-footnote.el (org-footnote-section):
* lisp/org-gnus.el (org-gnus-prefer-web-links):
* lisp/org-lint.el (org-lint):
* lisp/org-list.el (org-plain-list-ordered-item-terminator):
(org-list-allow-alphabetical):
(org-list-automatic-rules):
(org-list-use-circular-motion):
* lisp/org-protocol.el (org-protocol-store-link):
(org-protocol-create-for-org):
* lisp/org-src.el (org-src-preserve-indentation):
(org-edit-src-content-indentation):
(org-src-mode-hook):
(org-src-mode):
(org-edit-table.el):
(org-edit-export-block):
(org-edit-src-code):
(org-edit-fixed-width-region):
* lisp/org-table.el (org-table-automatic-realign):
(org-table-copy-increment):
(org-table-formula-evaluate-inline):
(org-table-allow-automatic-line-recalculation):
(org-table-edit-field):
(orgtbl-ascii-plot):
* lisp/org-timer.el (org-timer):
* lisp/org.el (org-deadline-string):
(org-comment-string):
(org-ellipsis):
(org-show-context-detail):
(org-indirect-buffer-display):
(org-cycle-global-at-bob):
(org-insert-heading-respect-content):
(org-enable-table-editor):
(org-context-in-file-links):
(org-display-internal-link-with-indirect-buffer):
(org-file-apps):
(org-refile-targets):
(org-todo-keywords):
(org-use-fast-todo-selection):
(org-treat-insert-todo-heading-as-state-change):
(org-time-clocksum-use-fractional):
(org-time-clocksum-use-effort-durations):
(org-agenda-files):
(org-cycle-hide-archived-subtrees):
(org-cycle):
(org-global-cycle):
(org-tree-to-indirect-buffer):
(org-insert-heading):
(org-store-link):
(org-insert-link):
(org-mark-ring-push):
(org-refile):
(org-todo):
(org-show-todo-tree):
(org-reveal):
(org-check-deadlines):
(org-switchb):
(org-cdlatex-mode):
(org-toggle-latex-fragment):
(org-ctrl-c-ctrl-c):
(org-toggle-heading):
(org-indent-line):
(org-yank):
(org-speedbar-set-agenda-restriction):
* lisp/ox-html.el (org-html-htmlize-output-type):
* lisp/ox-icalendar.el (org-icalendar-combined-agenda-file):
* lisp/ox-publish.el (org-publish-project-alist):
* lisp/ox.el (org-export-in-background):
(org-export-stack-mode):
(org-export--stack-source-at-point):
(org-export-dispatch): Improve quotes and formatting in docstrings.
2016-10-15 17:43:54 +02:00
Nicolas Goaziou
21c6148bbe
Handle comments in source blocks with `comment-line'
...
* lisp/org.el (org-comment-or-uncomment-region): Caller is not
necessarily `comment-dwim'. Also handle `comment-line'.
Reported-by: Xebar Saram <zeltakc@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109809 >
2016-10-15 12:31:25 +02:00
Nicolas Goaziou
8d2f0a4411
Fix `C-a' with visual lines and arguments
...
* lisp/org.el (org-beginning-of-line): Move to beginning of visual line
when appropriate. Fix docstring.
* testing/lisp/test-org.el (test-org/beginning-of-line): Add tests.
2016-10-15 12:00:43 +02:00
Nicolas Goaziou
5c85409464
Remove unnecessary workaround
...
* lisp/org.el (org-end-of-line): Remove unnecessary workaround for bug
#14346 .
2016-10-15 11:36:10 +02:00
Nicolas Goaziou
45048eb783
Fix `C-e' with visible lines and arguments
...
* lisp/org.el (org-end-of-line): Correctly go to the end of visible
line, when appropriate.
* testing/lisp/test-org.el (test-org/end-of-line): Add tests.
2016-10-15 11:36:09 +02:00
Nicolas Goaziou
2971c48cf1
Remove unnecessary workaround
...
* lisp/org.el (org-beginning-of-line): Remove unnecessary workaround for
bug #14346 .
* testing/lisp/test-org.el (test-org/beginning-of-line): Update tests.
2016-10-15 11:26:10 +02:00
Nicolas Goaziou
b9b14376f8
Tiny refactoring
...
* lisp/org.el (org-beginning-of-line): Tiny refactoring. Remove useless
comment. Fix docstring.
2016-10-15 00:51:33 +02:00
Nicolas Goaziou
756bb87d81
Fix regression in `org-beginning-of-line'
...
* lisp/org.el (org-beginning-of-line): Leave point before any invisible
character at column 0. Small refactoring.
* testing/lisp/test-org.el (test-org/beginning-of-line): Add tests.
The regression was introduced in
3baf246f4f
.
2016-10-13 09:41:54 +02:00
Nicolas Goaziou
0c0bc84190
Change "Org-mode" into "Org mode"
...
* lisp/org-agenda.el:
* lisp/org-attach.el:
* lisp/org-bbdb.el:
* lisp/org-capture.el:
* lisp/org-clock.el:
* lisp/org-entities.el:
* lisp/org-gnus.el:
* lisp/org-habit.el:
* lisp/org-id.el:
* lisp/org-info.el:
* lisp/org-inlinetask.el:
* lisp/org-irc.el:
* lisp/org-list.el:
* lisp/org-mhe.el:
* lisp/org-mouse.el:
* lisp/org-table.el:
* lisp/ox-html.el:
* lisp/ox-odt.el: Use "Org mode", or "Org", instead of "Org-mode".
2016-10-11 18:00:08 +02:00
Nicolas Goaziou
e00dfe0ee3
Fix typo in docstring
...
* lisp/org.el (org-link-search): Fix typo.
2016-10-10 00:44:36 +02:00
Nicolas Goaziou
191fe8209f
Make use of `org-ellipsis' face
...
* lisp/org.el (org-ellipsis): Do not allow to specify a face since
`org-ellipsis' face can be modified instead.
(org-mode): Use `org-ellipsis', independently on the value of
`org-ellipsis' (the string).
Reported-by: Vasilij Schneidermann <v.schneidermann@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109543 >
2016-10-09 21:41:25 +02:00
Nicolas Goaziou
75eebb3715
org-element: Small refactoring
...
* lisp/org-element.el (org-element-link-parser): Remove useless cond
branch. "id" links are handled by the previous branch, i.e., "explicit
types".
2016-10-09 09:53:45 +02:00
Nicolas Goaziou
05794b13b3
org-element: Add :format property to link objects
...
* lisp/org-element.el (org-element-link-parser): Add :format property.
Tiny refactoring.
* testing/lisp/test-org-element.el (test-org-element/link-interpreter):
Add one test. Update some others.
Since the link format is lost during parsing, the interpreter can hardly
handle nested links. Indeed, in that case, the inner link is
interpreted as a bracket link, thus breaking the outer link.
Another option could be to guess a safe format for the link to be
interpreted. E.g.,
- any inner link could default to angle format unless it contains ">",
it which case it would become a plain link;
- other links would have the bracket format, unless they contain "][" or
"]]".
In any case, defining :format is less error prone and is similar to what
entities and sub/super-scripts have for curly brackets.
Reported-by: Thibault Marin <thibault.marin@gmx.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109623 >
2016-10-09 09:34:26 +02:00
Nicolas Goaziou
2113cbf296
org-element: Tiny refactoring
...
* lisp/org-element.el (org-element-interpret-data): Elements and objects
are compared with `eq' instead of `equal'. Also remove useless symbol
prefix since move to lexical binding.
2016-10-08 00:47:43 +02:00
Nicolas Goaziou
2116162fe6
ob-core: Prevent spurious blanks lines when executing code
...
* lisp/ob-core.el (org-babel--insert-results-keyword):
(org-babel-where-is-src-block-result): Control better the number of
empty lines around results of a source block evaluation.
* testing/lisp/test-ob.el (test-ob/blocks-with-spaces): Add tests.
(test-ob/specific-colnames): Fix test.
2016-10-07 23:56:37 +02:00
Nicolas Goaziou
91e26352c5
org-lint: Improve report
...
* lisp/org-lint.el (org-lint-extraneous-element-in-footnote-section):
More accurate report for extraneous elements in footnotes section.
2016-10-06 00:23:02 +02:00
Nicolas Goaziou
64ea67c38f
Revert "org-lint: Tolerate drawers in footnotes section"
...
This reverts commit f0b3fa5e6e
.
2016-10-06 00:22:38 +02:00
Nicolas Goaziou
f0b3fa5e6e
org-lint: Tolerate drawers in footnotes section
...
* lisp/org-lint.el (org-lint-extraneous-element-in-footnote-section):
Tolerate drawers (e.g., logbook) as extraneous elements in a footnote
section.
2016-10-06 00:18:50 +02:00
Nicolas Goaziou
b42b3aaafc
org-archive: Fix archive to datetree
...
* lisp/org-archive.el (org-archive-subtree): Fix archiving an entry in
a date tree before an existing entry in the same month.
Reported-by: Klarre N <klarre@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109614 >
2016-10-05 23:57:08 +02:00
Nicolas Goaziou
966e0bff56
Change `org-align-tags-here' into `org--align-tags-here'
...
* lisp/org.el (org-align-tags-here): Renamed to...
(org--align-tags-here): ... this.
This change emphasizes the fact that, as an internal function, it
shouldn't be used without special care. This also prevents confusing
between this function and `org-set-tags' called with a non-nil ALIGN
argument.
2016-10-05 11:54:49 +02:00
Nicolas Goaziou
d907041911
Change :version in defcustoms from "25.1" to "25.2"
...
* lisp/ob-exp.el (org-babel-exp-inline-code-template):
* lisp/ob-lisp.el (org-babel-lisp-eval-fn):
* lisp/org-agenda.el (org-agenda-view-columns-initially):
* lisp/org-attach.el (org-attach-commit):
(org-attach-archive-delete):
(org-attach-annex-auto-get):
* lisp/org-bibtex.el (org-bibtex-inherit-tags):
* lisp/org-clock.el (org-clock-into-drawer):
* lisp/org-colview.el (org-columns-summary-types):
* lisp/org-table.el (org-table-copy-increment):
(org-table-formula-create-columns):
(org-table-convert-region-max-lines):
* lisp/org-timer.el (org-timer-default-timer):
* lisp/org.el (org-export-backends):
(org-cycle-hook):
(org-occur-case-fold-search):
(org-preview-latex-image-directory):
(org-latex-default-packages-alist):
(org-sparse-tree-default-date-type):
(org-structure-template-alist):
(org-effort-durations):
(org-agenda-ignore-properties): Change :version from "25.1" to "25.2".
(customize-package-emacs-version-alist): Fix associations between Org
and Emacs releases.
* lisp/ox-ascii.el (org-ascii-list-margin):
* lisp/ox-beamer.el (org-beamer-subtitle-format):
* lisp/ox-html.el (org-html-format-headline-function):
(org-html-format-inlinetask-function):
(org-html-viewport):
* lisp/ox-latex.el (org-latex-caption-above):
(org-latex-prefer-user-labels):
(org-latex-subtitle-format):
(org-latex-hyperref-template):
(org-latex-images-centered):
(org-latex-text-markup-alist):
(org-latex-format-inlinetask-function):
(org-latex-custom-lang-environments):
(org-latex-compiler-file-string):
(org-latex-compiler):
(org-latex-bib-compiler):
(org-latex-logfiles-extensions):
(org-latex-known-warnings):
* lisp/ox-md.el (org-md-footnotes-section):
(org-md-footnote-format):
* lisp/ox-odt.el (org-odt-format-headline-function):
(org-odt-format-inlinetask-function):
(org-odt-inline-image-rules):
* lisp/ox-texinfo.el (org-texinfo-format-headline-function):
* lisp/ox.el (org-export-with-creator):
(org-export-with-title):
(org-export-with-broken-links):
(org-export-copy-to-kill-ring): Change :version from "25.1" to "25.2".
Neither Org 8.3 nor Org 9.0 were released with Emacs 25.1.
2016-10-05 11:18:39 +02:00
Nicolas Goaziou
30fc890acd
Change "Org-mode" into "Org mode"
...
* lisp/org.el (org-version):
(org-mode-hook):
(org-modules):
(org-support-shift-select):
(org-startup):
(org-replace-disputed-keys):
(org-disputed-keys):
(org-keywords):
(org-cycle):
(org-edit-structure):
(org-sparse-trees):
(org-imenu-and-speedbar):
(org-table):
(org-enable-table-editor):
(org-link):
(org-link-store):
(org-link-follow):
(org-refile):
(org-todo):
(org-progress):
(org-priorities):
(org-time):
(org-tags):
(org-properties):
(org-agenda):
(org-latex):
(org-archive):
(org-fontify-like-in-org-mode):
(orgstruct-mode):
(org-run-like-in-org-mode):
(org-open-link-from-string):
(org-mark-ring):
(org-cdlatex-mode):
(org-shiftselect-error):
(org-submit-bug-report):
(org-create-customize-menu):
(org-speedbar-set-agenda-restriction): Change "Org-mode" into "Org
mode".
2016-10-05 10:10:54 +02:00
Nicolas Goaziou
12f883cd02
Consistently align tags under Org Indent mode
...
* lisp/org.el (org-set-tags): Refactor alignment part using
`org-align-tags-here'.
(org-fix-tags-on-the-fly):
(org-delete-indentation):
(org-return): Use `org-set-tags' instead of low-level
`org-align-tags-here' so as to handle virtual indentation.
2016-10-05 10:05:08 +02:00
Marco Wahl
73efd7cac5
Merge branch 'maint'
2016-10-04 18:17:51 +02:00
Marco Wahl
4d7d52ecd1
org-agenda: Fix a docstring
...
* lisp/org-agenda.el(org-agenda-entry-text-maxlines): Docstring fix.
2016-10-04 18:13:57 +02:00
Nicolas Goaziou
7b42b4a62e
Fix `org-ctrl-c-ctrl-c'
...
* lisp/org.el (org-ctrl-c-ctrl-c): Correctly set tags when called on an
unsupported object type (e.g., a code snippet) in a headline or
inlinetask.
2016-10-04 17:32:24 +02:00
Nicolas Goaziou
50f2061418
Improve docstring
...
* lisp/org.el (org-insert-heading): Document limitation on where
a headline can be split.
Reported-by: Jorge <jorge13515@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109510 >
2016-10-04 12:01:41 +02:00
Nicolas Goaziou
d4c63febc9
Fix typo in docstring
...
* lisp/org.el (org-insert-heading): Fix typo.
2016-10-04 11:38:33 +02:00
Nicolas Goaziou
2b03e945a1
Fix consistency with `org-insert-heading' called with an argument
...
* lisp/org.el (org-insert-heading): Consistently add a new heading at
the end of the subtree when called with an universal argument, even if
point is at beginning of line.
Reported-by: Jorge <jorge13515@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109510 >
2016-10-04 11:33:10 +02:00
Nicolas Goaziou
45c775a4d2
ox-latex: Set default figure position to htbp
...
* lisp/ox-latex.el (org-latex-default-figure-position): Change default
value. Add missing keywords.
Reported-by: Jean Louis <guix@rcdrun.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109468 >
2016-10-02 09:54:17 +02:00
Nicolas Goaziou
eda8ac493f
Fix inconsistencies in `org-occur' binding
...
* doc/org.texi (Sparse trees): Add C-c / / binding for `org-occur'.
* lisp/org.el (org-sparse-tree): Mention "r" suffix for consistency with
other entries in the help menu.
2016-10-02 00:30:14 +02:00
Nicolas Goaziou
005b3c07bb
Fix a docstring
...
* lisp/org.el (org-insert-heading): Fix docstring.
2016-10-01 23:59:34 +02:00
Nicolas Goaziou
29830f7214
ob-core: Make `org-babel-hash-show-time' a defcustom
...
* lisp/ob-core.el (org-babel-hash-show-time): Change into a defcustom.
2016-10-01 10:35:14 +02:00
Nicolas Goaziou
9d7d650cd7
ob-core: Fix hash with time stamp
...
* lisp/ob-core.el (org-babel-result-regexp): Fix regexp.
(org-babel--insert-results-keyword): Simplify format-string.
(org-babel--clear-results-maybe): Fix return value.
* testing/lisp/test-ob.el (test-ob/where-is-src-block-result): Add
tests.
Reported-by: Thomas Alexander Gerds <tag@biostat.ku.dk>
<http://permalink.gmane.org/gmane.emacs.orgmode/109418 >
2016-10-01 10:30:53 +02:00
Nicolas Goaziou
b3c556d83a
Fix tags alignment when headline contains invisible text
...
* lisp/org.el (org-align-tags-here): Do not use `org-move-to-column',
which may move point on the other side of some invisible text.
Refactor code.
* testing/lisp/test-org.el (test-org/tag-align): Add test.
Reported-by: Michael Fiano <michael.fiano@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109435 >
2016-09-30 00:58:21 +02:00
Nicolas Goaziou
12196b8472
Fix documentation
...
* doc/org.texi (Conventions): Remove unhelpful and wrong footnote.
(Initial visibility): Remove spurious paragraph.
(Global and local cycling):
(Motion): Fix function name.
(Plain lists): Reverse prefix argument action.
(Column width and alignment):
(Column groups):
(Tag inheritance):
(Tag hierarchy):
(The date/time prompt): Fix typo
(Link abbreviations):
(Tag searches):
(Timers): Fix wording.
(Checkboxes): Improve accuracy of footnote. Correctly describe the
behaviour of `org-toggle-checkbox' on a headline.
(Filtering/limiting agenda items): More accurate description for `+' and
`-'. Also remove unused `\' key.
(Agenda commands): Fix behaviour description.
* lisp/org-agenda.el (org-agenda-filter-by-tag): Fix docstring
appearance.
(org-agenda-show-and-scroll-up): Fix wording.
* lisp/org-id.el (org-id-link-to-org-use-id): Fix function name.
(org-id-update-id-locations): Remove reference to unused argument.
* lisp/org.el (org-insert-heading): Improve docstring.
(org-insert-todo-heading): Describe behavior on a plain list item.
(org-update-statistics-cookies): Describe behavior when called with
a prefix argument.
(org-metaright): Fix typo.
(org-kill-note-or-show-branches): Fix function name.
(org-yank): Fix wording.
Reported-by: Jorge <jorge13515@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109428 >
2016-09-29 22:22:56 +02:00
Nicolas Goaziou
2b22d503e1
org-table: Fix inserting a new row
...
* lisp/org-table.el (org-table-insert-row): Fix inserting a new row when
the buffer doesn't end with a newline character. Tiny refactoring.
* testing/lisp/test-org-table.el (test-org-table/next-field): New test.
2016-09-28 23:33:32 +02:00
Marco Wahl
ece6e39dfc
ob-tangle: Fix jump from tangle to org
...
* lisp/ob-tangle.el (org-babel-tangle-jump-to-org): Fix the jump from a
tangled part to the respective org in the case when an org-id defines
the linking.
The recent (buggy) behavior was to find the file which has the org-id as
filename.
2016-09-28 14:07:56 +02:00
Nicolas Goaziou
9a7297a281
Silence byte-compiler
2016-09-26 23:13:52 +02:00
Nicolas Goaziou
a1199f040f
Move obsolete function to "org-compat"
...
* lisp/org.el (org-in-fixed-width-region-p): Move to...
* lisp/org-compat.el (org-in-fixed-width-region-p): ... here.
2016-09-26 23:03:49 +02:00
Aaron Ecay
79dab621f9
ox-latex: tiny refactoring.
...
* lisp/ox-latex.el (org-latex--insert-compiler): Refactor.
2016-09-26 16:56:19 +01:00
Aaron Ecay
9bbd9e5ae2
org.el: Omit redundant optional argument
...
* lisp/org.el (org-ctrl-c-ctrl-c): Omit redundant optional argument to
`local-variable-p'.
2016-09-26 16:56:19 +01:00
Aaron Ecay
7772ba6e69
org.el: assume `display-warning' is defined
...
* lisp/org.el (org-display-warning): Assume `display-warning' is
defined.
It is present in emacs since at least 2002
2016-09-26 16:56:19 +01:00
Aaron Ecay
092acf7e67
org.el: obsolete org-in-fixed-width-region-p
...
* lisp/org.el (org-in-fixed-width-region-p): Make obsolete.
It has no calls in core or contrib, and its function would be better
served by using the parser.
2016-09-26 16:56:19 +01:00
Aaron Ecay
7b930dd201
org.el: Assume `command-remapping' is defined.
...
* lisp/org.el (org-remap): Assume `command-remapping' is defined.
It was added to emacs in 2003.
2016-09-26 16:56:19 +01:00
Aaron Ecay
d00d44d6ff
Tiny refactoring
...
* lisp/org.el: (org-dvipng-color, org-latex-color): Use *-color-format
functions.
(org-dvipng-color-format, org-latex-color-format): Use sharp-quotes.
2016-09-26 16:56:19 +01:00
Nicolas Goaziou
2e4b66f5f5
Fix some `cl-case' uses
...
* lisp/org-capture.el (org-capture-finalize):
* lisp/org-timer.el (org-timer-set-mode-line): Symbols need not be
quoted in `cl-case'.
2016-09-25 21:08:36 +02:00
Aaron Ecay
aafb3b5fdd
Fix docstring typo.
...
* lisp/org.el (org-shorten-string): Fix docstring typo.
2016-09-25 16:39:30 +01:00
Aaron Ecay
140aacbf2f
Use ‘eq’ instead of ‘equal’ for symbols
...
* lisp/ob-C.el (org-babel-C-val-to-C-type):
* lisp/ob-core.el (org-babel-get-colnames):
(org-babel-disassemble-tables):
* lisp/ob-lua.el (org-babel-lua-var-to-lua):
(org-babel-lua-table-or-string):
* lisp/ob-python.el (org-babel-python-var-to-python):
(org-babel-python-table-or-string):
* lisp/ob-ruby.el (org-babel-ruby-var-to-ruby):
(org-babel-ruby-table-or-string):
* lisp/ob-shell.el (org-babel-sh-var-to-string):
* lisp/ob-sqlite.el (org-babel-sqlite-table-or-scalar):
* lisp/org-agenda.el (org-agenda-prepare-window):
(org-compile-prefix-format):
* lisp/org-bibtex.el (org-bibtex-headline):
* lisp/org-capture.el (org-capture):
* lisp/org-colview.el (org-columns-next-allowed-value):
* lisp/org-mhe.el (org-mhe-store-link):
(org-mhe-get-message-real-folder):
(org-mhe-get-message-folder):
(org-mhe-get-message-num):
(org-mhe-get-header):
(org-mhe-follow-link):
* lisp/org-table.el (org-define-lookup-function):
* lisp/org.el (format-spec):
* lisp/ox-odt.el (org-odt--translate-description-lists):
* lisp/ox-publish.el (org-publish-compare-directory-files):
Use `eq' instead of `equal' when comparing to symbols.
* lisp/org-timer.el (org-timer-set-mode-line):
* lisp/org-capture.el (org-capture-finalize):
Use `cl-case' instead of `(cond ((eq x 'foo) ...) ...)'.
2016-09-25 16:29:06 +01:00
Nicolas Goaziou
eb3dd6186d
Silence byte-compiler
...
* lisp/org-faces.el (org-src-block-faces): Move it from here...
* lisp/org-src.el (org-src-block-faces): ... to here.
2016-09-24 10:52:49 +02:00
Nicolas Goaziou
5bc8492388
Tiny refactoring
...
* lisp/org.el (org-edit-special): Tiny refactoring.
2016-09-24 09:07:12 +02:00
Nicolas Goaziou
038c50a721
Fix a docstring
...
* lisp/org.el (org-copy-special): Fix docstring. Tiny refactoring.
2016-09-24 09:04:40 +02:00
Nicolas Goaziou
3880789ea5
Fix a docstring
...
* lisp/org.el (org-cut-special): Fix docstring. Tiny refactoring.
2016-09-24 09:03:00 +02:00
Aaron Ecay
48e7f17bc6
Use assq instead of assoc with quoted symbols
...
* lisp/ob-core.el (org-babel-merge-params):
* lisp/org-agenda.el (org-agenda-prepare-window):
(org-agenda-to-appt):
* lisp/org-capture.el (org-capture-finalize):
* lisp/org.el (org-find-invisible-foreground):
(org-open-file):
(org-todo-trigger-tag-changes):
(org-back-over-empty-lines):
* lisp/ox-odt.el (org-odt-get-table-cell-styles):
Use assq instead of assoc with quoted symbols.
2016-09-23 11:20:55 +01:00
Aaron Ecay
79650ffbbd
Use assq instead of assoc for :keywords
...
* lisp/ob-C.el (org-babel-C-execute):
* lisp/ob-J.el (org-babel-execute:J):
* lisp/ob-R.el (org-babel-edit-prep:R):
(org-babel-expand-body:R):
(org-babel-execute:R):
(org-babel-variable-assignments:R):
(org-babel-R-initiate-session):
* lisp/ob-abc.el (org-babel-execute:abc):
* lisp/ob-asymptote.el (org-babel-execute:asymptote):
* lisp/ob-awk.el (org-babel-execute:awk):
* lisp/ob-clojure.el (org-babel-expand-body:clojure):
(org-babel-execute:clojure):
* lisp/ob-core.el (org-babel-expand-body:generic):
(org-babel-load-in-session):
(org-babel-initiate-session):
(org-babel-open-src-block-result):
(org-babel-process-params):
(org-babel-insert-result):
(org-babel-expand-noweb-references):
* lisp/ob-ditaa.el (org-babel-execute:ditaa):
* lisp/ob-dot.el (org-babel-execute:dot):
* lisp/ob-ebnf.el (org-babel-execute:ebnf):
* lisp/ob-emacs-lisp.el (org-babel-expand-body:emacs-lisp):
(org-babel-execute:emacs-lisp):
* lisp/ob-exp.el (org-babel-exp-process-buffer):
(org-babel-exp-do-export):
(org-babel-exp-code):
* lisp/ob-forth.el (org-babel-execute:forth):
* lisp/ob-fortran.el (org-babel-execute:fortran):
* lisp/ob-gnuplot.el (org-babel-gnuplot-process-vars):
(org-babel-expand-body:gnuplot):
(org-babel-execute:gnuplot):
* lisp/ob-groovy.el (org-babel-execute:groovy):
* lisp/ob-haskell.el (org-babel-execute:haskell):
* lisp/ob-io.el (org-babel-execute:io):
* lisp/ob-java.el (org-babel-execute:java):
* lisp/ob-js.el (org-babel-execute:js):
* lisp/ob-latex.el (org-babel-execute:latex):
* lisp/ob-ledger.el (org-babel-execute:ledger):
* lisp/ob-lilypond.el (org-babel-lilypond-process-basic):
* lisp/ob-lisp.el (org-babel-expand-body:lisp):
(org-babel-execute:lisp):
* lisp/ob-lua.el (org-babel-execute:lua):
* lisp/ob-maxima.el (org-babel-execute:maxima):
* lisp/ob-mscgen.el (org-babel-execute:mscgen):
* lisp/ob-ocaml.el (org-babel-execute:ocaml):
* lisp/ob-octave.el (org-babel-execute:octave):
* lisp/ob-org.el (org-babel-execute:org):
* lisp/ob-perl.el (org-babel-execute:perl):
* lisp/ob-picolisp.el (org-babel-execute:picolisp):
* lisp/ob-plantuml.el (org-babel-execute:plantuml):
* lisp/ob-python.el (org-babel-execute:python):
* lisp/ob-ruby.el (org-babel-execute:ruby):
* lisp/ob-sass.el (org-babel-execute:sass):
* lisp/ob-scala.el (org-babel-execute:scala):
* lisp/ob-scheme.el (org-babel-execute:scheme):
* lisp/ob-screen.el (org-babel-execute:screen):
(org-babel-prep-session:screen):
* lisp/ob-shell.el (org-babel-execute:shell):
(org-babel-variable-assignments:shell):
(org-babel-sh-evaluate):
* lisp/ob-shen.el (org-babel-execute:shen):
* lisp/ob-sql.el (org-babel-execute:sql):
* lisp/ob-sqlite.el (org-babel-execute:sqlite):
* lisp/ob-tangle.el (org-babel-tangle):
(org-babel-tangle-single-block):
* lisp/org-src.el (org-src-associate-babel-session):
* lisp/org.el (org-next-link):
Use `assq' instead of `assoc' with :keyword keys.
2016-09-23 11:20:09 +01:00
Konubinix
3dbb74c4f4
Indicate what happens to CLOCK entries in cloned subtrees
...
* lisp/org.el (org-clone-subtree-with-time-shift): Add into the documentation
string a precision about the deletion of the CLOCK entries into the cloned
subtrees. Indicate the rationale for this decision.
2016-09-22 21:55:09 +02:00
Nicolas Goaziou
6fbec75843
org-faces: Fix a docstring
...
* lisp/org-faces.el (org-src-block-faces): Fix quote in docstring.
2016-09-22 21:45:58 +02:00
Nicolas Goaziou
bfc9c815e2
org-src: Tiny fix
...
* lisp/org-src.el (org-src-font-lock-fontify-block): Ensure LANG is case
insensitive.
2016-09-22 21:43:38 +02:00
Rasmus
687214a092
Fix e03e837
...
* lisp/org-src.el (org-src-font-lock-fontify-block): Fix typos and
silence byte-compiler.
2016-09-22 09:34:31 +02:00
Rasmus
e03e837168
org-src: New syntax for source blocks faces
...
* doc/org.texi (Editing source code): Document changes.
* lisp/org-faces.el (org-block): Update docstring.
(org-src-block-faces): New defcustom for source-block faces.
* lisp/org-src.el (org-src-font-lock-fontify-block): Use
org-src-block-faces.
* etc/ORG-NEWS: Update NEWS entry.
2016-09-22 09:31:43 +02:00
Nicolas Goaziou
19113219ba
org-lint: Fix Babel header arg value checker
...
* lisp/org-lint.el (org-lint-wrong-header-value): Do not merge in
default values for header arguments, since we are only checking those
defined in the buffer.
2016-09-19 00:56:34 +02:00
Kyle Meyer
7cb0decdc7
Merge branch 'maint'
2016-09-18 11:30:18 -04:00
Nicolas Goaziou
149b8046ac
`org-open-line' ignores tables at the very beginning of the document
...
* lisp/org.el (org-open-line): Ignore tables at the very beginning of
the document.
* testing/lisp/test-org.el (test-org/open-line): New test.
2016-09-18 17:22:48 +02:00
Michael Albinus
f46b92df92
Backport commit 2c05061 from Emacs
...
* lisp/ob-core.el (org-babel-local-file-name): Use `file-remote-p'.
Add `make-nearby-temp-file' and `temporary-file-directory'
2c0506173d92dd9d6de409a045668c6b5cf1fcef
Michael Albinus
Sun Aug 7 13:57:23 2016 +0200
2016-09-18 11:10:41 -04:00
Jakob Lombacher
c257e31d10
ob-sql: Add dbport and dbpassword options to postgresql
...
* lisp/ob-sql.el (org-babel-sql-dbstring-postgresql): Add port
parameter.
(org-babel-execute:sql): Handle password and port in `postgresql' SQL
engine.
TINYCHANGE.
2016-09-17 10:34:59 +02:00
Nicolas Goaziou
e1982a0a92
org.el: Respect user-defined reftex-cite-format
...
* lisp/org.el (org-reftex-citation): Respect user-defined reftex
citation formats.
Suggested-by: Sebastian Boehm <sebastian@sometimesfood.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/109175 >
2016-09-17 10:28:41 +02:00
Nicolas Goaziou
0ba465b899
ob-J: Add missing keywords in defcustom
...
* lisp/ob-J.el (org-babel-J-command): Add missing keywords.
2016-09-14 23:27:17 +02:00
Marco Wahl
f61bf84836
ob-J: allow also letter 'j' indicate J code
...
* lisp/ob-J.el (org-babel-execute:j): Make `org-babel-execute:j' an
alias of `org-babel-execute:J'. This allows to use the letter
'j' (and not only 'J') to identify the J-language for a source-block.
Note: The source-block marked with 'j' gets the highlighting
according j-mode.
2016-09-14 11:54:01 +02:00
Marco Wahl
bb91f138b9
ob-J: New variable to specify the call to J
...
* lisp/ob-J.el (org-babel-J-command): New custom variable
`org-babel-J-command' to store the command to call J.
2016-09-14 11:31:56 +02:00
Marco Wahl
d68497d887
Merge branch 'maint'
2016-09-12 12:04:34 +02:00
Marco Wahl
b113d4e1e6
org-agenda: Skip invisible line at bulk marking
...
* lisp/org-agenda.el (org-agenda-bulk-mark-regexp): When point is on an
invisible part move point ahead one line (and don't mark that line.)
2016-09-12 11:44:49 +02:00
Nicolas Goaziou
b5403dda35
org-compat: Silence byte-compiler
2016-09-07 18:31:23 +02:00
Nicolas Goaziou
d66721f6b0
ox: Use tabulated lists for export stack display
...
* lisp/ox.el (org-export-stack):
(org-export-stack-mode):
(org-export--stack-generate):
(org-export--stack-num-predicate):
(org-export--stack-source-at-point): Use tabulated lists.
2016-09-07 18:27:54 +02:00
Nicolas Goaziou
d1c1b7f8fa
Move obsolete functions to "org-compat.el"
...
* lisp/org.el (org-sublist):
(org-table-recognize-table.el):
(org-minutes-to-hh:mm-string):
(org-remove-angle-brackets):
(org-remove-double-quotes): Move functions...
* lisp/org-compat.el: ... here.
2016-09-07 16:12:10 +02:00
Nicolas Goaziou
ddb823e196
org-footnote: Silence byte-compiler
...
* lisp/org-footnote.el (org-footnote-normalize-label): Silence
byte-compiler.
2016-09-07 15:56:38 +02:00
Nicolas Goaziou
56d75f0a24
org-table: Small refactoring
...
* lisp/org-table.el (org-table-justify-field-maybe): Small refactoring.
2016-09-06 00:31:46 +02:00
Nicolas Goaziou
7612fb2b9a
Remove compatibility code for subr-x.el defsubsts
...
* lisp/org-compat.el: Remove compatibility code for subr-x.el defsubsts.
* lisp/org-footnote.el (org-footnote-normalize-label):
* lisp/org-macs.el (org-unbracket-string): Avoid using subr-x.el
functions.
2016-09-06 00:08:32 +02:00
Nicolas Goaziou
5b5f9a874c
Merge branch 'maint'
2016-09-05 18:21:29 +02:00
Nicolas Goaziou
ab79736843
org-table: Fix alignment issue with entities
...
* lisp/org-table.el (org-table-justify-field-maybe): Preserve text
properties so entities can be properly aligned.
2016-09-05 18:08:31 +02:00
Nicolas Goaziou
a4f5d35fcc
org-agenda: Tiny fix
...
* lisp/org-agenda.el (org-agenda-write): Allow writing ".htm" files.
2016-09-03 09:32:46 +02:00
Aaron Ecay
1509906e29
ob-comint: Fix org-babel-comint-in-buffer
...
* lisp/ob-comint.el (org-babel-comint-in-buffer):
Fix bug.
The function’s docstring says it wraps BODY in ‘save-excursion’, but in
fact it did not.
2016-09-03 02:48:23 +01:00
Aaron Ecay
d350baf2db
babel: change single-armed ‘if’ statements to ‘when’
...
* lisp/ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
* lisp/ob-core.el (org-babel-initiate-session):
(org-babel-hide-result-toggle):
(org-babel-insert-result):
* lisp/ob-eval.el (org-babel--shell-command-on-region):
* lisp/ob-table.el (org-babel-table-truncate-at-newline):
* lisp/ob-tangle.el (org-babel-tangle):
Change `if' without else to `when'.
2016-09-03 02:45:27 +01:00
Aaron Ecay
6e3ff4acc5
Deprecate org-remove-(angle-brackets,double-quotes)
...
* lisp/org.el (org-remove-angle-brackets, org-remove-double-quotes):
Deprecate.
* lisp/org-gnus.el (org-gnus-store-link):
* lisp/org-lint.el (org-lint-non-existent-setupfile-parameter):
(org-lint-wrong-include-link-parameter):
* lisp/org-macro.el (org-macro--collect-macros):
* lisp/org-mhe.el (org-mhe-store-link):
* lisp/org-rmail.el (org-rmail-store-link):
* lisp/org.el (org--setup-collect-keywords):
(org-insert-link):
(org-translate-link-from-planner):
(org-offer-links-in-entry):
* lisp/ox-publish.el (org-publish-cache-file-needs-publishing):
* lisp/ox.el (org-export--get-inbuffer-options):
(org-export--list-bound-variables):
(org-export-expand-include-keyword): Replace with `org-unbracket-string'.
2016-09-03 02:22:11 +01:00
Aaron Ecay
f7c01f217b
Add obsolescence warning
...
* lisp/org-capture.el (org-capture-import-remember-templates):
Add obsolescence warning.
2016-09-03 02:11:18 +01:00
Aaron Ecay
1c18efb615
String handling improvements.
...
* lisp/org-agenda.el (org-agenda-export-csv-mapper): Use `replace-regexp-in-string'.
* lisp/org-capture.el (org-capture): Use `string-prefix-p'.
* lisp/org-compat.el (string-blank-p, string-remove-prefix):
* lisp/org-compat.el (string-remove-suffix): Add compatibility defuns
for emacs 24.3.
* lisp/org-datetree.el (org-datetree-cleanup): Use `string-suffix-p'.
* lisp/org-footnote.el (org-footnote-normalize-label): Use
`string-remove-prefix'.
* lisp/org-gnus.el (org-gnus-group-link): Use `string-prefix-p'.
* lisp/org-list.el (org-list-struct):
(org-list-get-list-type, org-list-send-item):
(org-list-use-alpha-bul-p): Use `string-match-p'.
* lisp/org.el (org-paste-subtree): Use `string-suffix-p'.
(org-open-file, org-refile-get-targets): Use `replace-regexp-in-string'.
(org-make-tags-matcher): Use `string-prefix-p'.
(org-set-tags): Use `string-(prefix,suffix)-p'.
* lisp/ox-beamer.el (org-beamer--element-has-overlay-p):
(org-beamer--format-block):
Use `string-(prefix,suffix)-p'.
* lisp/ox-html.el (org-html-fix-class-name): Use `replace-regexp-in-string'.
* lisp/ox-md.el (org-md-verbatim): Use `string-(prefix,suffix)-p'.
(org-md-paragraph): Use `string-prefix-p'.
2016-09-03 02:05:10 +01:00
Aaron Ecay
c997bf7ff1
assoc -> assq
...
* lisp/ob-sqlite.el (org-babel-execute:sqlite): Change `assoc' to `assq'.
2016-09-03 01:57:53 +01:00
Aaron Ecay
a3adfb062b
Introduce new function for removing paired delimiters from string.
...
* lisp/org-macs.el (org-unbracket-string): New function.
* lisp/ob-core.el (org-babel-strip-quotes):
* lisp/ob-lua.el (org-babel-lua-read-string):
* lisp/ox-beamer.el (org-beamer--normalize-argument): Use it.
2016-09-03 01:55:45 +01:00
Aaron Ecay
79999af264
ob-core: Rename and refactor a function
...
* lisp/ob-core.el (org-babel--string-to-number): Rename and refactor
from `org-babel-number-p'.
(org-babel-read-element, org-babel-read): Apply renaming.
The old name implies that the function is a predicate, but it’s actually
a type conversion function.
2016-09-03 01:52:27 +01:00
Aaron Ecay
ab04bab4d6
Use org-with-wide-buffer where appropriate
...
* lisp/org-agenda.el (org-agenda-get-some-entry-text):
(org-agenda-refile, org-agenda-open-link):
(org-agenda-change-all-lines, org-agenda-clock-out):
* lisp/org-capture.el (org-capture-refile):
(org-capture-bookmark-last-stored-position):
* lisp/org-clock.el (org-with-clock-position):
(org-clock-in):
* lisp/org-table.el (org-table-recalculate-buffer-tables):
(org-table-iterate-buffer-tables):
* lisp/org.el (org-table-map-tables):
(org-outline-overlay-data, org-refresh-properties):
(org-refresh-stats-properties, org-offer-links-in-entry):
(org-refile, org-refile-check-position):
(org-refile-new-child, org-map-entries):
(org-find-exact-headline-in-buffer):
(org-reftex-citation, org-imenu-get-tree):
Use `org-with-wide-buffer'.
2016-09-03 01:44:58 +01:00
Aaron Ecay
17efe53170
ox-md: pacify byte compiler
...
* lisp/ox-md.el (org-md--footnote-section):
(org-md-inner-template): Fix byte compiler warnings.
2016-09-03 01:26:45 +01:00
Aaron Ecay
ab21e2b72d
Use file-name-extension where appropriate
...
* lisp/ob-R.el (org-babel-R-construct-graphics-device-call):
* lisp/ob-asymptote.el (org-babel-execute:asymptote):
* lisp/ob-latex.el (org-babel-execute:latex):
* lisp/org-agenda.el (org-agenda-write):
* lisp/ox-odt.el (org-odt--copy-formula-file): Use `file-name-extension'
instead of string munging.
2016-09-01 18:46:48 +01:00
Jake Romer
d4a073f5be
ox-md.el: Export footnotes section as Markdown
...
* lisp/ox-md.el (org-md--headline-title): New function.
(org-md-headline): Use `org-md-headline-title' to generate section
headers.
(org-md--footnote-formatted): New function.
(org-md--footnote-section): New function.
(org-md-inner-template): Update to use `org-md-footnote-section'.
(org-md-footnotes-section): New customizable variable.
(org-md-footnote-format): New customizable variable.
Update ox-md.el to export the Footnotes section as Markdown, using HTML
only where necessary - namely, in footnote and footnote reference links.
2016-09-01 18:41:52 +02:00
Nicolas Goaziou
cd18ac22ff
Merge branch 'maint'
2016-09-01 18:33:19 +02:00
Nicolas Goaziou
d2cb298e72
ox-html: Remove duplicate option in back-end
...
* lisp/ox-html.el (html): Remove spurious :html-link-use-abs-url option.
Reported-by: Arun Isaac <arunisaac@systemreboot.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/108952 >
2016-09-01 18:32:16 +02:00
Nicolas Goaziou
0d7e86608e
Merge branch 'maint'
2016-09-01 18:26:48 +02:00
Aaron Ecay
890ed78c0d
babel: replace org-babel-*-read-string functions with single version.
...
* lisp/ob-core.el (org-babel-strip-quotes): New function.
* lisp/ob-haskell.el (org-babel-haskell-read-string): Remove.
(org-babel-execute:haskell): Use new function.
* lisp/ob-octave.el (org-babel-octave-read-string): Remove.
(org-babel-octave-evaluate-session): Use new function.
* lisp/ob-ruby.el (org-babel-ruby-read-string): Remove.
2016-09-01 16:57:57 +01:00
Aaron Ecay
ab5e100806
Fix ISO Latin1 expansion of \Delta
...
* lisp/org-entities.el (org-entities): Fix entry for Delta.
Reported by Matthew Junker
2016-09-01 16:50:09 +01:00
Nick Dokos
38de6b6ed4
Merge branch 'maint'
2016-08-31 12:07:32 -04:00
Nick Dokos
96b410f896
Fix scheme expression parsing
...
* org-babel-scheme-execute-with-geiser: Do not use elisp reader to parse scheme expression.
Reported by Lawrence Bottorff:
http://lists.gnu.org/archive/html/emacs-orgmode/2016-08/msg00328.html
and also
https://lists.gnu.org/archive/html/emacs-orgmode/2015-09/msg00390.html
2016-08-31 11:51:38 -04:00
Nicolas Goaziou
f685535f72
Merge branch 'maint'
2016-08-30 11:52:23 +02:00
Konstantin Kliakhandler
bca5bd1e40
org-entities: Correct unicode symbol of circ
...
* org-entities.el (org-entities): Change the unicode symbol of circ to
"ring operator" (#x2218).
TINYCHANGE
2016-08-30 11:50:09 +02:00
Nicolas Goaziou
ee4e3eb8f7
ob-lua: Silence byte-compiler
2016-08-29 15:39:05 +02:00
thibault
c72a0d2df9
ox-html: Add pre.src-lua to CSS
...
* lisp/ox-html.el (org-html-style-default): Add pre.src-lua to CSS.
2016-08-29 09:03:27 +02:00
Nicolas Goaziou
cddc7d8d2d
ob-lua: Use cl-lib
...
* lisp/ob-lua.el (org-babel-lua-evaluate-session): Refactor code to
avoid using unprefixed "cl" macro.
2016-08-29 08:57:10 +02:00
Nicolas Goaziou
f795479432
ob-lua: Use lexical binding
...
* lisp/ob-lua.el (org-babel-lua-initiate-session-by-key):
(org-babel-lua-initiate-session):
(org-babel-lua-evaluate-session): Silence byte-compiler.
2016-08-29 08:57:10 +02:00
thibault
2090efaed7
ob-lua.el: Update library for Org 9.0
...
* lisp/ob-lua.el (org-babel-lua-evaluate-external-process):
(org-babel-lua-evaluate-session): Update for Org 9.0 compatibility.
* testing/test-ob-lua.el: New file.
TINYCHANGE
2016-08-29 08:57:10 +02:00
Dieter Schoen
66fbece100
ob-lua: New file
2016-08-29 08:57:10 +02:00
Nicolas Goaziou
56c93cc8c7
org-table: Tiny refactoring
...
* lisp/org-table.el (org-table-recalculate): Tiny refactoring.
2016-08-29 00:54:41 +02:00
Nicolas Goaziou
a9aad1c8e1
Merge branch 'maint'
2016-08-29 00:45:07 +02:00
Nicolas Goaziou
2dfdafd35a
org-table: Fix column formulas
...
* lisp/org-table.el (org-table-recalculate): Fix column formulas in
tables consisting of a single row group.
Reported-by: Michael Welle <mwe012008@gmx.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/108886 >
2016-08-29 00:43:38 +02:00
Aaron Ecay
d5b720fb1e
Fix entity definition of \nbsp
...
* lisp/org-entities.el (org-entities): Use a proper non-breaking space
for \nbsp.
2016-08-28 19:06:18 +01:00
Nicolas Goaziou
cefe157d42
ox-latex: Fix typo
...
* lisp/ox-latex.el (org-latex--delayed-footnotes-definitions): Fix typo
in docstring.
2016-08-28 12:14:39 +02:00
Nicolas Goaziou
beb940cf56
org-compat: Silence byte-compiler
2016-08-28 12:12:55 +02:00
Nicolas Goaziou
7a14bd172c
Merge branch 'maint'
2016-08-28 12:02:51 +02:00
Nicolas Goaziou
b7c144a104
ox-html: Remove spurious newline at the end of inline source code
...
* lisp/ox-html.el (org-html-inline-src-block): Do not call
`org-html-format-code', which is meant to be used for source blocks
only.
Reported-by: Clément Pit--Claudel <clement.pit@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108890 >
2016-08-28 12:01:08 +02:00
Nicolas Goaziou
3b3fc520aa
Fix coderef handling in source blocks
...
* lisp/ob-core.el (org-babel--normalize-body): Do not remove coderef.
(org-babel-get-src-block-info): Add coderef label information, when
available, to the return value.
(org-babel-execute-src-block): Expand noweb and remove coderefs
non-destructively.
* lisp/ob-lob.el (org-babel-lob-get-info): Adapt to new INFO.
* testing/lisp/test-ob-exp.el (ob-export/body-with-coderef):
* testing/lisp/test-ob.el (test-ob/evaluate-body-with-coderefs): Add
tests.
Reported-by: Thibault Marin <thibault.marin@gmx.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108888 >
2016-08-28 11:56:14 +02:00
Aaron Ecay
6b52bc6a21
Clean up string handling.
...
* lisp/org-compat.el (string-prefix-p, string-suffix-p):
Add compatibility definitions for 24.3.
* lisp/ob-R.el (org-babel-edit-prep:R):
* lisp/ob-core.el (org-babel-demarcate-block):
* lisp/ob-js.el (org-babel-js-read):
* lisp/ob-latex.el (org-babel-execute:latex):
* lisp/ob-ref.el (org-babel-ref-parse):
* lisp/ob-shell.el (org-babel-variable-assignments:shell):
* lisp/org-protocol.el (org-protocol-create):
* lisp/org-table.el (org-table-field-info):
* lisp/org.el (org-get-buffer-for-internal-link):
* lisp/ox-publish.el (org-publish-compare-directory-files):
* lisp/ox-texinfo.el (org-texinfo-template):
Use `string-{suffix,prefix}-p' instead of `string-match(-p)'.
* lisp/ob-python.el (org-babel-python-read-string):
Ditto, also use `substring' rather than `match-string'.
* lisp/org-table.el (org-table-copy-down):
(org-table-insert-hline, org-table-current-field-formula):
(org-table-get-formula): Use `string-match-p' instead of
`string-match'.
2016-08-24 16:05:54 +01:00
Nicolas Goaziou
de24694f05
Turn org-mode into Org or Org mode
...
Use Org or Org mode instead of org-mode or Org-mode according to
"Documentation standards".
2016-08-23 22:13:56 +02:00
Nicolas Goaziou
250567b133
Fix typo in a docstring
...
* lisp/org.el (org-link-abbrev-alist): Fix typo.
2016-08-23 10:47:18 +02:00
Nicolas Goaziou
112463cbff
Handle tooltips on abbreviated links
...
* lisp/org.el (org-activate-bracket-links): Expand abbreviations before
adding :help-echo property.
Reported-by: mc <mc@aiguphonie.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108785 >
2016-08-23 09:34:29 +02:00
Nicolas Goaziou
596f585a7d
ox-html: Tiny fix
...
* lisp/ox-html.el (org-html-paragraph): Move space after the figure
number within the "figure-number" class so it can be hidden if needed.
Small refactoring.
2016-08-22 22:13:24 +02:00
Nicolas Goaziou
579569cc84
ox-html: Number source blocks with listings
...
* lisp/ox-html.el (org-html-src-block): Number source block if it has
a caption. Numbering is done among source blocks with a caption,
only.
Suggested-by: Clément Pit--Claudel <clement.pit@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108808 >
2016-08-22 22:07:34 +02:00
Nicolas Goaziou
908b3b05cd
ox-latex: Fix repeated footnotes in tables
...
* lisp/ox-latex.el (org-latex--delayed-footnotes-definitions): Fix
referencing multiple occurrences of the same footnote in a table.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108789 >
2016-08-22 12:07:34 +02:00
Nicolas Goaziou
71a3331aaf
Move org-eww to core
...
* lisp/org-eww.el: Move file from contrib/lisp/ to lisp/.
* lisp/org.el (org-modules): Apply change.
* lisp/org-capture.el (org-capture-templates):
* doc/org.texi: Document changes.
2016-08-20 02:59:56 +02:00
Nicolas Goaziou
c0924db32c
Merge branch 'maint'
2016-08-20 00:27:33 +02:00
Nicolas Goaziou
589e96321b
org-clock: Fix infloop when creating a clock table
...
* lisp/org-clock.el (org-clock-sum): Fix infloop when first headline in
scope has a level strictly greater than 1.
Reported-by: Yichao Woo <wooyichao@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108606 >
2016-08-20 00:22:13 +02:00
Nicolas Goaziou
6cb291a87b
org-src: Silence byte-compiler
2016-08-19 16:19:36 +02:00
Nicolas Goaziou
190476e3e0
ob-core: Silence byte-compiler
2016-08-18 15:23:00 +02:00
Nicolas Goaziou
3771f35f80
org-src: Fix coderef regexp
...
* lisp/org-src.el (org-src-coderef-regexp): A coderef label cannot be
consist of white spaces only.
* testing/lisp/test-org-src.el (test-org-src/coderef-regexp): Add test.
2016-08-18 01:04:28 +02:00
Nicolas Goaziou
fea6dd167a
Fix `org-store-link' in edit buffers
...
* lisp/org.el (org-store-link): Properly handle coderef insertion in an
edit buffer.
This patch also removes check for duplicate coderef labels, so as to be
on par with other link types.
2016-08-17 23:45:38 +02:00
Nicolas Goaziou
48af4166fd
Consider edit buffers in `org-src-coderef-regexp'
...
* lisp/org-src.el (org-src-coderef-format): New function
(org-src-coderef-regexp): Change signature.
* lisp/ob-core.el (org-babel--normalize-body):
* lisp/ox.el (org-export-unravel-code): Use new functions.
* testing/lisp/test-org-src.el (test-org-src/coderef-format): New test.
2016-08-17 23:43:38 +02:00
Nicolas Goaziou
910755208d
Small fix to `org-store-link'
...
* lisp/org.el (org-store-link): Only call `org-with-limited-levels' in
Org buffers.
2016-08-17 23:40:16 +02:00
Nicolas Goaziou
8e58c635ed
org-src: Move function within library
...
* lisp/org-src.el (org-src-do-at-code-block): Move function definition
out of Babel related section.
2016-08-17 23:37:55 +02:00
Nicolas Goaziou
48a8748aef
ob-core: Silence byte-compiler
2016-08-08 22:01:57 +02:00
Nicolas Goaziou
ff9ae29d03
Fix overlay breakage when updating statistics cookies
...
* lisp/org.el (org-update-parent-todo-statistics): Do not move overlay
when updating statistics cookies.
Overlay moving was introduced in
28b88bbb11
to fix a bug that no longer
seems to be reproducible. In any case, even if needed, this fix should
happen in "org-colview.el".
Reported-by: Clément Pit--Claudel <clement.pitclaudel@live.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108601 >
2016-08-08 21:56:11 +02:00
Nicolas Goaziou
9f47b37231
Ignore coderef labels when evaluating a code block
...
* lisp/ob-core.el (org-babel--normalize-body): New function.
(org-babel-get-src-block-info): Use new function.
* lisp/org-src.el (org-src-coderef-regexp): New function.
* lisp/ox.el (org-export-unravel-code): Use new function.
* testing/lisp/test-ob.el (test-ob/evaluate-body-with-coderefs): New
test.
2016-08-08 14:04:11 +02:00
Nicolas Goaziou
2538ffae65
org-mobile: Silence byte-compiler
...
* lisp/org-mobile.el (org-mobile-apply): Silence byte-compiler.
2016-08-08 13:29:09 +02:00
Nicolas Goaziou
9b5f964d71
ob-core: Tiny refactoring
...
* lisp/ob-core.el (org-babel-get-src-block-info): Tiny refactoring.
2016-08-08 13:13:11 +02:00
Robert Klein
7064667934
Update replacement for org-add-link-type
...
* lisp/org-compat.el ("org-add-link-type"):
replacement for org-add-link-type is org-link-set-parameters,
notorg-linkk-add, now.
2016-08-08 11:20:43 +02:00
Clément Pit--Claudel
4b9a634774
Copy all font-lock properties in org-src, not just face
...
* lisp/org-src (org-src-font-lock-fontify-block): Loop over
`font-lock-extra-managed-props', thus copying other properties that
might be applied using font-lock. An example is composition, applied
by `prettify-symbols-mode'.
2016-08-08 11:03:40 +02:00
Clément Pit--Claudel
b7dd0e8511
Use font-lock-append-text-property to apply org-src faces
...
* lisp/org-src.el (org-src-font-lock-fontify-block): Replace anonymous
faces with inheritance by lists of faces constructed by
`font-lock-add-text-property`. This properly deals with cases when
the source buffer's `face' property is already a list.
2016-08-08 11:00:54 +02:00
Nicolas Goaziou
b1f1f35049
org-mobile: Fix typo in penultimate commit
...
* lisp/org-mobile.el (org-mobile-action-alist): Remove spurious quoting
level.
2016-08-08 09:19:24 +02:00
Nicolas Goaziou
caefb363e6
org-mobile: Fix last commit
...
* lisp/org-mobile.el (org-mobile-action-alist): Use defconst instead of
defvar.
2016-08-08 00:13:21 +02:00
Nicolas Goaziou
f5500e033c
org-mobile: Demote `org-mobile-action-alist' as a defvar
...
* lisp/org-mobile.el (org-mobile-action-alist): Make it a defconst
instead of a defcustom.
This variable is not meant to be modified, because the interface used is
not clear enough.
2016-08-08 00:05:49 +02:00
Nicolas Goaziou
40d140c64c
org-mobile: Fix "Execution failed" message on pull
...
* lisp/org-mobile.el (org-mobile-action-alist): Use a function instead
of a sexp.
(org-mobile-apply): Apply changes.
Reported-by: Ian Dunn <dunni@gnu.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/108603 >
2016-08-08 00:02:56 +02:00
Nicolas Goaziou
9798da77b2
Fix `org-map-tree' when called in an invisible heading
...
* lisp/org.el (org-map-tree): Move to closest heading above even if it
is invisible.
Suggested-by: talwrii talwrii <talwrii@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108590 >
2016-07-31 00:20:35 +02:00
Nicolas Goaziou
406ad6eb52
`org-get-heading' is more consistent on empty headlines
...
* lisp/org.el (org-get-heading): Ensure that return value is always
a string.
* testing/lisp/test-org.el (test-org/get-heading): Add tests.
Reported-by: Joe Schafer <joesmoe10@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108559 >
2016-07-30 22:30:19 +02:00
Nicolas Goaziou
d2de890d3e
org-capture: Remove history for template completion
...
* lisp/org-capture.el (org-capture-fill-template): Remove history
variable, which is not strictly necessary and relies, in its current
implementation, on dynamic binding.
2016-07-29 16:00:07 +02:00
Nicolas Goaziou
02de57b597
org-compat: Fix regression introduced in 6daad6
...
Reported-by: Humberto Nanni <humberto.nanni@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108550 >
2016-07-29 14:40:27 +02:00
Jarmo Hurri
04e0bc0b00
ox-html: Provide a default CSS class for embedded SVG images
...
* lisp/ox-html.el (org-html--svg-image): Set CSS class of embedded SVG
images to be org-svg if no other class is set in attributes.
org-html-style-default: Provide default properties for new CSS class.
* doc/org.texi (CSS support): Documentation of default CSS class
org-svg for SVG images embedded into exported HTML.
2016-07-26 10:37:17 +02:00
Nicolas Goaziou
096f4287a6
ox-latex: Allow toggling centering of images
...
* lisp/ox-latex.el (latex): Introduce new
property :latex-images-centered.
(org-latex-images-centered): New variable.
(org-latex--inline-image): Handle new attribute :center, in addition to
variable above.
* doc/org.texi (Images in @LaTeX{} export): Document new behaviour
(Publishing options): Reference :latex-images-centered.
2016-07-25 23:31:25 +02:00
Nicolas Goaziou
67c29aa1e8
ox-odt: Remove obnoxious messages when compiling library
...
* lisp/ox-odt.el (org-odt-schema-dir):
(org-odt-styles-dir): Remove debugging messages. Small refactoring.
2016-07-25 17:21:15 +02:00
Nicolas Goaziou
c4da20a2f3
Silence byte-compiler
...
* lisp/ob-core.el (org-babel-process-params): Silence byte-compiler.
* lisp/ob-groovy.el (org-babel-groovy-evaluate):
* lisp/ob-haskell.el (org-babel-execute:haskell):
* lisp/ob-io.el (org-babel-io-evaluate):
* lisp/ob-octave.el (org-babel-octave-evaluate-external-process):
(org-babel-octave-evaluate-session):
* lisp/ob-perl.el (org-babel-perl-evaluate):
* lisp/ob-python.el (org-babel-python-evaluate-external-process):
(org-babel-python-evaluate-session):
* lisp/ob-ruby.el (org-babel-ruby-pp-wrapper-method):
(org-babel-ruby-evaluate):
* lisp/ob-scala.el:
* lisp/ob-tangle.el:
(org-babel-tangle-collect-blocks):
* lisp/org-agenda.el (org-agenda-get-category-icon):
(org-agenda-todo-yesterday):
* lisp/org-bbdb.el (org-bbdb-anniv-extract-date):
(org-bbdb-make-anniv-hash):
(org-bbdb-anniversaries-future):
* lisp/org-bibtex.el (org-bibtex-fleshout):
(org-bibtex-read):
(org-bibtex-write):
* lisp/org-capture.el (org-capture-set-target-location):
(org-capture-get-indirect-buffer):
(org-mks):
* lisp/org-clock.el (org-clock--oldest-date):
(org-clock-resolve):
(org-clock-sum):
(org-clock-special-range):
(org-clocktable-steps):
* lisp/org-ctags.el (org-ctags-create-tags):
* lisp/org-element.el (org-element--interpret-affiliated-keywords):
(org-element--cache-shift-positions):
(org-element--cache-sync):
(org-element--cache-submit-request):
* lisp/org-habit.el (org-habit-parse-todo):
* lisp/org-inlinetask.el (org-inlinetask-hide-tasks):
* lisp/org-lint.el (org-lint--generate-reports):
* lisp/org-mouse.el (org-mouse-get-context):
* lisp/org-plot.el (org-plot/gnuplot-to-grid-data):
(org-plot/gnuplot):
* lisp/ox-ascii.el (org-ascii--current-text-width):
(org-ascii--current-justification):
(org-ascii--build-caption):
(org-ascii--checkbox):
(org-ascii-item):
* lisp/ox-html.el (org-html-footnote-section):
* lisp/ox-latex.el (org-latex--make-option-string):
* lisp/ox-odt.el (org-odt-toc):
(org-odt-add-automatic-style):
(org-odt-format-label):
(org-odt-link--inline-image):
(org-odt--render-image/formula):
(org-odt--enumerable-image-p):
(org-odt--enumerable-latex-image-p):
(org-odt--enumerable-formula-p):
(org-odt-do-format-code):
(org-odt-table-cell): Silence byte-compiler.
2016-07-25 17:10:53 +02:00
Nicolas Goaziou
2d9b20a57d
ob-C: Silence byte-compiler
...
* lisp/ob-C.el (org-babel-C-execute):
(org-babel-C-val-to-C-type):
(org-babel-C-val-to-base-type):
(org-babel-C-utility-header-to-C):
(org-babel-C-header-to-C): Silence byte-compiler.
2016-07-25 16:32:07 +02:00
Nicolas Goaziou
e3d7492476
ob-clojure: Use cl-lib
...
* lisp/ob-clojure.el (org-babel-execute:clojure): Silence byte-compiler.
2016-07-25 16:25:21 +02:00
Nicolas Goaziou
31b30e5aee
ob-R: Silence byte-compiler
...
* lisp/ob-R.el (org-babel-R-evaluate-external-process):
(org-babel-R-evaluate-session): Silence byte-compiler.
2016-07-25 16:24:14 +02:00
Nicolas Goaziou
676a588b55
ob-C: Use cl-lib
...
* lisp/ob-C.el (org-babel-C-execute):
(org-babel-C-val-to-C-type):
(org-babel-C-val-to-base-type):
(org-babel-C-utility-header-to-C):
(org-babel-C-header-to-C): Silence byte-compiler.
2016-07-25 16:22:05 +02:00
Nicolas Goaziou
03b9012efe
org-agenda: Silence byte-compiler
...
* lisp/org-agenda.el (org-agenda-span-to-ndays):
(org-agenda-format-item):
(org-agenda-filter-by-effort): Silence byte-compiler.
2016-07-25 16:17:56 +02:00
Nicolas Goaziou
3ff1f7336e
ox-man: Use cl-lib
...
* lisp/ox-man.el (org-man-headline):
(org-man-item):
(org-man-table--align-string): Silence byte-compiler. Small
refactoring.
2016-07-25 16:10:02 +02:00
Nicolas Goaziou
38de20287f
org-agenda: Use cl-lib
...
* lisp/org-agenda.el (org-agenda-view-mode-dispatch):
(org-agenda-bulk-action): Silence byte-compiler.
2016-07-25 16:06:38 +02:00
Nicolas Goaziou
1388d44f40
org-plot: Use cl-lib
...
* lisp/org-plot.el (org-plot/gnuplot-script):
(org-plot/gnuplot): Silence byte-compiler.
2016-07-25 16:03:40 +02:00
Nicolas Goaziou
0bc3f9d58b
org-src: Use cl-lib
...
* lisp/org-src.el (org-src-switch-to-buffer): Silence byte-compiler.
2016-07-25 16:01:15 +02:00
Nicolas Goaziou
7c5416958c
ox-texinfo: Use cl-lib
...
* lisp/ox-texinfo.el (org-texinfo--find-verb-separator):
(org-texinfo-link):
(org-texinfo-table-column-widths):
(org-texinfo-timestamp): Silence byte-compiler.
2016-07-25 15:59:28 +02:00
Nicolas Goaziou
9283e48336
org-habit: Use cl-lib
...
* lisp/org-habit.el (org-habit-build-graph): Silence byte-compiler.
2016-07-25 15:57:24 +02:00
Nicolas Goaziou
ef38f2ff44
ox-md: Use cl-lib
...
* lisp/ox-md.el (org-md-item):
(org-md-link): Silence byte-compiler.
2016-07-25 15:55:16 +02:00
Nicolas Goaziou
a8a9c286e9
org-attach: Use cl-lib
...
* lisp/org-attach.el (org-attach-commit): Use "cl-" prefix.
2016-07-25 15:54:06 +02:00
Nicolas Goaziou
2b99f910e1
ox-odt: Use cl-lib
...
* lisp/ox-odt.el (org-odt--format-timestamp):
(org-odt--checkbox):
(org-odt-template):
(org-odt--find-verb-separator):
(org-odt--enumerate):
(org-odt-format-label):
(org-odt--copy-image-file):
(org-odt-link--inline-image):
(org-odt--copy-formula-file):
(org-odt--render-image/formula):
(org-odt--standalone-link-p):
(org-odt-link--infer-description):
(org-odt-link):
(org-odt--paragraph-style):
(org-odt--format-paragraph):
(org-odt-plain-list):
(org-odt-do-format-code):
(org-odt--table):
(org-odt-table):
(org-odt-timestamp):
(org-odt--translate-latex-fragments):
(org-odt-export-as-odf): Use "cl-" prefix.
2016-07-25 15:51:23 +02:00
Nicolas Goaziou
7e767a42c2
org-mouse: Fix last commit
2016-07-25 15:46:09 +02:00
Nicolas Goaziou
6c7e29764a
org-mouse: Use cl-lib
...
* lisp/org-mouse.el (org-mouse-insert-heading):
(org-mouse-priority-list):
(org-mouse-agenda-type):
(org-mouse-list-options-menu):
(org-mouse-insert-item):
(org-mouse-context-menu):
(org-agenda-mode-hook): Silence byte-compiler.
2016-07-25 15:44:49 +02:00
Nicolas Goaziou
032b301d78
org-indent: Remove (require 'cl)
2016-07-25 15:42:25 +02:00
Nicolas Goaziou
e7f2379297
Remove unnecessary (require 'cl)
2016-07-25 15:41:02 +02:00
Nicolas Goaziou
b6dfc75654
ox-ascii: Use cl-lib
...
* lisp/ox-ascii.el (org-ascii--current-text-width): Refactor code.
(org-ascii--list-listings):
(org-ascii--list-tables): Use "cl-" prefix.
2016-07-25 15:36:09 +02:00
Nicolas Goaziou
72461eaeaf
Use `string-match-p' instead of `org-string-match-p'
...
* contrib/lisp/org-contacts.el (org-contacts-filter):
(org-contacts-complete-group):
(org-contacts-complete-tags-props):
* contrib/lisp/org-wl.el (org-wl-open):
* contrib/lisp/ox-bibtex.el (org-bibtex-merge-contiguous-citations):
* lisp/ob-core.el (org-babel-demarcate-block):
* lisp/ob-processing.el (org-babel-processing-view-sketch):
* lisp/ob-stan.el (org-babel-execute:stan):
* lisp/org-agenda.el (org-agenda-get-category-icon):
* lisp/org-clock.el (org-clock-into-drawer):
* lisp/org-element.el (org-element-link-parser):
* lisp/org-lint.el (org-lint-orphaned-affiliated-keywords):
(org-lint-invalid-babel-call-block):
(org-lint-colon-in-name):
* lisp/org-list.el (org-list-item-body-column):
* lisp/org-macro.el (org-macro-replace-all):
* lisp/org-plot.el (org-plot/gnuplot-script):
* lisp/org-table.el (org-table-export):
(org-table-align):
(org-table-get-range):
(org-table-recalculate):
(org-table-expand-lhs-ranges):
(org-table-formula-substitute-names):
(org-table-show-reference):
(orgtbl-to-texinfo):
(org-table-remote-reference-indirection):
* lisp/org.el (org-make-link-string):
(org--open-elisp-link):
(org-open-at-point):
(org-store-log-note):
(org-cached-entry-get):
(org--valid-property-p):
(org-entry-properties):
(org-buffer-property-keys):
(org-insert-drawer):
(org-display-inline-images):
(org-in-commented-heading-p):
* lisp/ox-ascii.el (org-ascii-keyword):
* lisp/ox-beamer.el (org-beamer--format-frame):
* lisp/ox-html.el (org-html-keyword):
* lisp/ox-latex.el (org-latex--label):
(org-latex-headline):
(org-latex-item):
(org-latex-keyword):
(org-latex--inline-image):
(org-latex-src-block):
* lisp/ox-odt.el (org-odt-styles-dir):
(org-odt-keyword):
(org-odt--translate-latex-fragments):
* lisp/ox-texinfo.el (org-texinfo-template):
(org-texinfo-keyword):
(org-texinfo-src-block):
* lisp/ox.el (org-export-inline-image-p):
(org-export-file-uri):
* testing/lisp/test-org-table.el (test-org-table/to-generic):
(test-org-table/to-latex):
(test-org-table/to-html):
(test-org-table/named-field):
(test-org-table/named-column):
(test-org-table/tab-indent):
(test-org-table/first-rc):
(test-org-table/last-rc): Use `string-match-p' instead of
`org-string-match-p'.
2016-07-25 15:21:12 +02:00
Nicolas Goaziou
69e3a3b95c
org-mobile: Require `cl-lib' instead of `cl'
...
* lisp/org-mobile.el (org-mobile-apply): Use "cl-" prefix.
2016-07-25 13:57:15 +02:00
Nicolas Goaziou
9d3a4a8a5f
Improve docstring
...
* lisp/org.el (org-file-apps): Fix backslash escaping in examples within
docstring.
2016-07-25 13:35:12 +02:00
Nicolas Goaziou
3893fe2ccd
Remove outdated code comment
...
* lisp/org.el (org-open-at-point): Remove outdated code comment.
2016-07-25 12:32:07 +02:00
Nicolas Goaziou
9930c40790
ob-lob: Fix Library of Babel loading
...
* lisp/ob-lob.el (org-babel-lob-ingest): Do not replace
`org-babel-default-header-args' with
`org-babel-default-lob-header-args'.
2016-07-24 23:26:43 +02:00
Nicolas Goaziou
7739ead8b1
ob-lob: Fix Babel call evaluation
...
* lisp/ob-lob.el (org-babel-default-lob-header-args): Change value.
(org-babel-lob--src-info): Ignore `org-babel-default-lob-header-args'.
(org-babel-lob-get-info): Header arguments in
`org-babel-default-lob-header-args' have precedence over those inherited
from the original source block.
2016-07-24 22:59:41 +02:00