;;; names-autoloads.el --- automatically extracted autoloads ;; ;;; Code: (add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path)))) ;;;### (autoloads nil "names" "names.el" (0 0 0 0)) ;;; Generated autoloads from names.el (defvar names--inside-make-autoload nil "\ Used in `make-autoload' to indicate we're making autoloads.") (autoload 'define-namespace "names" "\ Inside the namespace NAME, execute BODY. NAME can be any symbol (not quoted), but it's highly recommended to use some form of separator (such as :, /, or -). For a complete description of this macro, please visit the frontpage with \\[names-view-manual]. In summary, this macro has two main effects: 1. Any definitions inside BODY will have NAME prepended to the symbol given. Ex: (define-namespace foo- (defvar bar 1 \"docs\") ) expands to (defvar foo-bar 1 \"docs\") 2. Any function calls and variable names get NAME prepended to them if such a variable or function exists. Ex: (define-namespace foo: (defun message (x y) nil) (message \"%s\" my-var) ) expands to (defun foo:message (x y) nil) (foo:message \"%s\" my-var) Note how `message' is expanded to `foo:message' in the second form, because that function exists. Meanwhile, `bar' is left untouched because `foo:bar' is not a known variable name. =============================== AUTOLOAD In order for `define-namespace' to work with \";;;###autoload\" comments must replace all instances of \";;;###autoload\" inside your `define-namespace' with `:autoload'. Afterwards, add an \";;;###autoload\" comment just above your `define-namespace'. =============================== KEYWORDS Immediately after NAME you may add keywords which customize the behaviour of `define-namespace'. For a list of possible keywords and a description of their effects, see the variable `names--keyword-list'. \(fn NAME [KEYWORD ...] BODY)" nil t) (function-put 'define-namespace 'lisp-indent-function '(lambda (&rest x) 0)) (eval-after-load 'find-func '(defadvice find-function-search-for-symbol (around names-around-find-function-search-for-symbol-advice (symbol type library) activate) "Make sure `find-function-search-for-symbol' understands namespaces." ad-do-it (ignore-errors (unless (cdr ad-return-value) (with-current-buffer (car ad-return-value) (search-forward-regexp "^(define-namespace\\_>") (skip-chars-forward " \n[:blank:]") (let* ((names--regexp (concat "\\`" (regexp-quote (symbol-name (read (current-buffer)))))) (short-symbol (let ((name (symbol-name symbol))) (when (string-match names--regexp name) (intern (replace-match "" nil nil name)))))) (when short-symbol (ad-set-arg 0 short-symbol) ad-do-it))))))) (defadvice make-autoload (around names-before-make-autoload-advice (form file &optional expansion) activate) "\ Make sure `make-autoload' understands `define-namespace'. Use the `names--inside-make-autoload' variable to indicate to `define-namespace' that we're generating autoloads." (require (quote names)) (if (null (eq (car-safe form) (quote define-namespace))) ad-do-it (setq names--inside-make-autoload t) (setq form (macroexpand form)) (setq names--inside-make-autoload nil) (if (version< emacs-version "24.3") (setq ad-return-value (cons (quote progn) (mapcar (lambda (x) (names--make-autoload-compat x file)) (cdr form)))) (ad-set-arg 2 (quote expansion)) (ad-set-arg 0 form) ad-do-it))) (if (fboundp 'register-definition-prefixes) (register-definition-prefixes "names" '("names-"))) ;;;*** ;;;### (autoloads nil "names-dev" "names-dev.el" (0 0 0 0)) ;;; Generated autoloads from names-dev.el (if (fboundp 'register-definition-prefixes) (register-definition-prefixes "names-dev" '("names-" "find-function-read"))) ;;;*** ;;;### (autoloads nil nil ("names-pkg.el") (0 0 0 0)) ;;;*** ;; Local Variables: ;; version-control: never ;; no-byte-compile: t ;; no-update-autoloads: t ;; coding: utf-8 ;; End: ;;; names-autoloads.el ends here