summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
4 hoursox-latex: Fix footnote bug when narrowed bufferHEADmasterRasmus1-1/+2
* ox-latex.el (org-latex-footnote-reference): Support math in outside footnotes when narrowed.
4 hoursORG-NEWS: Document remote editing of footnote definitionsNicolas Goaziou1-0/+4
4 hoursorg-src: Refuse to edit remotely inline footnotesNicolas Goaziou1-34/+33
* lisp/org-src.el (org-edit-footnote-reference): Throw an error when definition is inline.
7 hoursorg-src: Allow editing footnote definitionsNicolas Goaziou2-15/+73
* lisp/org-src.el (org-src--element-contents-area): Make a special case for footnote definitions. (org-edit-footnote-reference): New function. * lisp/org.el (org-edit-special): Use new function.
8 hoursorg-src: Allow editing elements remotelyNicolas Goaziou1-30/+49
* lisp/org-src.el (org-src--remote-p): New variable. (org-src--edit-element): Add optional argument. (org-edit-src-exit): Handle new optional argument.
8 hoursorg-src: Allow to post-process edit bufferNicolas Goaziou1-30/+35
* lisp/org-src.el (org-src--allow-write-back): Rename from `org-src--allow-write-back-p'. (org-src--edit-element): (org-src-mode-configure-edit-buffer): (org-edit-src-abort): (org-edit-src-exit): Apply renaming. (org-src--contents-for-write-back): (org-edit-export-block): (org-edit-src-code): (org-edit-fixed-width-region): Use post-process.
23 hoursorg-cycle: Cycle visibility when point is at the end of a folded headlineCharles Berry1-1/+1
* lisp/org.el: (org-cycle): Ignore invisible newlines and cycle visibility when point is visibly on a headline. Requested by: Nikolaus Rath <Nikolaus@rath.org> <http://permalink.gmane.org/gmane.emacs.orgmode/97125>
32 hoursorg-footnote: Fix 5954f6aa25b51a3a9a8f258fb0f15ef51be31366Nicolas Goaziou2-4/+10
* lisp/org-footnote.el (org-footnote-goto-definition): Better check for narrowed scope. * testing/lisp/test-org-footnote.el (test-org-footnote/goto-definition): Add test.
33 hoursorg-footnote: Do not move point if definition is unreachableNicolas Goaziou2-5/+35
* lisp/org-footnote.el (org-footnote-goto-definition): Throw an error when definition is outside narrowed part of buffer. Do not move point either. * testing/lisp/test-org-footnote.el (test-org-footnote/goto-definition): New test. Reported-by: Rasmus <rasmus@gmx.us> <http://permalink.gmane.org/gmane.emacs.orgmode/97158>
33 hoursob-processing.el: Support for Processing languageJarmo Hurri2-5/+203
* lisp/ob-processing.el: New file. * doc/org.texi (Languages): Signal new language. This library implements necessary functions for implementing editing of Processing code blocks, viewing the resulting sketches in an external viewer, and HTML export of the sketches. Editing Processing blocks requires processing2-emacs mode. Viewing Processing blocks embedded in Org buffer in an external viewer also requires processing2-emacs. This viewing is bound to C-c C-v C-k and produces no results in Org buffer. HTML export of the results of a Processing block is also supported, assuming that the processing.js module is available: the sketch is then drawn by the browser when the HTML page is viewed. This drawing is implemented by embedding the Processing code in a script using the processing.js module. The user is responsible for making sure that processing.js is available in the correct location. Console output from a Processing block produced e.g. by println() is shown in the Processing compilation window when the code is executed in Org buffer, and in text area (console) of the browser when the code is embedded in HTML.
46 hoursorg.el: Remove org-timer-cancel-timer bindingKyle Meyer1-1/+0
* lisp/org.el (org-mode-map): Remove binding for deleted command org-timer-cancel-timer. The command org-timer-cancel-timer was removed in 173b0cb6d6.
46 hoursox-html: Fix typoNicolas Goaziou1-1/+1
* lisp/ox-html.el (org-html-paragraph): Fix typo introduced in da571868a56d33ef970cf0072f34d0ed8db91c55.
46 hoursox-html: Fix paragraph class in footnote definitionsNicolas Goaziou1-3/+4
* lisp/ox-html.el (org-html-footnote-section): (org-html-paragraph): Add "footpara" class for footnote definitions. Reported-by: Rasmus <rasmus@gmx.us> <http://permalink.gmane.org/gmane.emacs.orgmode/97157>
2 daysorg-element: Keep ARCHIVE tag in headline tagsNicolas Goaziou2-12/+3
* lisp/org-element.el (org-element-headline-parser): Do not remove ARCHIVE tag. (org-element-headline-interpreter): Apply change. * testing/lisp/test-org-element.el (test-org-element/headline-archive-tag): Update tests. <http://permalink.gmane.org/gmane.emacs.orgmode/97141>
3 daysox-odt: Fix bug links without labels.Rasmus1-3/+5
* ox-odt.el (org-odt-format-label): Determine label more carefully. Reported-by: Vicente Vera <vicentemvp@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/97090>
3 daysorg.el: Handle nil org-latex-to-mathml-jar-fileRasmus1-2/+4
* org.el (org-create-math-formula): Handle nil org-latex-to-mathml-jar-file.
4 daysTiny refactoringNicolas Goaziou1-4/+4
* lisp/org.el (org-iread-file-name): Refactor. `read-file-name' already applies `read-file-name-function' when available.
4 daysorg-pcomplete: Update copyright yearNicolas Goaziou1-1/+1
4 daysox: Tiny fix to code commentsNicolas Goaziou1-5/+5
* lisp/ox.el (org-export--get-subtree-options): Tiny fix.
4 daysox: Fix OPTIONS line parsingNicolas Goaziou2-26/+27
* lisp/ox.el (org-export--parse-option-keyword): Fix parsing of items. * testing/lisp/test-ox.el (test-org-export/parse-option-keyword): Add test.
4 daysRename `org-export--registered-backends'Nicolas Goaziou4-44/+44
* lisp/ox.el (org-export-registered-backends): Renamed from `org-export--registered-backends'. (org-export-get-backend): (org-export-register-backend): (org-export-insert-default-template): (org-export--dispatch-ui): * lisp/org.el (org-export-registered-backends): (org-export-backends): (org-get-export-keywords): * lisp/org-pcomplete.el (pcomplete/org-mode/file-option/options): * testing/lisp/test-ox.el (test-org-export/define-backend): (test-org-export/define-derived-backend): (test-org-export/derived-backend-p): (test-org-export/get-all-transcoders): (test-org-export/get-all-options): (test-org-export/get-all-filters): (test-org-export/with-backend): Apply renaming. Since the variable is copiously used outside of "ox.el", there's no reason to mark it as internal.
4 daysSilence byte-compilerNicolas Goaziou4-33/+29
* lisp/ob-shell.el (org-babel-sh-evaluate): * lisp/org-clock.el (org-x11idle-exists-p): Do not use last `call-process-shell-command' arg. * lisp/org-mouse.el (org-mouse-show-context-menu): Ignore `redisplay-dont-pause'. * lisp/org.el (org-icompleting-read): Fix typo. Small refactoring.
5 daysorg-element: Improve babel calls parsingNicolas Goaziou2-35/+119
* lisp/org-element.el (org-element-babel-call-parser): (org-element-inline-babel-call-parser): Parse call name, inside header, arguments and end header. Update docstring. * testing/lisp/test-org-element.el (test-org-element/babel-call-parser): (test-org-element/inline-babel-call-parser): (test-org-element/babel-call-interpreter): (test-org-element/inline-babel-call-interpreter): Add tests.
6 daysorg.el: Fix 7ec8cedRasmus1-21/+27
* org.el (org-icompleting-read): Correct bug introduced previously.
6 daysExport back-ends: Use `org-export-file-uri'Nicolas Goaziou7-17/+8
* contrib/lisp/ox-groff.el (org-groff-link): * lisp/ox-html.el (org-html-link): * lisp/ox-latex.el (org-latex-link): * lisp/ox-man.el (org-man-link): * lisp/ox-md.el (org-md-link): * lisp/ox-odt.el (org-odt-link): * lisp/ox-texinfo.el (org-texinfo-link): Use `org-export-file-uri'.
6 daysox: Implement `org-export-file-uri'Nicolas Goaziou2-0/+25
* lisp/ox.el (org-export-file-uri): New function. * testing/lisp/test-ox.el (test-org-export/file-uri): New test.
6 daysorg-element: Fix "file" link :pathNicolas Goaziou2-12/+7
* lisp/org-element.el (org-element-link-parser): Fix :path value. * testing/lisp/test-org-element.el (test-org-element/link-parser): Update tests. :path now really contains the filename, not some truncated URI.
7 daysRevert "ox: Change label naming scheme"Rasmus1-11/+2
This reverts commit cf7d64f1e456cad281674fc81a8074f969b7911c.
7 daysorg.texi: Remove `org-latex-custom-id-as-label'Nicolas Goaziou1-1/+0
* doc/org.texi (Publishing options): Remove `org-latex-custom-id-as-label'. This variable was replaced with `org-latex-prefer-user-labels' in 4bbc054bd252b975f483a29515495a9af9329c71.
7 daysorg.texi: Introduce `org-latex-prefer-user-labels'Nicolas Goaziou1-0/+1
* doc/org.texi (Publishing options): Introduce `org-latex-prefer-user-labels'.
7 daysox-latex: Tiny refactoringNicolas Goaziou1-2/+3
* lisp/ox-latex.el (org-latex--label): Tiny refactoring.
7 daysox-latex: Fix f1548e11fe2972819bc48b88c6094b11150e5c8aNicolas Goaziou1-15/+18
* lisp/ox-latex.el (org-latex-prefer-user-labels): Fix docstring. (org-latex--label): Fix docstring. Do not add a spurious newline character when generating "\\label" macro for a target. (org-latex-link): (org-latex-radio-target): Radio targets always use internal labelling scheme. Radio targets are visible in the document so they can contain forbidden characters, and user cannot adapt them to naming restrictions from a given back-end.
8 daysox-html: Fix CUSTOM_ID handlingNicolas Goaziou1-8/+16
* lisp/ox-html.el (org-html-headline): Prefer raw CUSTOM_ID over internal reference. This is required for custom CSS and to link generated page from outside Org. However, the user is responsible for not using forbidden characters in its value.
10 daysorg.el: Respect read-file-name-functionRasmus1-1/+1
* org (org-iread-file-name): Respect read-file-name-function.
10 daysorg.el: Refactor org-file-complete-linkRasmus1-18/+16
* org.el (org-file-complete-link): Refactor.
10 daysorg.el: Small refactorRasmus1-23/+19
* org.el (org-icompleting-read): Support completing-read-default.
10 daysUse `completing-read-function' for completionOleh Krehel1-15/+19
lisp/org.el (org-icompleting-read): When `completing-read-function' is the default one, use `ido', otherwise, use `completing-read-function'.
10 daysox: Change label naming schemeRasmus1-2/+11
* ox.el (org-export-get-reference): Change labeling scheme. 160820bc94 and later changed the label naming scheme to follow types. This commit maps to types to more standard names, e.g. 'headline' to 'sec'.
10 daysox-latex: Accept user-label for more typesRasmus1-10/+11
* ox-latex.el (org-latex--label): Add user-labels for targets. (org-latex--wrap-label, org-latex-link, org-latex-target) (org-latex-radio-target): Use org-latex--label.
10 daysRemove intanglibe overlayRasmus2-3/+1
* org-colview.el (org-columns-display-here): * org-agenda.el (org-agenda-dim-blocked-tasks): Remove intanglible overlay. Suggested-by: Stefan Monnier <monnier@IRO.UMontreal.CA> <http://permalink.gmane.org/gmane.emacs.orgmode/96914> (Incl. original patch by Stefan).
13 daysox-publish: Extend published external linksNicolas Goaziou2-35/+88
* lisp/ox-publish.el (org-publish-collect-numbering): (org-publish-resolve-external-fuzzy-link): Remove functions. (org-publish--collect-references, org-publish-resolve-external-link): New functions. (org-publish-org-to): Use new functions. * lisp/ox-html.el (org-html-link): Reflect changes above. This patch extends `org-publish-resolve-external-fuzzy-link', now known as `org-publish-resolve-external-link' to custom-id links and dedicated targets.
13 daysox-latex: Introduce `org-latex-prefer-user-labels' variableNicolas Goaziou2-76/+89
* lisp/ox-latex.el (org-latex-prefer-user-labels): New variable. (org-latex-custom-id-as-label): Remove variable. (org-latex--label): New function. (org-latex--caption/label-string): (org-latex-headline): (org-latex-inlinetask): (org-latex-latex-environment): (org-latex-link): Use new function. * etc/ORG-NEWS: Document new variable. This variable replaces, and generalizes, `org-latex-custom-id-as-label'.
13 daysox: Remove `org-export-solidify-link-text'Nicolas Goaziou2-8/+3
* lisp/ox.el (org-export-solidify-link-text): Remove function. * etc/ORG-NEWS: Signal removal.
13 daysExport back-ends: Use `org-export-get-reference'Nicolas Goaziou9-212/+164
* lisp/ox-beamer.el (org-beamer-link): (org-beamer-plain-list): (org-beamer-target): (org-beamer-radio-target): * lisp/ox-html.el (org-html--wrap-image): (org-html--format-toc-headline): (org-html-list-of-listings): (org-html-list-of-tables): (org-html-headline): (org-html-inline-src-block): (org-html-link): (org-html-paragraph): (org-html-section): (org-html-radio-target): (org-html-src-block): (org-html-table): (org-html-target): * lisp/ox-latex.el (org-latex--caption/label-string): (org-latex--wrap-label): (org-latex-center-block): (org-latex-drawer): (org-latex-dynamic-block): (org-latex-example-block): (org-latex-fixed-width): (org-latex-headline): (org-latex-horizontal-rule): (org-latex-latex-environment): (org-latex-link): (org-latex-plain-list): (org-latex-quote-block): (org-latex-radio-target): (org-latex-target): (org-latex-verse-block): * lisp/ox-man.el (org-man-target): * lisp/ox-md.el (org-md-headline): * lisp/ox-odt.el (org-odt-format-headline--wrap): (org-odt-headline): (org-odt-format-label): (org-odt-link--infer-description): (org-odt-link): (org-odt-radio-target): (org-odt-target): * lisp/ox-texinfo.el (org-texinfo--get-node): (org-texinfo-radio-target): (org-texinfo-target): * contrib/lisp/ox-groff.el (org-groff-link): (org-groff-radio-target): (org-groff-target): * contrib/lisp/ox-rss.el (org-rss-headline): Use `org-export-get-reference'.
13 daysox: Remove `org-export-get-headline-id'Nicolas Goaziou2-73/+13
* lisp/ox.el (org-export-get-headline-id): (org-export--collect-unnumbered-headline-id): Remove function. (org-export-collect-tree-properties): Apply removal. * testing/lisp/test-ox.el (test-org-export/org-export-get-headline-id): Remove test. (test-org-export/numbered-headline-p): Update test. `org-export-get-reference' supersedes it.
13 daysox: Implement `org-export-get-reference'Nicolas Goaziou2-0/+23
* lisp/ox.el (org-export-get-reference): New function. * etc/ORG-NEWS: Signal new function.
13 daysORG-NEWS: Update copyright yearNicolas Goaziou1-1/+1
13 daysox-latex: Tiny fixNicolas Goaziou1-1/+1
* lisp/ox-latex.el (org-latex-link): Tiny fix.
14 daysox-latex: Use :ALT_TITLE: on unnumbered headlinesNicolas Goaziou1-1/+1
* lisp/ox-latex.el (org-latex-headline): Use :ALT_TITLE: also on unnumbered headlines. Suggested-by: Marcin Borkowski <mbork@wmi.amu.edu.pl> <http://permalink.gmane.org/gmane.emacs.orgmode/96860>
2015-04-11org-footnote: Allow new footnotes in headlinesNicolas Goaziou2-0/+20
* lisp/org-footnote.el (org-footnote--allow-reference-p): Allow new footnotes in headlines. * testing/lisp/test-org-footnote.el (test-org-footnote/new): Add test. Reported-by: Thomas S. Dye <tsd@tsdye.com> <http://permalink.gmane.org/gmane.emacs.orgmode/96843>