org-mode.git
3 min agoFix docstring typo. master
Aaron Ecay [Sun, 25 Sep 2016 15:39:30 +0000]
Fix docstring typo.

* lisp/org.el (org-shorten-string): Fix docstring typo.

14 min agoUse ‘eq’ instead of ‘equal’ for symbols
Aaron Ecay [Sun, 25 Sep 2016 15:29:06 +0000]
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) ...) ...)'.

30 hours agoSilence byte-compiler
Nicolas Goaziou [Sat, 24 Sep 2016 08:52:49 +0000]
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.

32 hours agoTiny refactoring
Nicolas Goaziou [Sat, 24 Sep 2016 07:07:12 +0000]
Tiny refactoring

* lisp/org.el (org-edit-special): Tiny refactoring.

32 hours agoFix a docstring
Nicolas Goaziou [Sat, 24 Sep 2016 07:04:40 +0000]
Fix a docstring

* lisp/org.el (org-copy-special): Fix docstring.  Tiny refactoring.

32 hours agoFix a docstring
Nicolas Goaziou [Sat, 24 Sep 2016 07:03:00 +0000]
Fix a docstring

* lisp/org.el (org-cut-special): Fix docstring.  Tiny refactoring.

2 days agocontrib: Use assq instead of assoc with quoted symbols
Aaron Ecay [Fri, 23 Sep 2016 10:19:30 +0000]
contrib: Use assq instead of assoc with quoted symbols

2 days agoUse assq instead of assoc with quoted symbols
Aaron Ecay [Fri, 23 Sep 2016 10:18:24 +0000]
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.

2 days agocontrib, test suite: use assq instead of assoc for :keywords
Aaron Ecay [Thu, 22 Sep 2016 20:48:34 +0000]
contrib, test suite: use assq instead of assoc for :keywords

2 days agoUse assq instead of assoc for :keywords
Aaron Ecay [Thu, 22 Sep 2016 17:45:15 +0000]
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.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 22 Sep 2016 19:57:17 +0000]
Merge branch 'maint'

2 days agoorg-expiry: Fix the call to `org-expiry-handler-function' maint
Konubinix [Thu, 6 Nov 2014 08:20:22 +0000]
org-expiry: Fix the call to `org-expiry-handler-function'

