Function: bib-cite-minor-mode
bib-cite-minor-mode is an autoloaded, interactive and byte-compiled
function defined in bib-cite.el.
Signature
(bib-cite-minor-mode ARG)
Documentation
Toggle bib-cite mode.
When bib-cite mode is enabled, citations, labels and refs are highlighted
when the mouse is over them. Clicking on these highlights with [mouse-2]
runs bib-find, and [mouse-3] runs bib-display.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/bib-cite.el
;;;###autoload
(defun bib-cite-minor-mode (arg)
"Toggle bib-cite mode.
When bib-cite mode is enabled, citations, labels and refs are highlighted
when the mouse is over them. Clicking on these highlights with [mouse-2]
runs `bib-find', and [mouse-3] runs `bib-display'."
(interactive "P")
(setq-local bib-cite-minor-mode
(if arg
(> (prefix-numeric-value arg) 0)
(not bib-cite-minor-mode)))
(cond
(bib-cite-minor-mode ;Setup the minor-mode
;; Christoph Wedler's <wedler@fmi.uni-passau.de> suggestion for xemacs
;; Added for version 2.19
(if (boundp 'tags-always-exact)
(progn
(setq-local tags-always-exact nil)))
;; mouse overlay
(if bib-highlight-mouse-t
(progn
(bib-cite-setup-highlight-mouse-keymap)
(bib-highlight-mouse)
(add-hook 'after-change-functions
#'bib-cite-setup-mouse-function nil t))))
(t
;;;Undo the minor-mode
;; mouse overlay
(remove-hook 'after-change-functions #'bib-cite-setup-mouse-function t)
(let ((before-change-functions) (after-change-functions))
;; FIXME This detroys all mouse-faces and local-maps!
;; FIXME Hope no other package is using them in this buffer!
(remove-text-properties (point-min) (point-max)
'(mouse-face t local-map t))))))