Function: speedbar-line-text

speedbar-line-text is a byte-compiled function defined in speedbar.el.gz.

Signature

(speedbar-line-text &optional P)

Documentation

Retrieve the text after prefix junk for the current line.

Optional argument P is where to start the search from.

Source Code

;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
;;; Reading info from the speedbar buffer
;;
(defun speedbar-line-text (&optional p)
  "Retrieve the text after prefix junk for the current line.
Optional argument P is where to start the search from."
  (save-excursion
    (if p (goto-char p))
    (beginning-of-line)
    (if (looking-at (concat
		     "\\([0-9]+\\): *[[<{]?[-+?= ][]>}@()|] \\([^ \n]+\\)"))
	(get-text-property (match-beginning 2) 'speedbar-text)
      nil)))