Function: dictionary-display-definition-in-help-buffer

dictionary-display-definition-in-help-buffer is a byte-compiled function defined in dictionary.el.gz.

Signature

(dictionary-display-definition-in-help-buffer WORD DICTIONARY DEFINITION)

Documentation

Display DEFINITION, the definition of WORD in DICTIONARY.

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
(defun dictionary-display-definition-in-help-buffer (word dictionary definition)
  "Display DEFINITION, the definition of WORD in DICTIONARY."
  (let ((help-buffer-under-preparation t))
    (help-setup-xref (list #'dictionary-search word dictionary)
                     (called-interactively-p 'interactive))
    (with-help-window (help-buffer)
      (with-current-buffer (help-buffer)
        (insert definition)
        ;; Buttonize references to other definitions.  These appear as
        ;; words enclosed with curly braces.
        (goto-char (point-min))
        (while (re-search-forward (rx "{"
                                      (group-n 1 (* (not (any ?}))))
                                      "}")
                                  nil t)
          (help-xref-button 1 'help-word
                            (match-string 1)
                            dictionary))))))