Commit Graph

2434 Commits

Author SHA1 Message Date
James N. V. Cash c20cb0993b Address org-eldoc-recursion issue
* org-eldoc.el (org-eldoc-get-mode-local-documentation-function,
org-eldoc-documentation-function): Support Emacs 28-style eldoc, where
instead of a single function, the eldoc-documentation-functions hook
has a list of functions, which may optionally take a callback.
2020-09-20 21:24:55 -04:00
Peter Münster b01332c87e org-notify.el: Limit the number of notifications
(org-notify-max-notifications-per-run): New option for limiting the
notifications.
(org-notify-process): Use it.
2020-09-13 18:41:33 +02:00
Peter Münster 54bdd6cbf7 org-notify.el: Use cl- prefixed functions, and require cl-lib 2020-09-13 18:41:27 +02:00
stardiviner 3b10ffc362 ol-man.el: Add searching support in man page buffer
* contrib/lisp/ol-man.el (org-man-open): Support auto searching man page
buffer with search-forward.
2020-09-05 10:05:01 +02:00
Kyle Meyer 3f04ad8d2c Merge branch 'maint' into master 2020-08-15 13:16:26 -04:00
Nicholas Vollmer 47f26b1e76 org-eldoc: (org-eldoc-documentation-function): set `eldoc-documentation-functions'
* contrib/lisp/org-eldoc.el (org-eldoc-documentation-function):
b2b587387 did not set eldoc-documentation-functions, resulting in
`eldoc--invoke-strategy' throwing a void-function error.

Modified-by: Kyle Meyer <kyle@kyleam.com>
  Added Emacs<25 branch.
2020-08-15 13:09:12 -04:00
Kyle Meyer bb427f7bd6 Merge branch 'maint' 2020-07-18 20:15:32 -04:00
Kyle Meyer b2b587387e org-eldoc: Fix compatibility with Emacs 28
* contrib/lisp/org-eldoc.el (org-eldoc-documentation-function): Accept
and ignore additional arguments for compatibility with Emacs 28.
(org-eldoc-load): Use add-function to register
org-eldoc-documentation-function for Emacs versions 25 through 27, as
documented in eldoc-documentation-function.