* contrib/lisp/org-expiry.el (org-expiry-process-entry): Fix the call to
`org-expiry-handler-function'.

`org-expiry-handler-function' is meant to be a variable containing the symbol of
a function to be called. Therefore, calling
(funcall 'org-expiry-handler-function) results in a void function error while
(funcall org-expiry-handler-function) correctly calls the contained function.

2 days agoIndicate what happens to CLOCK entries in cloned subtrees
Konubinix [Fri, 23 Jan 2015 07:53:47 +0000]
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.

2 days agoORG-NEWS support of header argument for postgresql
Jakob Lombacher [Thu, 22 Sep 2016 13:59:35 +0000]
ORG-NEWS support of header argument for postgresql

2 days agoorg-faces: Fix a docstring
Nicolas Goaziou [Thu, 22 Sep 2016 19:45:58 +0000]
org-faces: Fix a docstring

* lisp/org-faces.el (org-src-block-faces): Fix quote in docstring.

2 days agoorg-src: Tiny fix
Nicolas Goaziou [Thu, 22 Sep 2016 19:43:38 +0000]
org-src: Tiny fix

* lisp/org-src.el (org-src-font-lock-fontify-block): Ensure LANG is case
  insensitive.

3 days agoFix e03e837
Rasmus [Thu, 22 Sep 2016 07:34:31 +0000]
Fix e03e837

* lisp/org-src.el (org-src-font-lock-fontify-block): Fix typos and
  silence byte-compiler.

3 days agoorg-src: New syntax for source blocks faces
Rasmus [Wed, 21 Sep 2016 09:02:49 +0000]
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.

6 days agoAdd tests for Org Lint
Nicolas Goaziou [Sun, 18 Sep 2016 22:57:20 +0000]
Add tests for Org Lint

* testing/lisp/test-org-lint.el: New file.

6 days agoorg-lint: Fix Babel header arg value checker
Nicolas Goaziou [Sun, 18 Sep 2016 22:56:34 +0000]
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.

6 days agoorg.texi: Document smart quotes behavior
Nicolas Goaziou [Sun, 18 Sep 2016 21:16:33 +0000]
org.texi: Document smart quotes behavior

* doc/org.texi (Export settings): Explain smart quotes behavior.

7 days agoMerge branch 'maint'
Kyle Meyer [Sun, 18 Sep 2016 15:30:18 +0000]
Merge branch 'maint'

7 days agoMerge branch 'maint'
Kyle Meyer [Sun, 18 Sep 2016 15:28:12 +0000]
Merge branch 'maint'

7 days ago`org-open-line' ignores tables at the very beginning of the document
Nicolas Goaziou [Sun, 18 Sep 2016 15:22:48 +0000]
`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.

7 days agoBackport commit 2c05061 from Emacs
Michael Albinus [Sun, 7 Aug 2016 11:57:23 +0000]
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

7 days agoorg.texi: Fix typo
Nicolas Goaziou [Sun, 18 Sep 2016 14:30:03 +0000]
org.texi: Fix typo

* doc/org.texi (Special symbols): Fix typo.

7 days agoorg.texi: Move subscripts section outside of Embedded LaTeX section
Nicolas Goaziou [Sat, 17 Sep 2016 23:16:48 +0000]
org.texi: Move subscripts section outside of Embedded LaTeX section

* doc/org.texi (Subscripts and superscripts): Move outside of Embedded
  LaTeX section.  Document multi-words sub- superscripts.

7 days agoorg.texi: Improve special symbols section
Nicolas Goaziou [Sat, 17 Sep 2016 23:00:41 +0000]
org.texi: Improve special symbols section

* doc/org.texi (Special symbols): Add details about `org-entities-help'
  and entities as a way to escape characters in Org.  Also move the
  section outside of LaTeX markup.

7 days agoorg.texi: Remove useless footnote
Nicolas Goaziou [Sat, 17 Sep 2016 21:32:59 +0000]
org.texi: Remove useless footnote

* doc/org.texi (OpenDocument Text export): Remove useless reference to
  old Org releases since the manual is tied to a specific version.

8 days agoob-sql: Add dbport and dbpassword options to postgresql
Jakob Lombacher [Fri, 16 Sep 2016 07:12:56 +0000]
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.

8 days agoorg.el: Respect user-defined reftex-cite-format
Nicolas Goaziou [Sat, 17 Sep 2016 08:28:41 +0000]
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>

10 days agoob-J: Add missing keywords in defcustom
Nicolas Goaziou [Wed, 14 Sep 2016 21:27:17 +0000]
ob-J: Add missing keywords in defcustom

* lisp/ob-J.el (org-babel-J-command): Add missing keywords.

11 days agoORG-NEWS: update about babel J
Marco Wahl [Wed, 14 Sep 2016 09:50:12 +0000]
ORG-NEWS: update about babel J

11 days agoob-J: allow also letter 'j' indicate J code
Marco Wahl [Mon, 5 Sep 2016 09:11:27 +0000]
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.

11 days agoob-J: New variable to specify the call to J
Marco Wahl [Thu, 1 Sep 2016 10:14:32 +0000]
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.

13 days agoob-maxima-test.org: Fix maxima test
Marco Wahl [Mon, 12 Sep 2016 10:21:20 +0000]
ob-maxima-test.org: Fix maxima test

* testing/examples/ob-maxima-test.org: Silence maxima to suppress
  lines containing disturbing information.

(Actually this has already been fixed in the master branch some time ago.
I just noticed that the same issue is present on the maint branch.)

13 days agoMerge branch 'maint'
Marco Wahl [Mon, 12 Sep 2016 10:04:34 +0000]
Merge branch 'maint'

13 days agoorg-agenda: Skip invisible line at bulk marking
Marco Wahl [Mon, 12 Sep 2016 09:44:49 +0000]
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.)

2 weeks agoorg-compat: Silence byte-compiler
Nicolas Goaziou [Wed, 7 Sep 2016 15:16:33 +0000]
org-compat: Silence byte-compiler

2 weeks agoox: Use tabulated lists for export stack display
Nicolas Goaziou [Wed, 7 Sep 2016 16:05:19 +0000]
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.

2 weeks agoMove obsolete functions to "org-compat.el"
Nicolas Goaziou [Wed, 7 Sep 2016 14:12:10 +0000]
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.

2 weeks agoorg-footnote: Silence byte-compiler
Nicolas Goaziou [Wed, 7 Sep 2016 13:56:38 +0000]
org-footnote: Silence byte-compiler

* lisp/org-footnote.el (org-footnote-normalize-label): Silence
  byte-compiler.

2 weeks agoorg-table: Small refactoring
Nicolas Goaziou [Mon, 5 Sep 2016 22:31:46 +0000]
org-table: Small refactoring

* lisp/org-table.el (org-table-justify-field-maybe): Small refactoring.

2 weeks agoMerge branch 'master' of orgmode.org:org-mode
Nicolas Goaziou [Mon, 5 Sep 2016 22:15:38 +0000]
Merge branch 'master' of orgmode.org:org-mode

2 weeks agoRemove compatibility code for subr-x.el defsubsts
Nicolas Goaziou [Mon, 5 Sep 2016 22:08:32 +0000]
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.

2 weeks agoshort help fits to window
U-IHM-NOTEBOOK\Olli [Mon, 5 Sep 2016 17:02:19 +0000]
short help fits to window

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Mon, 5 Sep 2016 16:21:29 +0000]
Merge branch 'maint'

2 weeks agoorg-table: Fix alignment issue with entities release_8.3.6
Nicolas Goaziou [Mon, 5 Sep 2016 16:08:31 +0000]
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.

3 weeks agoorg-agenda: Tiny fix
Nicolas Goaziou [Sat, 3 Sep 2016 07:32:46 +0000]
org-agenda: Tiny fix

* lisp/org-agenda.el (org-agenda-write): Allow writing ".htm" files.

3 weeks agoob-comint: Fix org-babel-comint-in-buffer
Aaron Ecay [Sat, 3 Sep 2016 01:48:23 +0000]
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.

3 weeks agobabel: change single-armed ‘if’ statements to ‘when’
Aaron Ecay [Sat, 3 Sep 2016 01:45:27 +0000]
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'.

3 weeks agocontrib: adapt to deprecation of org-remove-(angle-brackets,double-quotes)
Aaron Ecay [Sat, 3 Sep 2016 01:27:17 +0000]
contrib: adapt to deprecation of org-remove-(angle-brackets,double-quotes)

3 weeks agoDeprecate org-remove-(angle-brackets,double-quotes)
Aaron Ecay [Sat, 3 Sep 2016 01:22:11 +0000]
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'.

3 weeks agoAdd obsolescence warning
Aaron Ecay [Sat, 3 Sep 2016 01:11:18 +0000]
Add obsolescence warning

* lisp/org-capture.el (org-capture-import-remember-templates):
Add obsolescence warning.

3 weeks agoString handling improvements.
Aaron Ecay [Sat, 3 Sep 2016 01:05:10 +0000]
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'.

3 weeks agoassoc -> assq
Aaron Ecay [Sat, 3 Sep 2016 00:57:53 +0000]
assoc -> assq

* lisp/ob-sqlite.el (org-babel-execute:sqlite): Change `assoc' to `assq'.

3 weeks agoIntroduce new function for removing paired delimiters from string.
Aaron Ecay [Sat, 3 Sep 2016 00:55:45 +0000]
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.

3 weeks agoob-core: Rename and refactor a function
Aaron Ecay [Sat, 3 Sep 2016 00:52:27 +0000]
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.

3 weeks agoUse org-with-wide-buffer where appropriate
Aaron Ecay [Sat, 3 Sep 2016 00:44:58 +0000]
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'.

3 weeks agoox-md: pacify byte compiler
Aaron Ecay [Sat, 3 Sep 2016 00:26:45 +0000]
ox-md: pacify byte compiler

* lisp/ox-md.el (org-md--footnote-section):
(org-md-inner-template): Fix byte compiler warnings.

3 weeks agoUse file-name-extension where appropriate
Aaron Ecay [Thu, 1 Sep 2016 17:44:30 +0000]
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.

3 weeks agoox-md.el: Export footnotes section as Markdown
Jake Romer [Mon, 22 Aug 2016 08:48:57 +0000]
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.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 1 Sep 2016 16:33:19 +0000]
Merge branch 'maint'

