diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-08-20 02:59:56 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-08-20 02:59:56 +0200 |
commit | 71a3331aaf7c4177bde74abf6b55cdb5714e3049 (patch) | |
tree | 97497fb306811b4488895e25a5b89add4393a898 | |
parent | c0924db32ce5e684d911dd2aa3452c2e1d8fd4fe (diff) | |
download | org-mode-71a3331aaf7c4177bde74abf6b55cdb5714e3049.tar.gz |
Move org-eww to core
* lisp/org-eww.el: Move file from contrib/lisp/ to lisp/.
* lisp/org.el (org-modules): Apply change.
* lisp/org-capture.el (org-capture-templates):
* doc/org.texi: Document changes.
-rw-r--r-- | doc/org.texi | 6 | ||||
-rw-r--r-- | etc/ORG-NEWS | 1 | ||||
-rw-r--r-- | lisp/org-capture.el | 2 | ||||
-rw-r--r-- | lisp/org-eww.el (renamed from contrib/lisp/org-eww.el) | 15 | ||||
-rw-r--r-- | lisp/org.el | 2 |
5 files changed, 19 insertions, 7 deletions
diff --git a/doc/org.texi b/doc/org.texi index da72e7e..9868113 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -3667,7 +3667,7 @@ Pretty much all Emacs mail clients are supported. The link will point to the current article, or, in some GNUS buffers, to the group. The description is constructed from the author and the subject. -@b{Web browsers: W3 and W3M}@* +@b{Web browsers: Eww, W3 and W3M}@* Here the link will be the current URL, with the page title as description. @b{Contacts: BBDB}@* @@ -7341,7 +7341,7 @@ gnus, notmuch | %:from %:fromname %:fromaddress | %:date-timestamp-inactive @r{(date as inactive timestamp)} | %:fromto @r{(either "to NAME" or "from NAME")@footnote{This will always be the other, not the user. See the variable @code{org-from-is-user-regexp}.}} gnus | %:group, @r{for messages also all email fields} -w3, w3m | %:url +eww, w3, w3m | %:url info | %:file %:node calendar | %:date @end smallexample @@ -19350,6 +19350,8 @@ work on a tty. @item @i{Piotr Zielinski} wrote @file{org-mouse.el}, proposed agenda blocks and contributed various ideas and code snippets. +@item +@i{Marco Wahl} wrote @file{org-eww.el}. @end itemize diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 6f762a0..27b6ac9 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -138,6 +138,7 @@ should be written instead Please note that, however, old properties were defined at the source block definition. Current ones are defined where the block is called. ** New features +*** ~org-eww~ is moved into core *** New org-protocol key=value syntax Org-protocol can now handle query-style parameters such as: diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 23eae53..31aec84 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -288,7 +288,7 @@ gnus | %:from %:fromname %:fromaddress | %:date %:date-timestamp (as active timestamp) | %:date-timestamp-inactive (as inactive timestamp) gnus | %:group, for messages also all email fields -w3, w3m | %:type %:url +eww, w3, w3m | %:type %:url info | %:type %:file %:node calendar | %:type %:date diff --git a/contrib/lisp/org-eww.el b/lisp/org-eww.el index 6076ce3..49726d1 100644 --- a/contrib/lisp/org-eww.el +++ b/lisp/org-eww.el @@ -6,7 +6,7 @@ ;; Keywords: link, eww ;; Homepage: http://orgmode.org ;; -;; This file is not part of GNU Emacs. +;; This file is part of GNU Emacs. ;; ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -45,6 +45,14 @@ ;;; Code: (require 'org) +(require 'cl-lib) + +(defvar eww-current-title) +(defvar eww-current-url) +(defvar eww-data) +(defvar eww-mode-map) + +(declare-function eww-current-url "eww") ;; Store Org-link in eww-mode buffer @@ -112,8 +120,9 @@ the structure of the Org file." ;; Move to next anchor when current point is not at anchor. (or (org-eww-url-below-point) (org-eww-goto-next-url-property-change)) - (assert (org-eww-url-below-point) t - "program logic error: point must have an url below but it hasn't") + (cl-assert + (org-eww-url-below-point) t + "program logic error: point must have an url below but it hasn't") (if (<= (point) transform-end) ; if point is inside transform bound (progn ;; Get content between two links. diff --git a/lisp/org.el b/lisp/org.el index 39c37f5..ae0e86b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -687,6 +687,7 @@ For export specific modules, see also `org-export-backends'." (const :tag " crypt: Encryption of subtrees" org-crypt) (const :tag " ctags: Access to Emacs tags with links" org-ctags) (const :tag " docview: Links to doc-view buffers" org-docview) + (const :tag " eww: Store link to url of eww" org-eww) (const :tag " gnus: Links to GNUS folders/messages" org-gnus) (const :tag " habit: Track your consistency with habits" org-habit) (const :tag " id: Global IDs for identifying entries" org-id) @@ -711,7 +712,6 @@ For export specific modules, see also `org-export-backends'." (const :tag "C eshell Support for links to working directories in eshell" org-eshell) (const :tag "C eval-light: Evaluate inbuffer-code on demand" org-eval-light) (const :tag "C eval: Include command output as text" org-eval) - (const :tag "C eww: Store link to url of eww" org-eww) (const :tag "C expiry: Expiry mechanism for Org-mode entries" org-expiry) (const :tag "C favtable: Lookup table of favorite references and links" org-favtable) (const :tag "C git-link: Provide org links to specific file version" org-git-link) |