See Emacs's fd020a2931 (eldoc: modify `eldoc-documentation-function'
using `add-function', 2014-12-05) and c0fcbd2c11 (Expose ElDoc
functions in a hook (Bug#28257), 2020-02-25) for more information on
the Emacs 25 and Emacs 28 changes, respectively.
2020-07-18 20:14:18 -04:00
Jb DOYON 2fa1dc34be contrib/ol-man.el: Add markdown support to org-man export
* contrib/lisp/ol-man.el (org-man-export): Format markdown links.
2020-06-22 23:58:32 -04:00
Bastien Guerry c7a86a43ae Merge branch 'maint' 2020-06-05 10:40:14 +02:00
Bastien Guerry fa4dddf8d2 Fix broken links
* lisp/org.el:
* lisp/ol-bibtex.el:
* etc/ORG-NEWS (org-capture.el is now the default capture system):
* doc/org-manual.org (Cache results of evaluation): Fix broken links.
2020-06-05 10:39:52 +02:00
Richard Kim cd336c2af3 contrib/lisp/ox-confluence.el: Add an export menu entry
* contrib/lisp/ox-confluence.el (confluence): Add an export menu
entry.

TINYCHANGE
2020-05-22 17:26:10 +02:00
Bastien 2e96dc6392 Merge branch 'maint' 2020-05-22 16:37:25 +02:00
Bastien ceb0ef95fb contrib/lisp/ox-confluence.el: Fix radio link export
* contrib/lisp/ox-confluence.el (org-confluence-link): Only use
the description when exporting radio links.

Thanks to Karl Voit for reporting this.
2020-05-22 16:36:50 +02:00
Jonas Bernoulli 71604cbc2d Fix typos 2020-05-13 23:27:49 -04:00
Nicolas Goaziou 8173884a13 bibtex: Fix typo
* contrib/lisp/ox-bibtex.el (org-bibtex-file): Use defvar instead of
defun.
2020-04-24 22:30:42 +02:00
Nicolas Goaziou 7cdc023f88 bibtex: Fix `org-bibtex-goto-citation'
* contrib/lisp/ox-bibtex.el (org-bibtex-goto-citation): Fix
`org-bibtex-goto-citation'.

Reported-by: Eric S Fraga <e.fraga@ucl.ac.uk>
<http://lists.gnu.org/r/emacs-orgmode/2020-04/msg00383.html>
2020-04-24 22:22:43 +02:00
Kyle Meyer f874b69560 org-link-edit.el: Sync with upstream
Update to version 1.2.1 (b5493e2).
2020-04-20 22:10:31 -04:00
Nicolas Goaziou 048e0204d5 ox-koma-letter: Remove obsolete code
* contrib/lisp/ox-koma-letter.el: Remove obsolete code.
2020-04-06 14:51:35 +02:00
Nicolas Goaziou 625f8e6d9c Merge branch 'maint' 2020-04-06 14:31:40 +02:00
Nicolas Goaziou e1961c543a ox-koma-letter: Handle empty hyperref LaTeX template
* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Value
for :latex-hyperref-template can be nil.  Handle this case.

Reported-by: Charles Millar <millarc@verizon.net>
<http://lists.gnu.org/r/emacs-orgmode/2020-04/msg00025.html>
2020-04-06 14:30:35 +02:00
Kyle Meyer cf04f0837d Merge branch 'maint' 2020-03-04 22:43:58 -05:00
Štěpán Němec 7454d20189 org-eldoc: Use eldoc-documentation-functions when available
This reflects recent changes in GNU Emacs master branch:

2020-02-25T17:53:04-05:00!mvoteiza@udel.edu
c0fcbd2c11 (Expose ElDoc functions in a hook (Bug#28257))

* lisp/org-eldoc.el (org-eldoc-load):
Use 'eldoc-documentation-functions' when available.
2020-03-04 22:43:39 -05:00
stardiviner 97d0514b0b contrib/lisp/ob-php.el: Support change evaluate command specify options.
* contrib/lisp/ob-php.el (org-babel-php-command): Add new customizable
option `org-babel-php-command` to change default command.

* contrib/lisp/ob-php.el (org-babel-php-command-options): Add new
customizable option `org-babel-php-command-options` to specify
command options.

* contrib/lisp/ob-php.el (org-babel-execute:php): Use new commands in
execute function.
2020-02-20 18:48:35 +01:00
Nicolas Goaziou f4bed78a19 Move custom links to new tooling
* contrib/lisp/ol-bookmark.el (org-bookmark-open):
* contrib/lisp/ol-elisp-symbol.el (elisp-symbol-open):
* contrib/lisp/ol-git-link.el (org-gitbare-open):
(org-git-open):
* contrib/lisp/ol-man.el (org-man-open):
* contrib/lisp/ol-mew.el (org-mew-open):
* contrib/lisp/ol-notmuch.el (org-notmuch-open):
(org-notmuch-search-open):
(org-notmuch-tree-open):
* contrib/lisp/ol-vm.el (org-vm-open):
(org-vm-imap-open):
* contrib/lisp/ol-wl.el (org-wl-open):
* contrib/lisp/org-mac-link.el (org-mac-together-item-open):
(org-mac-addressbook-item-open):
(org-mac-skim-open):
(org-mac-acrobat-open):
(org-mac-outlook-message-open):
(org-mac-evernote-note-open):
(org-devonthink-item-open):
(org-mac-message-open):
* contrib/lisp/org-mairix.el (org-mairix-open):
* lisp/ol-bbdb.el (org-bbdb-export):
(org-bbdb-open):
* lisp/ol-bibtex.el (org-bibtex-open):
* lisp/ol-docview.el (org-docview-open):
* lisp/ol-eshell.el (org-eshell-open):
* lisp/ol-eww.el ("eww"):
* lisp/ol-gnus.el (org-gnus-open):
* lisp/ol-info.el (org-info-open):
* lisp/ol-irc.el (org-irc-visit):
* lisp/ol-mhe.el (org-mhe-open):
* lisp/ol-rmail.el ("rmail"):
(org-rmail-open):
* lisp/ol.el (org-link--open-doi):
(org-link--open-elisp):
(org-link--open-help):
(org-link--open-shell):
* lisp/org-id.el (org-id-open):
* testing/lisp/test-ox.el (test-org-export/custom-protocol-maybe): Use
new tooling.
* doc/org-manual.org (Adding Hyperlink Types): Adapt example.
2020-02-19 18:42:50 +01:00
Nicolas Goaziou ab9166ad29 Extend export tooling in link parameters
* lisp/ol.el (org-link-parameters): Allow a fourth "info" argument for
`:export' property.  Expound docstring.
* lisp/ox.el (org-export-custom-protocol-maybe): Accept a fourth
optional argument.
* lisp/ox-ascii.el (org-ascii--describe-links):
(org-ascii-link):
* lisp/ox-beamer.el (org-beamer-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-org.el (org-org-link):
* lisp/ox-texinfo.el (org-texinfo-link):
* contrib/lisp/ox-groff.el (org-groff-link): Provide expected fourth
argument.
* lisp/ox.el (org-export-link-as-file): New function.
* lisp/ol.el (org-link-parameters): Add reference to new function in docstring.
* testing/lisp/test-ox.el (test-org-export/link-as-file): Add tests.
(test-org-export/custom-protocol-maybe): Update tests.
2020-02-19 18:41:37 +01:00
Nicolas Goaziou ebf8b39ae6 Merge branch 'maint' 2020-01-21 22:39:36 +01:00
Nicolas Goaziou 5712412b5d ox-taskjuggler: Use effort property as-is
* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-task): Use
effort property as-is instead of applying `org-duration-to-minutes'.

Reported-by: Benjamin Kästner <benjamin.kaestner@googlemail.com>
2020-01-21 22:36:29 +01:00
Nicolas Goaziou 1ffb390fda Merge branch 'maint' 2020-01-11 17:02:19 +01:00
Nicolas Goaziou 309cdcfab4 ol-notmuch: Silence byte-compiler 2020-01-11 17:02:00 +01:00
Nicolas Goaziou 38619504ed Merge branch 'maint' 2020-01-11 17:00:45 +01:00
Nicolas Goaziou b3e5c1cbff ol-notmuch: Fix file name in comments, remove (require 'org) 2020-01-11 16:59:51 +01:00
Nicolas Goaziou ffb3f9e568 Merge branch 'maint' 2020-01-09 17:49:56 +01:00
Nicolas Goaziou 5f47639ec3 ol-man: Silence byte-compiler 2020-01-09 17:48:12 +01:00
Kyle Meyer 93c11da002 Merge branch 'maint' 2020-01-01 13:39:26 -05:00
Kyle Meyer ff5fc050d3 Update copyright year to 2020 2020-01-01 13:38:46 -05:00
Kyle Meyer a95f49c1f0 Merge branch 'maint' 2019-12-16 23:01:45 -05:00
Gregor Zattler 86c7a22ce4 org-screen.el: Replace obsolete function
* contrib/lisp/org-screen.el (org-screen): Replace obsolete function
`insert-string' with `insert'.