3 weeks agoox-html: Remove duplicate option in back-end
Nicolas Goaziou [Thu, 1 Sep 2016 16:32:16 +0000]
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>

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 1 Sep 2016 16:26:48 +0000]
Merge branch 'maint'

3 weeks agobabel: replace org-babel-*-read-string functions with single version.
Aaron Ecay [Thu, 1 Sep 2016 15:57:57 +0000]
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.

3 weeks agoFix ISO Latin1 expansion of \Delta
Aaron Ecay [Thu, 1 Sep 2016 15:48:42 +0000]
Fix ISO Latin1 expansion of \Delta

* lisp/org-entities.el (org-entities): Fix entry for Delta.

Reported by Matthew Junker

3 weeks agoMerge branch 'maint'
Nick Dokos [Wed, 31 Aug 2016 16:07:32 +0000]
Merge branch 'maint'

3 weeks agoFix scheme expression parsing
Nick Dokos [Wed, 31 Aug 2016 15:51:38 +0000]
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

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 30 Aug 2016 09:52:23 +0000]
Merge branch 'maint'

3 weeks agoorg-entities: Correct unicode symbol of circ
Konstantin Kliakhandler [Mon, 29 Aug 2016 12:23:11 +0000]
org-entities: Correct unicode symbol of circ

