Function: hbmap:dir-add
hbmap:dir-add is a byte-compiled function defined in hbmap.el.
Signature
(hbmap:dir-add DIR-NAME &optional NO-SAVE)
Documentation
Add DIR-NAME to map of all directories in which user has written buttons.
Returns t iff DIR-NAME is not already in map, nil if it is, and some other value when cannot read or write map. Optional NO-SAVE disables saving of the map after an add.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbmap.el
;;; ************************************************************************
;;; Public functions
;;; ************************************************************************
(defun hbmap:dir-add (dir-name &optional no-save)
"Add DIR-NAME to map of all directories in which user has written buttons.
Returns t iff DIR-NAME is not already in map, nil if it is, and some
other value when cannot read or write map.
Optional NO-SAVE disables saving of the map after an add."
(hbmap:dir-operate (lambda (dir) (not (hbmap:dir-member dir)))
dir-name
`(progn (prin1 (list ,dir-name) (current-buffer))
(terpri (current-buffer)))
no-save))