-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hywiki.el - Persistent loading and saving of all referent types
- Loading branch information
Showing
5 changed files
with
167 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
;; Author: Mats Lidell <[email protected]> | ||
;; | ||
;; Orig-Date: 30-Jan-21 at 12:00:00 | ||
;; Last-Mod: 21-Jan-25 at 17:02:36 by Mats Lidell | ||
;; Last-Mod: 26-Jan-25 at 18:24:56 by Bob Weiner | ||
;; | ||
;; SPDX-License-Identifier: GPL-3.0-or-later | ||
;; | ||
|
@@ -95,9 +95,16 @@ Checks ACTYPE, ARGS, LOC, LBL-KEY and NAME." | |
|
||
(defun hy-delete-dir-and-buffer (dir) | ||
"Delete DIR and buffer visiting directory." | ||
(let ((buf (find-buffer-visiting dir))) | ||
(let ((buf (find-buffer-visiting dir)) | ||
(hywiki-cache (when (featurep 'hywiki) | ||
(expand-file-name hywiki-cache-default-file | ||
dir)))) | ||
(when buf | ||
(kill-buffer buf)) | ||
(when (and hywiki-cache | ||
(file-readable-p hywiki-cache) | ||
(file-writable-p hywiki-cache)) | ||
(delete-file hywiki-cache)) | ||
(delete-directory dir))) | ||
|
||
(defun hy-make-random-wikiword (&optional length word-length) | ||
|