* org-entities.el (org-entities): Change the unicode symbol of circ to
  "ring operator" (#x2218).

TINYCHANGE

3 weeks agoORG-NEWS: Notify ob-lua addition
Nicolas Goaziou [Mon, 29 Aug 2016 13:39:56 +0000]
ORG-NEWS: Notify ob-lua addition

3 weeks agoob-lua: Silence byte-compiler
Nicolas Goaziou [Mon, 29 Aug 2016 13:39:05 +0000]
ob-lua: Silence byte-compiler

3 weeks agoox-html: Add pre.src-lua to CSS
thibault [Mon, 29 Aug 2016 07:03:27 +0000]
ox-html: Add pre.src-lua to CSS

* lisp/ox-html.el (org-html-style-default): Add pre.src-lua to CSS.

3 weeks agoorg.texi: Add Lua to supported languages
Nicolas Goaziou [Mon, 22 Aug 2016 09:20:09 +0000]
org.texi: Add Lua to supported languages

* doc/org.texi (Languages): Add Lua to the list of supported languages.

3 weeks agoob-lua: Use cl-lib
Nicolas Goaziou [Mon, 22 Aug 2016 09:16:37 +0000]
ob-lua: Use cl-lib

* lisp/ob-lua.el (org-babel-lua-evaluate-session): Refactor code to
  avoid using unprefixed "cl" macro.

3 weeks agoob-lua: Use lexical binding
Nicolas Goaziou [Mon, 22 Aug 2016 09:15:33 +0000]
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.

3 weeks agoob-lua.el: Update library for Org 9.0
thibault [Mon, 22 Aug 2016 01:43:37 +0000]
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

3 weeks agoob-lua: New file
Dieter Schoen [Mon, 22 Aug 2016 09:02:36 +0000]
ob-lua: New file

3 weeks agoorg-table: Tiny refactoring
Nicolas Goaziou [Sun, 28 Aug 2016 22:54:41 +0000]
org-table: Tiny refactoring

* lisp/org-table.el (org-table-recalculate): Tiny refactoring.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 28 Aug 2016 22:45:07 +0000]
Merge branch 'maint'

3 weeks agoorg-table: Fix column formulas
Nicolas Goaziou [Sun, 28 Aug 2016 22:29:37 +0000]
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>

3 weeks agoFix entity definition of \nbsp
Aaron Ecay [Sun, 28 Aug 2016 18:03:52 +0000]
Fix entity definition of \nbsp

* lisp/org-entities.el (org-entities): Use a proper non-breaking space
for \nbsp.

