Function: hywiki-directory-modified-p

hywiki-directory-modified-p is a byte-compiled function defined in hywiki.el.

Signature

(hywiki-directory-modified-p)

Documentation

Return non-nil if any HyWiki page name change since last read.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20261030.2317/hywiki.el
(defun hywiki-directory-modified-p ()
  "Return non-nil if any HyWiki page name change since last read."
  (when (listp hywiki--directory-mod-time)
    ;; Prior to Hyperbole 9.3.1, mod-times were stored as lists of 4
    ;; integers, so we need to read this old format and convert to the new
    ;; single integer of Epoch seconds.
    (setq hywiki--directory-mod-time (time-convert hywiki--directory-mod-time 'integer)))
  (or (zerop hywiki--directory-mod-time)
      ;; If checksum over HyWiki page files has changed, consider the
      ;; directory modified
      (not (string-equal hywiki--directory-checksum
                         (or (hywiki-directory-get-checksum) "")))
      ;; The checksum handles only page file changes; here we have to
      ;; account for the .eld cache file being updated with changes to
      ;; WikiWords with non-page referents.  Use the directory mod-time
      ;; comparison for this.
      (/= hywiki--directory-mod-time (hywiki-directory-get-mod-time))))