Nicolas Goaziou
7552b67ac2
Externalize hard-coded type links
...
* lisp/org.el (org-link-parameters): Add follow function for "doi",
"elisp", "ftp", "help", "http", "https", "mailto", "message", "news"
and "shell" link types.
(org--open-elisp):
(org--open-doi):
(org--open-help):
(org--open-shell): New functions.
(org-open-at-point): Remove hard-coded follow functions.
2016-07-18 22:56:02 +02:00
John Kitchin
91e6b3b057
Update id link definition
...
* lisp/org-id.el ("id"): Update to use org-link-set-parameters.
2016-07-18 22:47:51 +02:00
John Kitchin
4e3fd4a1c8
Update w3m link definition
...
* lisp/org-w3m.el ("w3m"):
Update to use org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin
12f473f584
Update rmail link definition
...
* lisp/org-rmail.el ("rmail"):
Use org-link-set-parameters to define link.
2016-07-18 22:47:50 +02:00
John Kitchin
35835bce9d
Update mhe link definition
...
* lisp/org-mhe.el ("mhe"): Define link with org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin
02a00841dc
Update irc link definition
...
* lisp/org-irc.el ("irc"):
Define link with org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin
692f874a12
Update info link definition
...
* lisp/org-info.el ("info"):
Update link definition with org-link-set-parameters and change a doc string to
point to org-link-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin
386e3957a6
Update gnus link definition
...
* lisp/org-gnus.el ("gnus"):
Update link definition with org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin
60988ca502
Update eshell link definition
...
* lisp/org-eshell.el ("eshell"):
Update to use org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin
a1ab5b284b
Update docview link definition
...
* lisp/org-docview.el ("docview"):
Update link definition with org-link-set-parameters.
2016-07-18 22:47:49 +02:00
John Kitchin
91fd0a1072
Update bibtex link definition
...
* lisp/org-bibtex.el ("bibtex"):
Change link definition to use org-link-set-parameters
2016-07-18 22:47:49 +02:00
John Kitchin
d55afe29f3
Update bbdb link definition
...
* lisp/org-bbdb.el ("bbdb"):
Change link definition to org-link-set-parameters
2016-07-18 22:47:49 +02:00
John Kitchin
82f1f46052
Make plain and bracketed link properties stick
...
* lisp/org.el (org-set-font-lock-defaults): If t is after the face, than
org-link clobbers everything from the activation functions.
2016-07-18 22:47:49 +02:00
John Kitchin
5c17aa7994
Update `org-activate-bracket-links'
...
* lisp/org.el (org-activate-bracket-links): Use `org-link-parameters' to
build link properties.
2016-07-18 22:47:49 +02:00
John Kitchin
b4dd8245b7
Update `org-activate-plain-links'
...
* lisp/org.el (org-activate-plain-links): Use `org-link-parameters' to
create the link properties.
2016-07-18 22:47:48 +02:00
John Kitchin
de6858f293
Get the complete function from `org-link-parameters'
...
* lisp/org.el (org-link-try-special-completion):
Get the follow function from `org-link-parameters'
Only follow when a function is defined.
* lisp/org.el (org-open-at-point): Some links don't have a :follow
function, so we should not call nil in that case.
2016-07-18 22:47:48 +02:00
John Kitchin
a5f5fedf3e
Remove `org-link-protocols' variable
...
* lisp/org.el (org-link-protocols): Remove variable org-link-protocols.
The data in this variable is now retrieved with org-link-get-parameter.
* lisp/org.el: Enable file links to use the application link property to
determine the follow action. Also add a space after let*.
2016-07-18 22:47:48 +02:00
John Kitchin
9bc2940034
Create `org-link-parameters'
...
* lisp/org-element.el: Replace `org-link-types' variable with
`org-link-types' function.
* lisp/org.el: Replace the `org-link-types' variable with
`org-link-types' function. Create `org-link-get-parameter' and
`org-link-set-parameters' functions. Remove `org-add-link-type'. Add
`org-store-link-functions' function and remove
`org-store-link-functions' variable. Add `org--open-file-link' for use
as a :follow function for file type links.
* lisp/org.el: Set :follow functions for file links in `org-link-parameters.
Define `org-open-file-link' that opens a file link with an app.
* testing/lisp/test-ox.el: Remove usage of the `org-link-types'
variable.
* lisp/org-compat.el: Move `org-add-link-type' and mark it as obsolete.
* lisp/ox.el: Change org-add-link-type comment in ox.el.
2016-07-18 22:47:42 +02:00
Nicolas Goaziou
481709e11b
ob-exp: Remove spurious declaration
2016-07-17 22:55:03 +02:00
Nicolas Goaziou
e1f24f537e
Fix `org-compile-file' error
...
* lisp/org.el (org-compile-file): Fix error when source file is not
located in current directory.
Reported-by: "Charles C. Berry" <ccberry@ucsd.edu>
<http://permalink.gmane.org/gmane.emacs.orgmode/108245 >
2016-07-17 14:28:00 +02:00
Nicolas Goaziou
08d91f37af
Merge branch 'maint'
2016-07-17 12:06:55 +02:00
Nicolas Goaziou
8301b72ed2
Revert "ob-exp: Remove spurious comma un-escaping"
...
This reverts commit 0279d84cd7
.
2016-07-17 12:04:28 +02:00
Nicolas Goaziou
610ec90cf4
Move `org-toggle-item' in "org-list.el"
...
* lisp/org.el (org-toggle-item): Move function ...
* lisp/org-list.el (org-toggle-item): ... here.
* testing/lisp/test-org-list.el (test-org-list/toggle-item): New test.
2016-07-04 23:52:40 +02:00
Nicolas Goaziou
1b8e1fc63f
Merge branch 'maint'
2016-07-04 23:23:51 +02:00
Nicolas Goaziou
cd3a552ef4
Fix toggling multiple headings with a TODO keyword
...
* lisp/org.el (org-toggle-item): Remove TODO keyword in each headling
when changed to an item.
2016-07-04 14:12:13 +02:00
Nicolas Goaziou
f38f83b4f1
Remove deprecated syntax for Babel properties
...
* doc/org.texi (Header arguments in Org mode properties): Remove
reference to deprecated syntax.
* lisp/ob-core.el (org-babel-params-from-properties): Ignore deprecated
syntax.
* testing/examples/babel.org:
* testing/examples/normal.org:
* testing/examples/ob-header-arg-defaults.org:
* testing/examples/property-inheritance.org:
* testing/lisp/test-ob-header-arg-defaults.el
(test-ob-header-arg-defaults/global/noweb):
(test-ob-header-arg-defaults/global/call):
(test-ob-header-arg-defaults/tree/overwrite/call):
(test-ob-header-arg-defaults/tree/overwrite/noweb):
(test-ob-header-arg-defaults/tree/accumulate/call):
(test-ob-header-arg-defaults/tree/accumulate/noweb):
(test-ob-header-arg-defaults/tree/complex/call):
(test-ob-header-arg-defaults/tree/complex/noweb):
* testing/lisp/test-ob.el (test-ob/elisp-in-header-arguments):
* testing/lisp/test-property-inheritance.el
(test-org-property-accumulation-overwrite-use): Update syntax.
(test-org-property-accumulation-append-use): Use new syntax.
(test-org-property-accumulation-top-val)
(test-org-property-accumulation-overwrite-val)
(test-org-property-accumulation-append-val): Remove tests.
2016-07-04 00:41:56 +02:00
Charles Berry
ea94c14d92
org-export-babel-evaluate docstring expanded.
...
* lisp/ob-exp.el (org-export-babel-evaluate); Inform users that `:eval
never-export' should be used to avoid rerunning code on export.
Some users are puzzled when setting this variable to `nil' disables
all of babel.
The issue was raised by Ken Mankoff:
http://article.gmane.org/gmane.emacs.orgmode/107230
2016-07-03 09:58:42 -07:00
Nicolas Goaziou
adcaf91648
Mark `org-link-escape-browser' as obsolete
...
* lisp/org-compat.el (org-link-escape-browser): Make function an alias
for `url-encode-url'.
* lisp/org.el (org-link-escape-chars-browser): Remove variable.
(org-link-escape-browser): Remove function.
(org-open-at-point):
* lisp/ox-html.el (org-html-link): Use `url-encode-url'.
* testing/lisp/test-org.el(test-org/org-link-escape-chars-browser):
Remove test.
2016-07-01 12:00:23 +02:00
Don March
86e592cb66
Reschedule "++" repeaters on same day if in future
...
* lisp/org.el (org-auto-repeat-maybe): Include the time in a
timestamp (hours and minutes) when checking if a repeat occurrence is
in the future.
* doc/org.texi (Repeated Tasks): Document repeat occurrences with a time
in the timestamp.
2016-07-01 10:59:20 +02:00
Nicolas Goaziou
11df58e6f4
Merge branch 'maint'
2016-07-01 09:13:52 +02:00
Konstantin Kliakhandler
a8e4a393bf
org-entities: Swapped symbols of varphi and phi
...
* org-entities.el (org-entities): Swap the unicode symbol of phi and of
varphi.
TINYCHANGE
2016-07-01 09:12:43 +02:00
Nicolas Goaziou
67023930e7
org-compat: Mark `org-compatible-face' as obsolete
...
* lisp/org-inlinetask.el (org-inlinetask): Remove `org-compatible-face'
call.
2016-06-30 17:47:39 +02:00
Nicolas Goaziou
e2bff4bbc0
org-faces: Simplify face definitions
...
* lisp/org-faces.el (org-default):
(org-level-1):
(org-level-2):
(org-level-3):
(org-level-4):
(org-level-5):
(org-level-6):
(org-level-7):
(org-level-8):
(org-special-keyword):
(org-drawer):
(org-column):
(org-column-title):
(org-agenda-column-dateline):
(org-warning):
(org-archived):
(org-link):
(org-date-selected):
(org-todo):
(org-done):
(org-agenda-done):
(org-headline-done):
(org-priority):
(org-table):
(org-formula):
(org-code):
(org-meta-line):
(org-document-info-keyword):
(org-block):
(org-verbatim):
(org-clock-overlay):
(org-agenda-structure):
(org-agenda-clocking):
(org-agenda-date-weekend):
(org-scheduled):
(org-scheduled-today):
(org-scheduled-previously):
(org-upcoming-deadline):
(org-agenda-restriction-lock):
(org-agenda-filter-tags):
(org-agenda-filter-regexp):
(org-agenda-filter-category):
(org-time-grid):
(org-agenda-diary):
(org-agenda-calendar-event):
(org-agenda-calendar-sexp):
(org-macro):
(org-tag-group): Eschew `org-compatible-face' usage.
Also use lexical binding.
2016-06-30 17:40:58 +02:00
Nicolas Goaziou
b2091f6d75
Move obsolete declarations into "org-compat.el"
...
* lisp/org-agenda.el (org-agenda-list):
(org-agenda-goto-today):
(org-agenda-reset-view): Remove reference to obsolete
`org-agenda-ndays'.
2016-06-30 15:20:51 +02:00
Nicolas Goaziou
8d3586faac
org-compat: Fix typo
...
* lisp/org-compat.el (org-match-string-no-properties): Fix typo.
Reported-by: Michael Welle <mwe012008@gmx.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/108017 >
2016-06-30 13:37:44 +02:00
Nicolas Goaziou
f0ff257fa7
Merge branch 'maint'
2016-06-28 00:31:09 +02:00
Nicolas Goaziou
07de65e1ea
ox: Small fix
...
* lisp/ox.el (org-export--missing-definitions): Fix typo and remove
useless comment
* testing/lisp/test-ox.el (test-org-export/footnotes): Add test.
2016-06-28 00:28:47 +02:00
Nicolas Goaziou
8285ff4cf2
Merge branch 'maint'
2016-06-28 00:24:50 +02:00
Nicolas Goaziou
f196fb3bed
ob-exp: Silence byte compiler
2016-06-28 00:01:48 +02:00
Nicolas Goaziou
96a9542ae1
org-element: Remove spurious blank when interpreting a row
...
* lisp/org-element.el (org-element-table-row-interpreter): Remove
spurious white space.
2016-06-27 23:59:44 +02:00
Nicolas Goaziou
a131fd1a1d
ox: Fix typo in comment
...
* lisp/ox.el (org-export-get-footnote-definition): Fix typo.
2016-06-27 23:58:08 +02:00
Nicolas Goaziou
5e37a5c116
ox: Fix export of footnote definitions in pruned parts of tree
...
* lisp/ox.el (org-export--missing-definitions):
(org-export--install-footnote-definitions): New functions
(org-export--merge-external-footnote-definitions): Remove function
(org-export-as):
(org-export--prune-tree): Use new functions.
* testing/lisp/test-ox.el (test-org-export/footnotes): Add tests.
Reported-by: Mark Edgington <edgimar@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107940 >
2016-06-27 23:57:42 +02:00
Nicolas Goaziou
d4408684e1
org-compat: Small refactoring
...
* lisp/org-compat.el (org-compatible-face): Small refactoring. Remove
Emacs 22 related part of the code.
2016-06-26 14:43:20 +02:00
Nicolas Goaziou
2f90a60bd8
Remove Emacs 22 related code
...
* contrib/lisp/htmlize.el (htmlize-face-color-internal):
(htmlize-face-to-fstruct):
* lisp/org-agenda.el (org-anniversary):
(org-cyclic):
(org-block):
(org-date):
* lisp/org-compat.el (org-region-active-p):
* lisp/org.el (org-use-extra-keys):
(occur-mode-find-occurrence-hook): Remove Emacs 22 related code and
comments.
(org-diary-class): Remove function.
2016-06-26 14:35:22 +02:00
Nicolas Goaziou
1891dd4816
org-compat: Tiny refactoring
...
* lisp/org-compat.el (org-re): Use `obsolete' in `declare'.
2016-06-26 10:29:27 +02:00
Michael Brand
e4baab8e10
Extend a docstring
...
* lisp/org.el (org-startup-truncated): Extend docstring.
(org-set-font-lock-defaults): Also the last top level expression on an
own line.
2016-06-25 17:04:43 +02:00
Lele Gaifax
c338f9c630
org-colview.el: Fix typo in function name
...
* lisp/org-colview.el (org-columns-hscroll-title): Rename from
`org-columns-hscoll-title'.
(org-columns--display-here-title):
(org-columns-remove-overlays): Adjust reference to renamed function.
2016-06-24 15:58:29 +02:00
Nicolas Goaziou
313146374e
org-colview: Fix last commit
...
* lisp/org-colview.el (org-columns-edit-value): Fix last commit.
2016-06-24 10:06:02 +02:00
Nicolas Goaziou
1114418dd4
org-colview: Replace org-columns-eval' with
org-columns--call'
...
* lisp/org-colview.el (org-columns-edit-value): Small refactoring. Use
new function.
(org-columns--call): New function.
(org-columns-eval): Remove function.
(org-columns-next-allowed-value): Use new function.
2016-06-24 09:59:49 +02:00
Nicolas Goaziou
f364229176
Merge branch 'maint'
2016-06-24 09:22:00 +02:00