TINYCHANGE
2019-12-16 23:01:37 -05:00
Kyle Meyer a4fa04bbd4 Merge branch 'master' into next 2019-11-16 17:19:11 -05:00
Jonas Bernoulli 5117d8a159 Fix typos 2019-11-16 17:17:36 -05:00
Gustav Wikström 1bdff9f73d Org document property-drawers
Add functionality to define property-blocks on document level, in
addition to at headline level.

* doc/org-manual.org:
* etc/ORG-NEWS: Document new functionality.

* lisp/org.el (org-keyword-regexp): Define constant instead of
  hardcoding.
(org-file-properties): Renamed, see next line.
(org-keyword-properties): Renamed from above.  Due to the fact that
  properties can be defined for the whole document using property
  drawers this local variable needs a rename to make its name less
  ambigous.
(org-refresh-properties, org-refresh-property, org-entry-properties)
(org-refresh-category-properties, org-get-property-block)
(org-entry-get-with-inheritance, org-entry-put)
(org-insert-property-drawer, org-end-of-subtree): Made to work before
  first headline.
(org-at-property-block-p): New function to validate if point is at the
start of a property block.
(org-property-global-value): Renamed, see next line.
(org-property-global-or-keyword-value): Renamed from above to match
  its functionality better.
(org-back-to-heading-or-point-min): New function to make a document
  work as a level 0 node in the outline.
