1 ;; Test file for Emacs Lisp.
2 ;; Attempt to include as many aspects of Emacs Lisp as possible.
8 (require 'eieio "../eieio")
10 ;; tags encapsulated in eval-when-compile and eval-and-compile
11 ;; should be expanded out into the outer environment.
13 (require 'semantic-imenu)
17 (defconst const-1 nil)
18 (defun function-1 (arg)
24 (defun a-defun (arg1 arg2 &optional arg3)
28 (defun a-defun-interactive (arg1 arg2 &optional arg3)
29 "doc a that is a command"
33 (defun* a-defun* (arg1 arg2 &optional arg3)
37 (defsubst a-defsubst (arg1 arg2 &optional arg3)
41 (defmacro a-defmacro (arg1 arg2 &optional arg3)
45 (define-overload a-overload (arg)
51 (defmethod a-method ((obj some-class) &optional arg2)
52 "Doc String for a method."
55 (defgeneric a-generic (arg1 arg2)
56 "General description of a-generic.")
60 (defadvice existing-function-to-advise (around test activate)
61 "Do something special to this fcn."
66 (defvar a-defvar (cons 1 2)
69 (defvar a-defvar-star (cons 1 2)
70 "*User visible var a")
72 (defconst a-defconst 'a "var doc const")
74 (defcustom a-defcustom nil
79 (defface a-defface 'bold
80 "A face that is bold.")
82 (defimage ezimage-page-minus
83 ((:type xpm :file "page-minus.xpm" :ascent center))
84 "Image used for open files with stuff in them.")
88 (autoload (quote a-autoload) "somefile"
89 "Non-interactive autoload." nil nil)
91 (autoload (quote a-autoload-interactive) "somefile"
92 "Interactive autoload." t nil)
95 (defgroup a-defgroup nil
96 "Group for `emacs-lisp' regression-test")
100 (defclass a-class (a-parent)
102 (slot-2 :initarg :slot-2)
103 (slot-3 :documentation "Doc about slot3")
104 (slot-4 :type 'boolean)
106 "Doc String for class.")
108 (defclass a-class-abstract ()
110 "Doc string for abstract class."
115 (defstruct (test-struct-1 :test 'equal)
119 (defstruct test-struct-2
123 ;;; Semantic specific macros
130 (define-mode-local-override a-overriden-function
131 emacs-lisp-mode (tag)
132 "A function that is overloaded."
135 (defvar-mode-local emacs-lisp-mode a-mode-local-def
143 ;; arch-tag: ecda6dd6-db71-4b28-aa47-6adc585dce06