Function: bibtex-copy-summary-as-kill

bibtex-copy-summary-as-kill is an interactive and byte-compiled function defined in bibtex.el.gz.

Signature

(bibtex-copy-summary-as-kill &optional ARG)

Documentation

Push summary of current BibTeX entry to kill ring.

Use bibtex-summary-function to generate summary. If prefix ARG is non-nil push BibTeX entry's URL to kill ring that is generated by calling bibtex-url.

Probably introduced at or before Emacs version 22.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defun bibtex-copy-summary-as-kill (&optional arg)
  "Push summary of current BibTeX entry to kill ring.
Use `bibtex-summary-function' to generate summary.
If prefix ARG is non-nil push BibTeX entry's URL to kill ring
that is generated by calling `bibtex-url'."
  (interactive "P")
  (if arg (let ((url (bibtex-url nil t)))
            (if url (kill-new (message "%s" url))
              (message "No URL known")))
    (save-excursion
      (bibtex-beginning-of-entry)
      (if (looking-at bibtex-entry-maybe-empty-head)
          (kill-new (message "%s" (funcall bibtex-summary-function)))
        (user-error "No entry found")))))