Function: speedbar-add-supported-extension

speedbar-add-supported-extension is an interactive and byte-compiled function defined in speedbar.el.gz.

Signature

(speedbar-add-supported-extension EXTENSION)

Documentation

Add EXTENSION as a new supported extension for speedbar tagging.

This should start with a . if it is not a complete file name, and the dot should NOT be quoted in with \. Other regular expression matchers are allowed however. EXTENSION may be a single string or a list of strings.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-add-supported-extension (extension)
  "Add EXTENSION as a new supported extension for speedbar tagging.
This should start with a `.' if it is not a complete file name, and
the dot should NOT be quoted in with \\.  Other regular expression
matchers are allowed however.  EXTENSION may be a single string or a
list of strings."
  (interactive "sExtension: ")
  (if (not (listp extension)) (setq extension (list extension)))
  (while extension
    (if (member (car extension) speedbar-supported-extension-expressions)
	nil
      (setq speedbar-supported-extension-expressions
	    (cons (car extension) speedbar-supported-extension-expressions)))
    (setq extension (cdr extension)))
  (setq speedbar-file-regexp (speedbar-extension-list-to-regex
			      speedbar-supported-extension-expressions)))