Function: hui:hbut-buf
hui:hbut-buf is a byte-compiled function defined in hui.el.
Signature
(hui:hbut-buf &optional PROMPT)
Documentation
PROMPT for and return a buffer in which to place a button.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui.el
(defun hui:hbut-buf (&optional prompt)
"PROMPT for and return a buffer in which to place a button."
(let ((buf-name))
(while
(progn
(setq buf-name
(hargs:read-match
(or prompt "Button's buffer: ")
(delq nil
(mapcar
;; Filter only buffer whose names start with a
;; space, are read-only or are known not to be
;; editable, since buttons can be
;; in buffers without attached files now.
(lambda (buf)
(let ((b (buffer-name buf)))
(unless (or (string-match-p hui:ignore-buffers-regexp b)
(buffer-local-value 'buffer-read-only buf))
(cons b nil))))
(buffer-list)))
nil t (buffer-name) 'buffer))
(or (null buf-name) (equal buf-name "")))
(beep))
(get-buffer buf-name)))