Function: speedbar-buffer-revert-buffer

speedbar-buffer-revert-buffer is an interactive and byte-compiled function defined in speedbar.el.gz.

Signature

(speedbar-buffer-revert-buffer)

Documentation

Revert the buffer the cursor is on in the speedbar buffer.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-buffer-revert-buffer ()
  "Revert the buffer the cursor is on in the speedbar buffer."
  (interactive)
  (save-excursion
    (beginning-of-line)
    ;; If this fails, then it is a non-standard click, and as such,
    ;; perfectly allowed
    (if (re-search-forward "[]>?}] [^ ]" (line-end-position) t)
	(let ((text (progn
		      (forward-char -1)
		      (buffer-substring (point) (line-end-position)))))
	  (if (get-buffer text)
	      (progn
		(set-buffer text)
		(revert-buffer t)))))))