Nicolas Goaziou
5204e000e5
ob-lilypond: Fix failing tests
...
* testing/lisp/test-ob-lilypond.el (ob-lilypond/ly-attempt-to-open-pdf):
(ob-lilypond/ly-attempt-to-play-midi): Fix failing tests due to quote
mismatch in Emacs 25.
2015-11-08 17:31:34 +01:00
Nicolas Goaziou
24aaa53573
ox: Fix code comment
...
* lisp/ox.el (org-export-output-file-name): Fix code comment.
2015-11-08 16:48:31 +01:00
Nicolas Goaziou
75c93f7c21
ox: Small refactoring
...
* lisp/ox.el (org-export-output-file-name): Small refactoring.
2015-11-08 16:44:26 +01:00
Nicolas Goaziou
b8f100c14a
Fix `org-cycle' within `orgstruct-mode'
...
* lisp/org.el (org-show-children): Fallback to `outline-show-children'
when `orgstruct-mode' is active.
Reported-by: Jonas Bernoulli <jonas@bernoul.li>
<http://permalink.gmane.org/gmane.emacs.orgmode/102709 >
2015-11-08 16:16:17 +01:00
Nicolas Goaziou
df321b097f
org-list: Fix unbound depth error
...
* lisp/org-list.el (org-list-parse-list): Use `letrec'.
(org-list-to-generic): Do not allow random sexp, but authorize functions.
(org-list-to-subtree): Apply change to previous function.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/102651 >
2015-11-08 00:07:33 +01:00
Nicolas Goaziou
49d3d06cb4
Silence byte-compiler
2015-11-07 23:36:02 +01:00
Nicolas Goaziou
71b3b51bca
ox-publish: Silence byte-compiler
...
* lisp/ox-publish.el (org-publish-compare-directory-files):
(org-publish-get-base-files-1):
(org-publish-get-base-files):
(org-publish-index-generate-theindex):
(org-publish--collect-references):
(org-publish-resolve-external-link): Prefix functions from cl-lib with
"cl-" or replace `case' with `pcase'.
2015-11-07 23:28:04 +01:00
Nicolas Goaziou
e1cb24288e
org-capture: Silence byte-compiler
...
* lisp/org-capture.el (org-capture-place-template): Remove unused
`org-capture-target-marker'.
2015-11-07 23:09:47 +01:00
Nicolas Goaziou
0547969c0c
ob-ref: Silence byte-compiler
...
* lisp/ob-ref.el (org-babel-ref-resolve): Silence byte-compiler.
2015-11-07 23:06:21 +01:00
Charles Berry
27aa7b3f1e
ob-R.el: org-babel-R-evaluate-session finds prompts more reliably
...
* lisp/ob-R.el (org-babel-R-evaluate-session) should find prompts more
reliably. First, the regular expression used requires spacing
between and after instances of `[>+.]'. Also, the search terminates
at the first `\n', so complicated results with prompt like strings
in them are not deleted.
Prompt finding is necessarily heuristic. It may be necessary to render
the regular expression with a defcustom as is done in ess-mode.
2015-11-07 13:26:11 -08:00
Aaron Ecay
635aae3917
ob-latex: Add some latex-specific header args
...
* lisp/ob-latex.el (org-babel-header-args:latex): Add headers, packages,
and buffer to the list of acceptable args.
2015-11-07 20:31:35 +00:00
Aaron Ecay
4773baf3a5
ob-awk: fix bug in 0d000f5
...
* lisp/ob-awk.el (org-babel-execute:awk): Fix bug introduced by
introduction of `org-babel--get-vars'.
2015-11-07 20:31:35 +00:00
Aaron Ecay
5b76509830
org-lint: don’t call org-babel-process-params
...
* lisp/org-lint.el (org-lint-wrong-header-value): Don’t call
`org-babel-process-params'.
This function adds generated values to the header args: it’s never a
user error if these are incorrect. It also calls babel code to resolve
:var references, which makes linting an undesirably long and potentially
side-effectful operation.
2015-11-07 20:31:35 +00:00
Aaron Ecay
f0380f54c1
ob-ref: fix bug
...
* lisp/ob-ref.el (org-babel-ref-resolve): Fix error when src block
result is nil.
2015-11-07 20:31:35 +00:00
Charles Berry
3f6e71e62e
ob-core.el: org-babel-confirm-evaluate bugfix
...
* lisp/ob-core.el (org-babel-confirm-evaluate): Return t/nil for y/n answer to query. Minor edits of prompt and message.
2015-11-07 09:39:17 -08:00
Nicolas Goaziou
d24a9b7645
Change references from Org 8.4 to 9.0
...
According to <http://mid.gmane.org/87oai4w69i.fsf@gnu.org >, master is
the root for Org 9.0, not Org 8.4.
2015-11-07 17:11:48 +01:00
Nicolas Goaziou
d35d1e0502
ob-core: Fix typo
...
* lisp/ob-core.el (org-babel-read-element): Remove `paragraph', which is
matched earlier.
2015-11-06 23:33:45 +01:00
Nicolas Goaziou
cdfc96f47c
ox-latex: Do not merge consecutive $$...$$
...
* lisp/ox-latex.el (org-latex-latex-fragment): Since $$..$$ snippets are
not wrapped within a math-block, do not remove markers.
(org-latex--wrap-latex-math-block): Do not wrap $$...$$ LaTeX snippets.
2015-11-06 23:01:03 +01:00
Nicolas Goaziou
265e5b9984
ox-ascii: Fix footnotes export
...
* lisp/ox-ascii.el (org-ascii-inner-template): Since 47265b3
, footnotes
definitions' contents do no start with `org-data'. Update code.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/102648 >
2015-11-06 20:58:14 +01:00
Aaron Ecay
cce317faf6
Fix bug in 95e2777
2015-11-06 19:11:07 +00:00
Aaron Ecay
95e2777663
ox.el: Add :safe declarations to defcustoms
...
* lisp/ox.el: Add :safe declarations to defcustoms.
2015-11-06 17:49:57 +00:00
Aaron Ecay
51623c2ac8
News for 0d000f5
2015-11-06 12:53:59 +00:00
Aaron Ecay
eb2774b17d
News entries for several commits
...
Namely:
861b6b1
, d29d9a0
, a676853
, e4cd3dd
, c7f1b55
, 4809656
, 40356ae
2015-11-06 12:50:56 +00:00
Aaron Ecay
fa1a9aad8e
org.el: Don’t special-case ‘define-obsolete-function-alias’ for emacs <= 23
2015-11-06 12:50:42 +00:00
Aaron Ecay
861b6b1bd0
org.el: Obsolete ‘org-image-file-name-regexp’
...
* lisp/org.el (org-image-file-name-regexp): Make obsolete. Change
callers.
2015-11-06 12:50:42 +00:00
Aaron Ecay
d29d9a029c
org.el: Refactor ‘org-previous-line-empty-p’
...
* lisp/org.el (org--line-empty-p):
(org-next-line-empty-p): New functions.
(org-previous-line-empty-p): Remove `next' argument. Call
`org--line-empty-p'.
2015-11-06 12:50:41 +00:00
Aaron Ecay
a6768538d6
org.el: mark `org-on-heading-p' obsolete.
...
* lisp/org.el (org-on-heading-p): Mark obsolete.
2015-11-06 12:50:41 +00:00
Aaron Ecay
8b4672bdd0
org.el: Minor refactorings.
...
* lisp/org.el (org-force-cycle-archived):
(org-do-emphasis-faces):
(org-entry-end-position):
(org-check-and-save-marker):
(org-cancel-repeater):
(org-update-parent-todo-statistics):
(org-scan-tags):
(org-yank-folding-would-swallow-text): Refactor.
2015-11-06 12:50:41 +00:00
Aaron Ecay
ea238b78f8
contrib: move a few libraries to cl-lib in place of compile-time cl.
...
Specifically ob-julia, ob-stata, org-contacts, ox-bibtex.
2015-11-06 12:50:41 +00:00
Aaron Ecay
e4cd3dd22b
Remove some home-grown copies of cl-lib functions.
...
* lisp/org.el (org-count, org-remove-if, org-remove-if-not):
(org-reduce, org-every, org-some): Obsolete, use cl-lib versions
everywhere.
(org-sublist): Reimplement in terms of `cl-subseq'; make obsolete.
2015-11-06 12:50:40 +00:00
Aaron Ecay
2e26751b4c
org.el: use ‘when’ and ‘unless’ instead of single-branch ‘if’
...
* lisp/org.el: Refactor single-branch `if' to `when' or `unless' as
appropriate. Also apply other misc. refactorings of conditionals.
2015-11-06 12:47:04 +00:00
Aaron Ecay
c7f1b55995
Mark `org-table-recognize-table.el' obsolete
...
* lisp/org.el (org-at-table-hline-p): Mark obsolete.
No org code has called this function since 2010.
2015-11-06 12:47:04 +00:00
Aaron Ecay
48096562ba
Make `org-table-p' obsolete.
...
* lisp/org.el: Make `org-table-p' obsolete. Change all callers.
2015-11-06 12:47:04 +00:00
Nicolas Goaziou
89b05fe7f7
ox-texinfo: Use lexical binding
...
* lisp/ox-texinfo.el (org-texinfo-format-drawer-function):
(org-texinfo--filter-section-blank-lines):
(org-texinfo--text-markup):
(org-texinfo-bold):
(org-texinfo-center-block):
(org-texinfo-clock):
(org-texinfo-code):
(org-texinfo-dynamic-block):
(org-texinfo-entity):
(org-texinfo-example-block):
(org-texinfo-export-block):
(org-texinfo-export-snippet):
(org-texinfo-fixed-width):
(org-texinfo-footnote-reference):
(org-texinfo-format-headline-default-function):
(org-texinfo-inline-src-block):
(org-texinfo-format-inlinetask-default-function):
(org-texinfo-italic):
(org-texinfo-keyword):
(org-texinfo-line-break):
(org-texinfo-node-property):
(org-texinfo-paragraph):
(org-texinfo-planning):
(org-texinfo-property-drawer):
(org-texinfo-quote-block):
(org-texinfo-special-block):
(org-texinfo-src-block):
(org-texinfo-statistics-cookie):
(org-texinfo-subscript):
(org-texinfo-superscript):
(org-texinfo-target):
(org-texinfo-timestamp):
(org-texinfo-verbatim):
(org-texinfo-verse-block): Silence byte-compiler.
2015-11-06 00:11:00 +01:00
Nicolas Goaziou
5ed56ffa4c
ox-publish: Use lexical binding
...
* lisp/ox-publish.el (org-publish-needed-p):
(org-publish-update-timestamp):
(org-publish-remove-all-timestamps):
(org-publish-get-base-files-1):
(org-publish-get-base-files):
(org-publish-get-project-from-filename):
(org-publish-attachment):
(org-publish-org-sitemap):
(org-publish):
(org-publish-all):
(org-publish-current-file):
(org-publish-collect-index):
(org-publish--collect-references):
(org-publish-cache-file-needs-publishing): Silence byte-compiler.
Replace `mapc' + `lambda' with `dolist'.
2015-11-05 23:55:51 +01:00
Nicolas Goaziou
9d3d95b6e5
ox-org: Use lexical binding
...
* lisp/ox-org.el (org-org-identity):
(org-org-keyword):
(org-org-link): Silence byte-compiler.
2015-11-05 23:40:53 +01:00
Nicolas Goaziou
0edad6725a
Merge branch 'maint'
2015-11-05 23:24:10 +01:00
Nicolas Goaziou
73a5c27cc1
Fix table editing with an active region
...
* lisp/org.el (org-self-insert-command): Do not call
`backward-delete-char' since it possibly deletes active region.
Simplify code.
This fixes bug#21838.
2015-11-05 23:18:13 +01:00
Aaron Ecay
4c9b24b4d5
Remove test for `org-babel-get-header' function.
...
The function was removed in 0d000f5
.
2015-11-05 17:04:15 +00:00
Aaron Ecay
07e16c2fc5
Use setq-local and defvar-local.
...
* lisp/org-macs.el (org-set-local): Remove. All callers changed.
* lisp/org-clock.el:
* lisp/org-colview.el:
* lisp/org-macro.el:
* lisp/org-mouse.el:
* lisp/org-table.el:
* lisp/org.el: Use defvar-local.
* lisp/org-agenda.el:
* lisp/org-capture.el:
* lisp/org-crypt.el:
* lisp/org-ctags.el:
* lisp/org-plot.el:
* lisp/org.el:
* lisp/ox-odt.el:
* lisp/ox.el: Use setq-local instead of set + make-local-variable.
Changes in contrib:
* contrib/lisp/org-colview-xemacs.el (org-colview-xemacs-set-local): New
macro. Adjust old callers of `org-set-local'.
2015-11-05 16:47:38 +00:00
Aaron Ecay
40356ae376
babel: convert org-babel-check-confirm-evaluate to defun, add test
...
* lisp/ob-core.el (org-babel-check-confirm-evaluate): Convert from macro
to function.
(org-babel-check-evaluate):
(org-babel-confirm-evaluate): Adapt to above change. Convert from
defsubst to defun.
* testing/lisp/test-ob.el (ob/check-eval) New test.
(org-test-babel-confirm-evaluate): New function supporting it.
2015-11-05 15:54:19 +00:00
Aaron Ecay
4750e4427d
babel: small fix.
...
* lisp/ob-core.el (org-babel-execute-src-block): Simplify code slightly.
The old code would error on evaluating the call line in:
,----
| #+name: foo
| #+begin_src emacs-lisp :var bar="baz"
| bar
| #+end_src
|
| #+call: foo[:cache yes]("qux")
|
| #+RESULTS:
| : qux
`----
2015-11-05 15:03:58 +00:00
Aaron Ecay
e47c7c3ed6
babel: update the manual wrt :cache header arg
...
* doc/org.texi (cache): Update manual section.
2015-11-05 14:50:23 +00:00
Nicolas Goaziou
02c7850147
ob: Ignore data in COMMENTed headings
...
* lisp/ob-core.el (org-babel-read-element): New function.
* lisp/ob-ref.el (org-babel-ref-resolve): Use new function. Refactor
code.
(org-babel-ref-at-ref-p): Remove function.
* testing/lisp/test-ob.el (test-ob/ignore-reference-in-commented-headings):
New test.
* testing/lisp/test-ob.el (test-ob/resolve-code-blocks-before-data-blocks):
Remove test
The second test is removed because names are expected to be unique.
There is no order to expect when more than one uses the same name.
Reported-by: myq <myqlarson@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/102464 >
2015-11-05 15:44:22 +01:00
Nicolas Goaziou
77fa0018b8
Merge branch 'maint'
2015-11-05 13:45:29 +01:00
Nicolas Goaziou
5e22dcd622
Fix bug#21818
...
* lisp/org.el (org-insert-link): Redisplay after inserting link.
Reported-by: Emanuel Evans <mail@emanuel.industries>
<http://permalink.gmane.org/gmane.emacs.orgmode/102591 >
2015-11-05 13:45:12 +01:00
Nicolas Goaziou
d5767ad31f
Fix bug#21818
...
* lisp/org.el (org-insert-link): Redisplay after inserting link.
Reported-by: Emanuel Evans <mail@emanuel.industries>
<http://permalink.gmane.org/gmane.emacs.orgmode/102591 >
2015-11-05 12:26:01 +01:00
Nicolas Goaziou
3b8ebff351
ox: Fix failing tests
...
* lisp/ox.el (org-export-as): Add missing arguments to
`org-export--get-export-attributes'.
2015-11-05 12:07:48 +01:00
Nicolas Goaziou
47573133a6
ox: Small refactoring
...
* lisp/ox.el (org-export--get-min-level):
(org-export-install-filters):
(org-export--generate-copy-script):
(org-export-table-has-special-column-p):
(org-export-table-row-is-special-p):
(org-export-table-cell-borders):
(org-export--dispatch-action): Use dolist instead of `mapc' + `lambda'.
2015-11-05 11:05:29 +01:00
Nicolas Goaziou
8048973bae
ox: Rename `org-export-collect-tree-properties'
...
* lisp/ox.el (org-export-collect-tree-properties): Remove function.
(org-export--collect-tree-properties): New function.
Renamed from `org-export-collect-tree-properties'
(org-export-as): Apply renaming.
* testing/lisp/test-ox.el (org-test-with-parsed-data): Apply renaming.
2015-11-05 10:56:59 +01:00