Function: hpath:display-buffer

hpath:display-buffer is an autoloaded, interactive and byte-compiled function defined in hpath.el.

Signature

(hpath:display-buffer BUFFER &optional DISPLAY-WHERE)

Documentation

Create and select BUFFER at optional DISPLAY-WHERE or at hpath:display-where.

BUFFER must be a buffer or a buffer name.

See the documentation of hpath:display-buffer-alist for valid values of DISPLAY-WHERE. Return the window in which the buffer is displayed or nil if not displayed because BUFFER is invalid.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
;;;###autoload
(defun hpath:display-buffer (buffer &optional display-where)
  "Create and select BUFFER at optional DISPLAY-WHERE or at `hpath:display-where'.
BUFFER must be a buffer or a buffer name.

See the documentation of `hpath:display-buffer-alist' for valid
values of DISPLAY-WHERE.  Return the window in which the buffer
is displayed or nil if not displayed because BUFFER is invalid."
  (interactive "bDisplay buffer: ")
  (when (stringp buffer)
    (setq buffer (get-buffer-create buffer)))
  (when buffer
    ;; RSW 4/30/2016 - Commented out in case interferes with Smart Key
    ;; selection and yanking of the region via drags.
    ;; (hpath:push-tag-mark)
    (funcall (hpath:display-buffer-function display-where) buffer)
    (selected-window)))