Skip to content

Commit eccb851

Browse files
committed
Fix: archive.today code
1 parent 71dda71 commit eccb851

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

README.org

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2700,7 +2700,7 @@ Yes, please! Send pull requests and file issues on the [[https://github.com/alp
27002700

27012701
+ Catalog and tag appropriately :: New entries in the outline should have the appropriate tags and should follow the existing hierarchy. For example, articles should be tagged =articles=, and generally filed under an =Articles= heading using tag inheritance to apply the tag.
27022702
+ "Loosely" or "usefully" opinionated :: Rather than being a place to dump links for users to sort out, we should do that ourselves. Links should have summaries and examples. Where there are multiple links to similar projects, we should compare them and guide users to what we think is generally the best solution, or the best solution for each use case.
2703-
+ Archive reference material :: Much of the shared wisdom in the Emacs community is written in a variety of blogs by users and developers, as well as posts on Reddit, StackOverflow, etc. These tend to hang around for a long time, but being the Internet, this is never guaranteed. When linking to an article or other reference material, we should store a link to an archived version using [[*Get archive.is link for page][this code]].
2703+
+ Archive reference material :: Much of the shared wisdom in the Emacs community is written in a variety of blogs by users and developers, as well as posts on Reddit, StackOverflow, etc. These tend to hang around for a long time, but being the Internet, this is never guaranteed. When linking to an article or other reference material, we should store a link to an archived version using [[*Get archive.today link for page][this code]].
27042704

27052705
** Requirements
27062706

@@ -3001,7 +3001,7 @@ This section contains code used to add to and update this document.
30013001

30023002
*** TODO Get summary of page
30033003

3004-
*** DONE Get archive.is link for page
3004+
*** DONE Get archive.today link for page
30053005
CLOSED: [2017-08-03 Thu 15:11]
30063006
:PROPERTIES:
30073007
:ID: a0e9486f-24f0-47a6-8f21-50bcc7ac2ca0
@@ -3015,13 +3015,13 @@ CLOSED: [2017-08-03 Thu 15:11]
30153015
#+BEGIN_SRC elisp :exports code :results silent
30163016
(require 'org-web-tools)
30173017

3018-
(defun emacs-package-dev-handbook--archiveis-capture (url)
3019-
"Return archive.is archived URL for URL."
3020-
(when-let* ((id (org-web-tools-archive--url-id url)))
3018+
(defun emacs-package-dev-handbook--archive.today-capture (url)
3019+
"Return archive.today archived URL for URL."
3020+
(when-let* ((id (org-web-tools-archive--archive.today-url-id url)))
30213021
(format "http://%s/%s" org-web-tools-archive-hostname id)))
30223022

3023-
(cl-defun emacs-package-dev-handbook-insert-archiveis-property (url)
3024-
"Set the \"archive.is\" property for entry at point to the archived version of URL.
3023+
(cl-defun emacs-package-dev-handbook-insert-archive.today-property (url)
3024+
"Set the \"archive.today\" property for entry at point to the archived version of URL.
30253025
Interactively, assumes heading on/before point is an Org link to
30263026
a web page."
30273027
(interactive (list (save-excursion
@@ -3030,8 +3030,8 @@ CLOSED: [2017-08-03 Thu 15:11]
30303030
(beginning-of-line)
30313031
(when (re-search-forward org-bracket-link-regexp (line-end-position) 'noerror)
30323032
(org-link-unescape (match-string-no-properties 1))))))
3033-
(when-let ((archive-url (emacs-package-dev-handbook--archiveis-capture url)))
3034-
(org-set-property "archive.is" archive-url)))
3033+
(when-let ((archive-url (emacs-package-dev-handbook--archive.today-capture url)))
3034+
(org-set-property "archive.today" archive-url)))
30353035
#+END_SRC
30363036

30373037
*** TODO Insert new entry at point

index.html

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)