Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autoloads target to Makefile #2378

Merged
merged 2 commits into from
Jul 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
* **(Breaking)** Rewrote connection management (see http://docs.cider.mx/en/latest/managing_connections/ for details).
* **(Breaking)** `cider-jack-in-clojurescript` now creates only a ClojureScript REPL (use `cider-jack-in-clj&cljs` to create both REPLs).
* [#2357](https://github.com/clojure-emacs/cider/issues/2357): Support both keywords and strings as test selectors (previously it was only strings).
* [#2378](https://github.com/clojure-emacs/cider/pull/2378): Add autoloads target to Makefile.
* **(Breaking)** Move `cider-pprint-eval-last-sexp`, previously on `C-c C-p`, to `C-c C-v (C-)f (C-)e` in the `cider-eval-commands-map`.
* **(Breaking)** Move `cider-pprint-eval-defun-at-point`, previously on `C-c C-f`, to `C-c C-v (C-)f (C-)d` in the `cider-eval-commands-map`.

Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ version:
test: version build
$(CASK) exec buttercup -L . -L ./test/utils/

autoloads:
$(CASK) exec $(EMACS) -Q --batch \
-l autoload.el \
--eval "(let ((generated-autoload-file (expand-file-name \"cider-autoloads.el\"))) \
(update-directory-autoloads (expand-file-name \".\")))"

lint: version elpa
$(CASK) exec $(EMACS) -Q --batch \
--eval "(setq enable-local-variables :safe)" \
Expand All @@ -46,7 +52,7 @@ lint: version elpa
test-all: lint test

clean:
rm -f .depend $(OBJECTS)
rm -f .depend $(OBJECTS) cider-autoloads.el

elpaclean: clean
rm -f elpa*
Expand Down
14 changes: 9 additions & 5 deletions doc/hacking_on_cider.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ in advance).

Additionally you will have to generate and require the
[autoloads](https://www.gnu.org/software/emacs/manual/html_node/elisp/Autoload.html),
otherwise you'll keep getting errors about missing commands.
That's done automatically when installing via `package.el`, but you'll
have to do manually with `M-x update-directory-autoloads`. The
function will prompt for saving a file, let's call it
`cider-autoloads.el` that you will then need to require.
otherwise you'll keep getting errors about missing commands. That's done
automatically when installing via `package.el` but you'll have to do it
manually in this case:

```shell
make autoloads # generates cider-autoloads.el
```

Then:

```el
;; load CIDER from its source code
Expand Down