summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
15 hoursMerge branch 'maint'HEADmasterNicolas Goaziou3-17/+11
15 hoursox-latex: Allow hyperref and footnotemark in items description tagsmaintNicolas Goaziou1-15/+1
* lisp/ox-latex.el (org-latex-item): Allow hyperref and footnotemark in items description tags. Also remove a unnecessary hack allowing footnotemark with an optional argument in the tag. Initial patch from Rick Frankel.
15 hoursox: Fix fuzzy link resolution before first headlineNicolas Goaziou2-2/+10
* lisp/ox.el (org-export-resolve-fuzzy-link): Fix link resolution when link lives before the first headline. * testing/lisp/test-ox.el: Add test.
45 hoursMerge branch 'maint'Nicolas Goaziou2-18/+27
45 hoursorg-element: Fix special block parsingNicolas Goaziou2-18/+27
* lisp/org-element.el (org-element-special-block-parser): Fix typo in regexp matching block type. Also quote the type so it can contain special characters. * testing/lisp/test-org-element.el: Add test.
3 daysMerge branch 'maint'Nicolas Goaziou1-1/+1
3 daysox-latex: Remove -c argument from compilation with texi2dviNicolas Goaziou1-1/+1
* lisp/ox-latex.el (org-latex-pdf-process): This argument can cause problem with links with a relative path, since compilation happens in a different directory.
5 daysMerge branch 'maint'Nicolas Goaziou2-4/+4
5 daysox-latex: Use "ulem" package for both underline and strike throughNicolas Goaziou2-4/+4
* lisp/org.el (org-latex-default-packages-alist): Load "ulem" package by default. Use "[normalem]" option to preserve \emph definition. * lisp/ox-latex.el (org-latex-text-markup-alist): Use "\uline" and "\sout" commands from "ulem" package.
6 daysmissing argument to error messageEric Schulte1-1/+1
* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Missing argument to error message.
6 dayslist term as a gnuplot header argumentEric Schulte1-1/+2
* lisp/ob-gnuplot.el (org-babel-header-args:gnuplot): Term is a gnuplot header argument.
7 daysox-latex: Allow AUTO argument to org-latex-guess-babel-languagerasmus.pank1-12/+24
* ox-latex.el (org-latex-guess-babel-language): replace AUTO with language if AUTO is the option of the LaTeX package Babel. (org-latex-classes): updated documentation with respect to `org-latex-guess-babel-language'. TINYCHANGE
7 daysPossible to set default class for ox koma letters.rasmus1-3/+38
* ox-koma-letter.el (org-koma-letter-default-class): default class for =ox-koma-letter=. Default is nil. * ox-koma-letter.el (org-koma-letter-plug-into-ox): add a sparse letter class to =`org-latex-class'= and set it to default. By default it will use =`org-latex-default-class'=. Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>
7 daysAdded support for to and from heading.rasmus1-9/+53
* ox-koma-letter.el: documentation. (org-koma-letter-special-tags-in-letter): list of tags that are typeset as part of the letter. (org-koma-letter--determine-special-value): determine which value to use (for to and from currentlly) if more than candidate is available. Which value is selected depends on `org-koma-letter-prefer-special-headings'. (org-koma-letter-prefer-special-headings): a boolean stating whether to prefer headings with to/from or the #+X_ADDRESS. The following letter now exports "as expected". In particular when special-headings is t heading values have presedence so the from address would be ="Rasmus\nEmacs\nOrg-mode"= where the =\n=s would be escaped. If specia-headings is nil (default) the from would be my-adr. The same is true for TO address. Here's the contents * from :from: Rasmus Emacs Org-mode On a technical note, note that the default value will be used if neither #+X_ADDRESS or a heading is given. Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>
7 daysBug fixes for ox-koma-letter.elrasmus.pank1-37/+81
* ox-koma-letter.el: updated documentation and improved defcustoms. (org-koma-letter-special-tags-after-letter) (org-koma-letter-special-tags-after-closing): now symbol. (org-koma-letter--get-custom): falls back to value (org-koma-letter--prepare-special-contents-as-macro): let newlines be handled outside of the function (org-koma-letter--remove-offending-new-lines): function to add new lines. (org-koma-letter-headline): updated to work with symbols and made more robust. (org-koma-letter-export-to-latex): reset =`org-koma-letter-special-contents'= to nil Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>
8 daysorg-contacts: Provide ordering when using cycle completionØyvind Stegard1-1/+2
* contrib/lisp/org-contacts.el (org-contacts-metadata-prefix): Provide same function for cycle ordering as is used for display ordering in completion metadata. When using cycle completion style for contacts, by setting `completion-cycle-threshold' to some value, the ordering was not consistent with order of email addresses in contact definition, nor the order which was used for regular display completion. Fix that by also supplying sort function for cycle completion in metadata.
8 daysfixed bug in tangle-fileEric Schulte1-1/+1
* lisp/ob-tangle.el (org-babel-tangle): Fixed bug in tangle-file.
8 daysorg-compat.el: Fix indentation.Bastien Guerry1-27/+27
9 daysob-core: allow language specific header arguments in propertiesAchim Gratz1-19/+31
* lisp/ob-core.el (org-babel-insert-header-arg, org-babel-parse-src-block-match): Replace `if' with empty else part by `when' for readability. (org-babel-params-from-properties): Inquire for language specific and default header properties. Language specific header properties take precedence over default header properties and old-style header property specifications. This allows for header arguments to be specified as properties (including inheritance). #+PROPERTY: header-args :cache "no" #+PROPERTY: header-args:R :session "*R-property*" :PROPERTIES: :header-args: :cache "yes" :header-args:R: :session "*R-drawer*" :END:
9 daysorg-compat: XEmacs actually needs the argument lists...Achim Gratz1-2/+2
org-compat (define-obsolete-variable-alias, define-obsolete-function-alias): Re-introduce argument lists as XEmacs' byte-compiler otherwise stops compilation. This means that no other advices must modify these functions with a different argument list.
9 daysorg-compat: remove argument lists from defadvice, use positional arguments ↵Achim Gratz1-4/+2
instead org-compat (custom-handle-keyword, define-obsolete-variable-alias, define-obsolete-function-alias): Remove argument lists from defadvice and use positional arguments instead of named arguments.
9 daysorg-compat: strip last argument from ↵Achim Gratz1-0/+2
define-obsolete-{function,variable}-alias for XEmacs * lisp/org-compat.el (define-obsolete-variable-alias, define-obsolete-function-alias): Actually remove the third (and any following) argument from the argument list before calling the advised function.
9 dayschange file modes once after tanglingEric Schulte1-9/+15
* lisp/ob-tangle.el (org-babel-tangle): Collect tangle modes, and only apply them to the file after all tangling has completed, including the post-tangle-hook.
10 daysMerge branch 'maint'Nicolas Goaziou1-2/+2
10 dayslisp/ox-html.el: Minimal encoding for code and verbatim textAurélien Aptel1-2/+2
* lisp/ox-html.el: Remove fancy string replacements for code and verbatim text when exporting to html. Exporting =--option= or ~--option~ to html used to replace -- with a ndash. TINYCHANGE
10 daysMerge branch 'maint'Nicolas Goaziou2-1/+2
10 daysox-latex: Use \ul (from soul package) instead of \underlineNicolas Goaziou2-1/+2
* lisp/org.el (org-latex-default-packages-alist): Document need for "soul" package. * lisp/ox-latex.el (org-latex-text-markup-alist): Use \ul (from "soul" package) instead of \underline for underline text.
11 daysupdating tangle-mode documentation for new readingEric Schulte1-6/+6
11 daysdo not read #-prefix header-arg value as emacs lispEric Schulte1-2/+2
* lisp/ob-core.el (org-babel-read): Do not read #-prefix header-arg value as emacs lisp.
11 daystesting/examples/babel.org: quote :shebangAchim Gratz1-1/+1
* testing/examples/babel.org: Quote :shebang header argument. 2a73e06 introduced a new behaviour for org-babel-read and values starting with "#" must now be quoted.
11 daysob-fortran: declare org-everyAchim Gratz1-0/+1
* lisp/ob-fortran.el (org-every): Declare.
11 daysorg.el: improve org-property-re and use it throughoutAchim Gratz2-23/+23
* lisp/org.el (org-property-re): Improve definition so that this regex can be used in all situations. Extend docstring with explanation of matching groups. (org-at-property-p): Implement using `org-element-at-point'. (org-entry-properties, org-buffer-property-keys, org-indent-line): Use `org-property-re' and adjust match group numbers accordingly. * lisp/org-element.el (org-element-node-property-parser): Use `org-property-re' and adjust match group numbers accordingly. Move `looking-at' out of the let clause to not rely on the unspecified evaluation order inside the let.
11 daysorg-babel-current-exec-src-block-head -> org-babel-current-src-block-locationEric Schulte3-6/+10
* lisp/ob-core.el (org-babel-current-src-block-location): Rename org-babel-current-exec-src-block-head to org-babel-current-src-block-location. (org-babel-execute-src-block): Rename org-babel-current-exec-src-block-head to org-babel-current-src-block-location. * lisp/ob-exp.el (org-babel-exp-results): Rename org-babel-current-exec-src-block-head to org-babel-current-src-block-location. * lisp/ob-lob.el (org-babel-lob-execute): Rename org-babel-current-exec-src-block-head to org-babel-current-src-block-location.
11 daysfix errors building the documentationEric Schulte1-9/+9
11 daysadding a new global tangle-mode header argumentEric Schulte4-10/+31
* doc/org.texi (Top): Documentation for new tangle-mode header argument. (Specific header arguments): Documentation for new tangle-mode header argument. (rownames): Documentation for new tangle-mode header argument. (tangle-mode): Documentation for new tangle-mode header argument. * lisp/ob-core.el (org-babel-common-header-args-w-values): Adding the new :tangle-mode header argument. (org-babel-read): Read values starting with a "#" character as emacs lisp. * lisp/ob-tangle.el (org-babel-tangle): Use the new :tangle-mode header argument. * lisp/org-pcomplete.el (pcomplete/org-mode/block-option/src): Use the new :tangle-mode header argument.
11 dayssave code block location during exportEric Schulte1-1/+2
* lisp/ob-exp.el (org-babel-exp-results): Save the code block location into `org-babel-current-exec-src-block-head' during export.
12 daysavoid file warnings in org-babel-post-tangle-hookVitalie Spinu1-1/+1
* lisp/ob-tangle.el (org-babel-find-file-noselect-refresh): call find-file-noselect with 'nowarn argument to surpress yes-or-no-p reversion message.
13 daysupdated jump submodule for those behind http proxyEric Schulte1-1/+1
13 daysmore robust edebug specEric Schulte1-1/+1
* lisp/ob-comint.el (org-babel-comint-with-output): More robust edebug spec.
13 daysob-C: Add list support.Rüdiger Sonderfeld3-28/+118
* lisp/ob-C.el (org-babel-C-var-to-C): Add list support (org-babel-C-val-to-C-list-type, org-babel-C-val-to-C-type, org-babel-C-format-val): New functions. (org-babel-C-ensure-main-wrap, org-babel-execute:C, org-babel-execute:C++, rg-babel-execute:cpp, org-babel-C++-compiler, org-babel-C-compiler): Improve docstring. * testing/examples/ob-C-test.org (string_var): Add required std:: (Array): Add missing ID. (Matrix): Add tests for list support. * testing/lisp/test-ob-C.el (ob-C/table): Test succeeds. (ob-C/list-var, ob-C/vector-var, ob-C/list-list-var): Add tests for list support. Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
13 dayssub -> subsub headingEric Schulte1-1/+1
13 daysinline sets org-babel-current-exec-src-block-headEric Schulte1-1/+2
* lisp/ob-lob.el (org-babel-lob-execute): Set the org-babel-current-exec-src-block-head variable when executing inline or lob style code.
13 daysorg-babel-current-exec-src-block-head -> outermostEric Schulte1-1/+2
* lisp/ob-core.el (org-babel-execute-src-block): The org-babel-current-exec-src-block-head variable should point to the outermost code block.
13 daysif we have org-every we should have org-someEric Schulte1-0/+7
* lisp/org.el (org-some): An org-mode version of the cl some function.
13 daysmore careful check if values are matricesEric Schulte1-1/+1
* lisp/ob-fortran.el (org-babel-fortran-var-to-fortran): More careful check if values are matrices.
13 daysan Org-mode version of the cl every functionEric Schulte1-0/+7
* lisp/org.el (org-every): An Org-mode version of the cl every function.
13 daysmake src block location available to execution backendsVitalie Spinu1-5/+8
* lisp/ob-core.el (org-babel-where-is-src-block-head): return point-marker instead of point. (org-babel-current-exec-src-block-head): new global variable which is bound during `org-babel-execute-src-block-maybe' (org-babel-get-src-block-info): return a list of 7 elements, last being the header location Evaluation backends might need to use the exact location of the block in original org file. For example when inserting the correct source references for visual debugging. With this patch the information on current block is available in `org-babel-current-exec-src-block-head'.
13 days`org-src-switch-to-buffer' to jump from src to orgEric Schulte1-1/+1
* lisp/ob-tangle.el (org-babel-tangle-jump-to-org): Use `org-src-switch-to-buffer' to jump from src to org.
13 daysdocumentation of jump-from-src-to-org functionalityEric Schulte1-0/+15
14 daysorg-entities: Add support for hbar.Rüdiger Sonderfeld1-0/+1
* lisp/org-entities.el (org-entities): Add support for hbar. Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>