summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-04org-agenda: Fix UI bug with effort filterNicolas Goaziou
* lisp/org-agenda.el (org-agenda-filter-by-effort): "0" key effectively selects the last effort duration instead of the first one. Do not accept invalid keys, i.e., do not treat most of invalid keys as "0".
2017-01-04Improve documentation about agenda filtersNicolas Goaziou
* doc/org.texi (Filtering/limiting agenda items): Add reference to `org-agenda-effort-filter-preset'. Document prefix arguments for `org-agenda-filter-by-effort'. Fix typo. (Agenda commands): Remove index entries for unreferenced variables. Tiny clean-up.
2017-01-03Fix "invalid face reference" when filtering agenda by effortNicolas Goaziou
* lisp/org-faces.el (org-agenda-filter-effort): New face. (org-agenda-filter-category): Fix docstring. Reported-by: wtm <wtmonroe.ls@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/111132>
2017-01-03ob-shell: Fix wrong variable assignment bindingNicolas Goaziou
* lisp/ob-shell.el (org-babel-shell-initialize): Provide bindings to handle variable assignments for all the supported shells. (org-babel--variable-assignments:sh-generic): (org-babel--variable-assignments:bash_array): (org-babel--variable-assignments:bash_assoc): (org-babel--variable-assignments:bash): Rename using an internal naming scheme since they are not meant to be called directly from "ob-core.el". (org-babel-variable-assignments:shell): Apply renaming. Reported-by: David Dynerman <emperordali@block-party.net> <http://permalink.gmane.org/gmane.emacs.orgmode/111139>
2017-01-02ob-ruby: Silence byte-compilerNicolas Goaziou
2017-01-01Update ob-ruby for inf-ruby 2.5Rick Frankel
* lisp/ob-ruby.el (org-babel-ruby-initiate-session): `run-ruby` has very different semantics in inf-ruby 2.5. Set ruby command to the default which used to be set by `run-ruby` and try and find already existing buffer before invocation.
2017-01-01Update copyright yearsNicolas Goaziou
* lisp/org-crypt.el: * lisp/ox-publish.el: Update copyright years.
2017-01-01ox-publish: Back-port `org-publish-property'Nicolas Goaziou
* lisp/ox-publish.el (org-publish-property): New function.
2017-01-01org-crypt: Fix data loss when providing an empty keyNicolas Goaziou
* lisp/org-crypt.el (org-encrypt-entry): Insert original text back upon encryption failure. Reported-by: fxiny <wtimew@libero.it> <http://permalink.gmane.org/gmane.emacs.orgmode/111115>
2016-12-31ox-publish: Fix `org-publish-get-project-from-filename' and :includeNicolas Goaziou
* lisp/ox-publish.el (org-publish-get-project-from-filename): Properly check included files. Complete docstring. Refactor code.
2016-12-29ox-publish: Fix :base-extension set to `any'Nicolas Goaziou
* lisp/ox-publish.el (org-publish-get-project-from-filename): Handle case when :base-extension is `any'. (org-publish-project-alist): Improve docstring. Reported-by: Arun Isaac <arunisaac@systemreboot.net> <http://permalink.gmane.org/gmane.emacs.orgmode/111085>
2016-12-29Reveal tags after setting themAlexey Lebedeff
* lisp/org.el (org-set-tags): Reveal newly inserted tags. * testing/lisp/test-org.el (test-org/set-tags): New test. Sometimes freshly added tags can be sucked into invisible outline region (denoted by ellipsis) - and to see them you need to do the full global visibilty cycle.
2016-12-29org-clock: Fix ":formula %" with disparate duration formatsNicolas Goaziou
* lisp/org-clock.el (org-clock-time%): Handle various duration formats. Refactor code. * testing/lisp/test-org-clock.el (test-org-clock/clocktable): Add tests. Reported-by: Andreas Mueller <lists@0x7.ch> <http://permalink.gmane.org/gmane.emacs.orgmode/111067>
2016-12-27ox-publish: Fix typosNicolas Goaziou
2016-12-26Fix following links starting with square bracketsNicolas Goaziou
* lisp/org.el (org-link-search): Improve regexp. * testing/lisp/test-org.el (test-org/fuzzy-links): Add tests.
2016-12-22Fix `org-compile-file'release_9.0.3Nicolas Goaziou
* lisp/org.el (org-compile-file): Ensure `out-dir' is always a string.
2016-12-20Fix org-clock-loadMatt Lundin
Since commit fda64f1ae2110175662b52daa3a5ec0f967f0c0d on November 6, org-clock-load no longer restores clocks in org-clock-persist-file. The contents of the file look like this: (setq org-clock-stored-history '(("/home/matt/org/inbox.org" . 39479) ("/home/matt/org/reading.org" . 63478))) The files both exist; the position information is correct; and org-clock-persist is t. And yet after calling org-clock-load, org-clock-history, org-clock-loaded, and org-clock-stored-history remain nil. The problem, it seems, is that the logic/order of the if statement was reversed in the commit above. The attached patch should fix the issue. Best, Matt [4. text/x-diff; 0001-org-clock-Fix-org-clock-load.patch] From 6d649016fbbfaa28c902ee1e71c20ecf332f8a14 Mon Sep 17 00:00:00 2001 From: Matt Lundin <mdl@imapmail.org> Date: Mon, 19 Dec 2016 17:24:10 -0600 Subject: [PATCH] org-clock: Fix org-clock-load * lisp/org-clock.el: (org-clock-load): Fix incorrect order in if statement that was preventing org-load from loading stored data and populating org-clock-history.
2016-12-19org-list: Clarify codeNicolas Goaziou
* lisp/org-list.el (org-list-item-body-column): Clarify code.
2016-12-16org-list: Fix "Stack overflow in regexp matcher"Nicolas Goaziou
* lisp/org-list.el (org-list-item-body-column): Do not backtrack as much in regexp. Reported-by: Vasilij Schneidermann <v.schneidermann@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/110885>
2016-12-15org-agenda: Fix "Wrong type argument: number-or-marker-p"Nicolas Goaziou
* lisp/org-agenda.el (org-agenda-get-deadlines): (org-agenda-get-scheduled): Make sure deadline and schedule are a number and not a string. Reported-by: Jeffrey DeLeo <JeffreyDeLeo@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/110837>
2016-12-15ox-ascii: Fix internal and ID linksNicolas Goaziou
* lisp/ox-ascii.el (org-ascii--describe-datum): New function. (org-ascii--describe-links): Use new function. Do not ignore fuzzy links anymore when they contain a description. (org-ascii-link): Use new function. Better handling of internal links. * lisp/ox.el (org-export-dictionary): New entries: "See figure %s", "See listing %s", "See table %s". Reported-by: Samuel Wales <samologist@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/110788>
2016-12-15Fix C-c C-c on inline tasksNicolas Goaziou
* lisp/org.el (org-ctrl-c-ctrl-c): Properly recognize inlinetasks as a valid context.
2016-12-15org-macs: Tiny refactoringNicolas Goaziou
* lisp/org-macs.el (org-match-line): Use (beginning-of-line) instead of (goto-char (point-at-bol)).
2016-12-14org-info: Fix docstringsNicolas Goaziou
* lisp/org-info.el (org-info-other-documents): (org-info-map-html-url): Fix docstrings. Suggested-by: Chunyang Xu <mail@xuchunyang.me>
2016-12-14ox-beamer: Fix target exportNicolas Goaziou
* lisp/ox-beamer.el (beamer): Let "latex" export-back-end handle targets.
2016-12-13ox: Fix internal references when using `org-export-(data-)with-backend'release_9.0.2Nicolas Goaziou
* lisp/ox.el (org-export-data-with-backend): (org-export-with-backend): Preserve internal references once the local back-end has been applied. * testing/lisp/test-ox.el (test-org-export/get-reference): Add tests.
2016-12-13ox-latex: Fix typoNicolas Goaziou
* lisp/ox-latex.el (org-latex--text-markup): Fix typo.
2016-12-13ox-latex: Fix links with special charactersNicolas Goaziou
* lisp/ox-latex.el (org-latex--protect-text): Properly escape special characters. (org-latex--text-markup): Adapt to change above. (org-latex-inline-src-block): Follow `org-latex-text-markup-alist' specifications. (org-latex-link): Escape forbidden characters in URL.
2016-12-13ox-latex: Fix nested sub/super-scriptsNicolas Goaziou
* lisp/ox-latex.el (org-latex--wrap-latex-math-block): Prevent merging multiple sub/super-scripts at the same level. Nested scripts are allowed.
2016-12-13ox-beamer: Fix last commitNicolas Goaziou
* lisp/ox-beamer.el (org-beamer-link): Fix commit 5c28ea6aad2245944bb4f626fe7b039bfbb2b91b.
2016-12-12org.texi: Fix some @xref usageNicolas Goaziou
* doc/org.texi (Literal examples): @xref is expected to be followed by punctuation.
2016-12-12ox-beamer: Fix Beamer internal linksNicolas Goaziou
* lisp/ox-beamer.el (org-beamer-link): Generate a label compatible with "latex" back-end. Reduce code duplication with "ox-latex.el". Reported-by: Eric S Fraga <e.fraga@ucl.ac.uk> <http://permalink.gmane.org/gmane.emacs.orgmode/110771>
2016-12-11org-colview: Fix `org-agenda-overriding-columns-format'Nicolas Goaziou
* lisp/org-colview.el (org-columns--collect-values): Change signature. (org-agenda-columns): Apply signature change. When calling `org-agenda-columns' compiled columns format is set locally to Agenda buffer, but `org-columns--collect-values' is called from source buffers. Therefore, it uses default format instead of the compiled one. Reported-by: Christian Prothmann <ckprothmann@yahoo.com> <http://permalink.gmane.org/gmane.emacs.orgmode/110748>
2016-12-10ob-tangle: Fix last commitNicolas Goaziou
* lisp/ob-tangle.el (org-babel-tangle-single-block): `org-babel-expand-noweb-references' specifically needs to be run in the Org document so as to resolve references. * testing/lisp/test-ob-tangle.el (ob-tangle/continued-code-blocks-w-noweb-ref): Make sure a failing test doesn't leave a file behind it.
2016-12-10ob-tangle: Respect buffer local variablesNicolas Goaziou
* lisp/ob-tangle.el (org-babel-spec-to-string): Move some processing... (org-babel-tangle-single-block): ... there. This function is called with the Org buffer as its original buffer whereas the previous one is not. This is a follow-up to 026fb75, which was reverted. Reported-by: David Dynerman <emperordali@block-party.net> <http://permalink.gmane.org/gmane.emacs.orgmode/110670>
2016-12-10Revert "ob-tangle: Respect buffer local variables"Nicolas Goaziou
This reverts commit 026fb75ddbddb8b8965c40b82a381ff5b8e92516.
2016-12-08Simplify matching headlines in `org-link-search'Nicolas Goaziou
* lisp/org.el (org-link-search): Simplify matching headlines.
2016-12-07Backport commit eeecac7 from EmacsPaul Eggert
Fix minor quoting problems in doc strings eeecac7ab9d1f8c3a29cffe4586e5fd2414dd671 Paul Eggert Wed Dec 7 11:31:16 2016 -0800
2016-12-07Allow coderef on otherwise empty linesNicolas Goaziou
* lisp/org-src.el (org-src-coderef-regexp): Update regexp. * lisp/ox.el (org-export-resolve-coderef): Use function above. Reported-by: D M German <dmg@turingmachine.org> <http://permalink.gmane.org/gmane.emacs.orgmode/110656>
2016-12-07ox-latex: Do not generate nested sub/superscriptsNicolas Goaziou
* lisp/ox-latex.el (org-latex--wrap-latex-math-block): Do not wrap consecutive sub or super-scripts within the same block. Reported-by: Scott Otterson <scotto@sharpleaf.org> <http://permalink.gmane.org/gmane.emacs.orgmode/110589>
2016-12-07Fix SCHEDULED removal when repeating a taskNicolas Goaziou
* lisp/org.el (org-auto-repeat-maybe): Fix bug where repeating a task containing a timestamp without a repeater would remove the scheduled date. Reported-by: 毛晓伟 <maoweirm@126.com> <http://permalink.gmane.org/gmane.emacs.orgmode/110633>
2016-12-04doc/org.texi: Editorial revisions to the manualLambda Coder
Chapters edited in this revision: * From Working with source code chapter to end of manual
2016-12-03ob-tangle: Respect buffer local variablesNicolas Goaziou
* lisp/ob-tangle.el (org-babel-tangle): Make sure buffer local variables from Org document are taken into consideration in tangled document. Reported-by: David Dynerman <emperordali@block-party.net> <http://permalink.gmane.org/gmane.emacs.orgmode/110577>
2016-12-02org-agenda: Fix face for past scheduled time stampsNicolas Goaziou
* lisp/org-agenda.el (org-agenda-get-scheduled): Fix face.
2016-12-02org-agenda: Fix repeats with nil `org-agenda-repeating-timestamp-show-all'Nicolas Goaziou
* lisp/org-agenda.el (org-agenda-get-timestamps): (org-agenda-get-deadlines): (org-agenda-get-scheduled): When `org-agenda-repeating-timestamp-show-all' is nil, only display repeat before and repeat after today (or only repeat at today if those coincide). Also, computations of warnings are done with last repeat before today instead of base date.
2016-12-02org-agenda: Small refactoringNicolas Goaziou
* lisp/org-agenda.el (org-agenda-deadline-face): Small refactoring.
2016-11-30Fix dpi calculation when previewing LaTeX snippetsNicolas Goaziou
* lisp/org.el (org--get-display-dpi): Fix docstring. (org-create-formula-image): Use function above. Reported-by: Scott Otterson <scotto@sharpleaf.org> <http://permalink.gmane.org/gmane.emacs.orgmode/110526>
2016-11-30org-agenda: Fix priority for deadlinesNicolas Goaziou
* lisp/org-agenda.el (org-agenda-get-deadlines): Fix priority computation. Reported-by: Matt Lundin <mdl@imapmail.org> <http://permalink.gmane.org/gmane.emacs.orgmode/110519>
2016-11-29org-agenda: Fix time of day presenceNicolas Goaziou
* lisp/org-agenda.el (org-agenda-get-deadlines): Small refactoring. (org-agenda-get-scheduled): Do no insert a time of day when current entry is only a reminder of a previously scheduled task. Reported-by: Matt Lundin <mdl@imapmail.org> <http://permalink.gmane.org/gmane.emacs.orgmode/110517>
2016-11-29Relax the match criteria for MathML header lineLixin Chin
* lisp/org.el (org-create-math-formula): Allow the xmlns attribute to be preceded by any other mathml header attribute. The problem here was that the match criteria for MathML assumed that the xmlns attribute is the first listed in the top level MathML <math> element. Some LaTeX -> MathML converters (e.g., pandoc) will add attributes before xmlns, which is still valid MathML.