X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=blobdiff_plain;f=elpher.el;h=1c4293760451a07e6e2636fa8aaffd8f7393063d;hp=bdb7aabd4484c1b01cd7205328a170b6c5f3b0f5;hb=297f223afe310a0acbe395c79c4c13b1257b0d0c;hpb=3d57d6d240f7bf90c9f0d27675a4830164ddce6c diff --git a/elpher.el b/elpher.el index bdb7aab..1c42937 100644 --- a/elpher.el +++ b/elpher.el @@ -73,14 +73,13 @@ ;; (require 'seq) -(require 'pp) (require 'shr) (require 'url-util) (require 'subr-x) -(require 'dns) (require 'nsm) (require 'gnutls) (require 'socks) +(require 'bookmark) ;;; Global constants ;; @@ -128,7 +127,8 @@ (defvar ansi-color-context) (defvar bookmark-make-record-function) (defvar mu4e~view-beginning-of-url-regexp) - (defvar thing-at-point-uri-schemes)) + (defvar thing-at-point-uri-schemes) + (defvar xterm-color-preserve-properties)) ;;; Customization group @@ -721,7 +721,7 @@ ERROR can be either an error object or a string." (cancel-timer elpher-network-timer))) (defun elpher-make-network-timer (thunk) - "Creates a timer to run the THUNK after `elpher-connection-timeout' seconds. + "Create a timer to run the THUNK after `elpher-connection-timeout' seconds. This is just a wraper around `run-at-time' which additionally sets the buffer-local variable `elpher-network-timer' to allow `elpher-process-cleanup' to also clear the timer." @@ -1673,7 +1673,7 @@ The result is rendered using RENDERER." (insert "\n" "Your bookmarks are stored in your ") (let ((help-string "RET,mouse-1: Open bookmark list")) - (insert-text-button "Emacs bookmark list" + (insert-text-button "bookmark list" 'face 'link 'action (lambda (_) (interactive) @@ -1712,8 +1712,8 @@ The result is rendered using RENDERER." 'help-echo help-string)) (insert "\n") (insert (propertize - (concat " (These documents should be available if you have installed Elpher \n" - " using MELPA. Otherwise you may have to install the manual yourself.)\n") + (concat "(These documents should be available if you have installed Elpher \n" + " using MELPA. Otherwise you may have to install the manual yourself.)\n") 'face 'shadow)) (elpher-restore-pos))) @@ -1757,7 +1757,7 @@ This is rendered using `elpher-get-visited-pages-page' via `elpher-type-map'." (defun elpher-display-history-links (pages title) "Show all PAGES in an Elpher buffer with a given TITLE." - (let* ((title-line (concat "---- " title " ----")) + (let* ((title-line (concat " ---- " title " ----")) (footer-line (make-string (length title-line) ?-))) (elpher-with-clean-buffer (insert title-line "\n\n") @@ -1768,7 +1768,7 @@ This is rendered using `elpher-get-visited-pages-page' via `elpher-type-map'." (address (elpher-page-address page))) (elpher-insert-index-record display-string address)))) (insert "No history items found.\n")) - (insert "\n" footer-line "\n" + (insert "\n " footer-line "\n" "Select an entry or press 'u' to return to the previous page.") (elpher-restore-pos)))) @@ -1844,7 +1844,6 @@ To bookmark the link at point use \\[elpher-bookmark-link]." (read-file-name "Old Elpher bookmarks: " user-emacs-directory nil t "elpher-bookmarks")))) - (require 'bookmark) (dolist (bookmark (with-temp-buffer (insert-file-contents file) (read (current-buffer)))) @@ -1882,7 +1881,7 @@ To bookmark the link at point use \\[elpher-bookmark-link]." 'follow-link t 'help-echo "RET,mouse-1: open Emacs bookmark menu") (insert (substitute-command-keys - ",\nwhich can also be openned from anywhere using '\\[bookmark-bmenu-list]'.")) + ",\nwhich can also be opened from anywhere using '\\[bookmark-bmenu-list]'.")) (elpher-restore-pos))) (defun elpher-show-bookmarks ()