4 weeks agoox-latex: Fix typo
Nicolas Goaziou [Sun, 28 Aug 2016 10:14:39 +0000]
ox-latex: Fix typo

* lisp/ox-latex.el (org-latex--delayed-footnotes-definitions): Fix typo
  in docstring.

4 weeks agoorg-compat: Silence byte-compiler
Nicolas Goaziou [Sun, 28 Aug 2016 10:12:55 +0000]
org-compat: Silence byte-compiler

4 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 28 Aug 2016 10:02:51 +0000]
Merge branch 'maint'

4 weeks agoox-html: Remove spurious newline at the end of inline source code
Nicolas Goaziou [Sun, 28 Aug 2016 10:01:08 +0000]
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>

4 weeks agoFix coderef handling in source blocks
Nicolas Goaziou [Sun, 28 Aug 2016 09:45:39 +0000]
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>

4 weeks agoClean up string handling.
Aaron Ecay [Wed, 24 Aug 2016 15:05:54 +0000]
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'.

4 weeks agocontrib/README: Remove "org-eww.el" from the list
Nicolas Goaziou [Tue, 23 Aug 2016 20:17:49 +0000]
contrib/README: Remove "org-eww.el" from the list

* contrib/README: Remove "org-eww.el", which has been moved to core.

4 weeks agoTurn org-mode into Org or Org mode
Nicolas Goaziou [Tue, 23 Aug 2016 20:13:56 +0000]
Turn org-mode into Org or Org mode

Use Org or Org mode instead of org-mode or Org-mode according to
"Documentation standards".

4 weeks agoFix typo in a docstring
Nicolas Goaziou [Tue, 23 Aug 2016 08:47:18 +0000]
Fix typo in a docstring

* lisp/org.el (org-link-abbrev-alist): Fix typo.

4 weeks agoHandle tooltips on abbreviated links
Nicolas Goaziou [Tue, 23 Aug 2016 07:34:29 +0000]
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>

4 weeks agoox-html: Tiny fix
Nicolas Goaziou [Mon, 22 Aug 2016 20:13:24 +0000]
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.

4 weeks agoox-html: Number source blocks with listings
Nicolas Goaziou [Mon, 22 Aug 2016 20:07:34 +0000]
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>

4 weeks agoox-latex: Fix repeated footnotes in tables
Nicolas Goaziou [Mon, 22 Aug 2016 10:07:34 +0000]
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>

5 weeks agotest-ob-maxima: Revert last commit
Marco Wahl [Sat, 20 Aug 2016 21:43:35 +0000]
test-ob-maxima: Revert last commit

* testing/lisp/test-ob-maxima.el:
(ob-maxima/matrix-output): Remove filtering of informational output.

Credit to Leo Butler.  From his post:

    Since those informational messages are written to stdout, do

    with_stdout("/dev/null", load(numericalio))$
    write_data ....

    to muffle the messages. Note that sbcl warnings are muffled by

    :lisp (setf sb-ext::*muffled-warnings* 'warning)

5 weeks agoob-maxima-test: Clarify matrix test
Marco Wahl [Sat, 20 Aug 2016 21:36:41 +0000]
ob-maxima-test: Clarify matrix test

* testing/examples/ob-maxima-test.org: Suppress informational output at
  load of numericalio.  (This output made testing complicated.)

5 weeks agotest-ob-maxima: Fix maxima matrix test
Marco Wahl [Sat, 20 Aug 2016 19:48:16 +0000]
test-ob-maxima: Fix maxima matrix test

* testing/lisp/test-ob-maxima.el (ob-maxima/matrix-output): Remove lines
  starting with ";;" from the result of `org-babel-execute-src-block'.

This fix works around the occurance of lines like

;; loading #P"/home/b/.../numericalio/encode-decode-float.fasl"

in the output of maxima.

Maxima version: "5.38.1"
Lisp implementation type: "SBCL"
Lisp implementation version: "1.3.6"

5 weeks agoob-maxima-test: Tiny cleanup
Marco Wahl [Sat, 20 Aug 2016 17:33:16 +0000]
ob-maxima-test: Tiny cleanup

* testing/examples/ob-maxima-test.org: Removed superfluous source block
  variable.