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