1 (add-to-list 'load-path
"../contrib")
2 (add-to-list 'load-path
"../experimental")
3 (add-to-list 'load-path
"../lisp")
5 (defun muse-elint-files ()
10 (load "muse" nil nomessage
)
11 (dolist (dir '("../lisp" "../contrib" "../experimental"))
12 (dolist (file (directory-files dir nil
"\\.el$"))
13 (setq file
(substring file
0 (string-match "\\.el$" file
)))
14 (load file nil nomessage
)))
16 (add-to-list 'elint-standard-variables
'current-prefix-arg
)
17 (add-to-list 'elint-standard-variables
'command-line-args-left
)
18 (add-to-list 'elint-standard-variables
'buffer-file-coding-system
)
19 (add-to-list 'elint-standard-variables
'save-some-buffers-action-alist
)
20 (add-to-list 'elint-standard-variables
'emacs-major-version
)
21 (add-to-list 'elint-standard-variables
'emacs-minor-version
)
22 (add-to-list 'elint-standard-variables
'emacs-version
)
23 (add-to-list 'elint-standard-variables
'window-system
)
24 (add-to-list 'elint-standard-variables
'muse-mode-abbrev-table
)
25 (dolist (file command-line-args-left
)
27 (message "Checking %s ..." file
)
28 (elint-current-buffer)
29 (with-current-buffer (elint-get-log-buffer)
30 (goto-char (point-min))
32 (while (not (or (eobp)
33 (looking-at "^Linting complete")))
34 (message (buffer-substring (muse-line-beginning-position)
35 (muse-line-end-position)))
37 (kill-buffer (current-buffer))))
39 (defun muse-generate-autoloads ()
41 (defvar autoload-package-name
)
42 (defvar command-line-args-left
)
43 (defvar generated-autoload-file
)
45 (setq backup-inhibited t
)
46 (setq generated-autoload-file
(expand-file-name "muse-autoloads.el"))
47 (setq command-line-args-left
(mapcar #'expand-file-name
48 command-line-args-left
))
49 (if (featurep 'xemacs
)
51 (setq autoload-package-name
"muse")
52 (batch-update-autoloads))
53 (find-file generated-autoload-file
)
54 (delete-region (point-min) (point-max))
55 (insert ";;; muse-autoloads.el --- autoloads for Muse
60 (batch-update-autoloads)
61 (find-file generated-autoload-file
)
62 (goto-char (point-max))
64 (insert "(provide 'muse-autoloads)
65 ;;; muse-autoloads.el ends here
68 ;; version-control: never
70 ;; no-update-autoloads: t
75 (kill-buffer (current-buffer))))