(org-at-keyword-p): Predicate function to answer to if we're currently
at a keyword line or not.
(org-up-heading-or-point-min): New function to make a document work as
a level 0 node in the outline.

* lisp/org-element.el (org-element--current-element): Can now detect
  property-blocks before first headline according to it's positional
  rules.

* lisp/org-attach.el (org-attach): Make it possible to call the
  attachment dispatcher also before the first headline, since document
  property drawers make attachments possible for the whole document
  now.

* lisp/org-capture.el: Modified only due to rename of function in
  org.el.

* lisp/org-compat.el (org-file-properties)
(org-property-global-value): Renamed functions declared obsolete.

* testing/lisp/test-org.el (org/insert-property-drawer)
(org/set-property, org/delete-property, org/delete-property-globally):
  Additions of tests to check if they work before first headline.
(org/at-property-p, org/at-property-block-p, org/get-property-block)
(org/entry-get, org/refresh-properties): New tests

* testing/examples/property-inheritance.org: Switch from
  property-keywords to a property-drawer in the testfile.
  Functionality should be the same, but now using a document drawer
  instead of property-keywords.

  Reason for switching is that I'd like us to slowly depricate
  property-keywords.

* testing/lisp/test-org-element.el:

* contrib/lisp/ox-taskjuggler.el: A comment is modified only due to
  rename of function in org.el.
2019-10-19 14:07:58 +02:00
Nicolas Goaziou a18edf4524 Merge branch 'maint' 2019-07-16 15:24:50 +02:00
Tim Landscheidt 1c3eae8f37 ox-rss: Fix typos 2019-07-16 15:24:18 +02:00
Nicolas Goaziou 2c8e8b4a18 contrib: Remove Org Drill
* contrib/README:
* lisp/org.el (org-modules): Remove reference to Org Drill.
contrib/lisp/org-drill.el: Remove file.

Org Drill is now developed externally, and available through an
ELPA (MELPA at this point).
2019-07-11 22:55:02 +02:00
Marco Wahl 4e6222f188 contrib/org-attach-embedded-images: switch to attachment type links 2019-07-09 19:52:19 +02:00
Kyle Meyer b0add090cd Update stale link-related library names
* contrib/lisp/org-bibtex-extras.el: Update for rename of org-bibtex
to ol-bibtex.
* lisp/ox-icalendar.el: Update for rename of org-bbdb to ol-bbdb.

Reported-by: Jonas Bernoulli <jonas@bernoul.li>
<https://lists.gnu.org/archive/html/emacs-orgmode/2019-04/msg00143.html>
2019-04-20 15:02:54 -04:00
Pierre Neidhardt ea4876869c ol-notmuch: Make distinct link types for search view and tree view
* contrib/lisp/ol-notmuch.el (org-notmuch-search-open-function): Deprecate.
(org-notmuch-tree-store-link): New function.
(org-notmuch-tree-open): New function.
"notmuch-tree": Set new "notmuch-tree" parameters with the above functions.
2019-04-10 15:16:56 +02:00
Nicolas Goaziou 285486c23b org-eldoc: Fix error on shell source blocks
* contrib/lisp/org-eldoc.el (org-eldoc-get-mode-local-documentation-function):
  Handle `org-src-lang-modes' correctly.
2019-04-07 09:16:54 +02:00
Nicolas Goaziou 7cd850a3ef Merge branch 'maint' 2019-04-07 08:58:43 +02:00
Nicolas Goaziou 4ba6de43d4 org-drill: Fix void function error
* contrib/lisp/org-drill.el (org-drill--compute-cloze-keywords):
(org-drill-get-item-data): Tiny refactoring to not use `copy-list'.

lignes
2019-04-07 08:57:12 +02:00