Change/Fix: Bookmark, link storing/loading/safety
This makes several changes and fixes and adds test cases for all the combinations I'm aware of. See #147. Thanks to @tpeacock19 for patiently reporting these issues. Squashed commit of the following: commit d1b396c5654ae3fa8ad03d0d4b2cbde20000fa1a Author: Adam Porter <adam@alphapapa.net> Date: Mon Nov 16 02:01:23 2020 -0600 WIP: Fixes commit 23215a723c4bf6e249c330863e01029166db56c3 Author: Adam Porter <adam@alphapapa.net> Date: Mon Nov 16 01:34:34 2020 -0600 WIP: Fixes commit 97b13d09d4d52bb168bfc19fb6f8daf2964f4b6c Author: Adam Porter <adam@alphapapa.net> Date: Mon Nov 16 00:46:49 2020 -0600 WIP: Test links too Everything passes now. commit 1866a71dbbb6416f7e365c90cadd269765d52b70 Author: Adam Porter <adam@alphapapa.net> Date: Sun Nov 15 22:22:22 2020 -0600 WIP: Test loading/saving bookmarks
This commit is contained in:
parent
b04d0263a4
commit
9d86ee9e10
3 changed files with 310 additions and 75 deletions
|
|
@ -225,6 +225,8 @@ returns nil or non-nil."
|
|||
(list buffers-or-files)
|
||||
(otherwise (list buffers-or-files)))
|
||||
(--map (cl-etypecase it
|
||||
;; NOTE: This etypecase is essential to opening links safely,
|
||||
;; as it rejects, e.g. lambdas in the buffers-files argument.
|
||||
(buffer it)
|
||||
(string (or (find-buffer-visiting it)
|
||||
(when (file-readable-p it)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue