Function: apheleia-reformat-bibtex-buffer

apheleia-reformat-bibtex-buffer is a natively compiled function defined in apheleia-formatters.el.

Signature

(apheleia-reformat-bibtex-buffer &key BUFFER SCRATCH CALLBACK &allow-other-keys)

Documentation

Format a Bibtex BUFFER.

Use SCRATCH as a temporary buffer and CALLBACK to apply the transformation.

For more implementation detail, see apheleia--run-formatter-function.

Source Code

;; Defined in /nix/store/lwcwryzabcmvjcwwzzs65jrwf7p7d7cs-emacs-packages-deps/share/emacs/site-lisp/elpa/apheleia-20260915.1628/apheleia-formatters.el
(cl-defun apheleia-reformat-bibtex-buffer
    (&key buffer scratch callback &allow-other-keys)
  "Format a Bibtex BUFFER.
Use SCRATCH as a temporary buffer and CALLBACK to apply the
transformation.

For more implementation detail, see
`apheleia--run-formatter-function'."
  (with-current-buffer scratch
    (funcall (with-current-buffer buffer major-mode))
    (when (fboundp 'bibtex-reformat)
      (bibtex-reformat))
    (funcall callback)))