Skip to content

Conversation

@ruediger
Copy link
Contributor

@ruediger ruediger commented Apr 9, 2014

  • Use setq-local instead of (set (make-local-variable 'var) value). Provides a version for older Emacsen.
  • Remove use of cl.el.
  • Use ' in file regexp instead of line end match $.
  • Use type for defcustom and add parent group.

* Use `setq-local' instead of (set (make-local-variable ...) value).
  Provides a version for older Emacsen.
* Remove use of `cl.el'.
* Use \' in file regexp instead of line end match $.
* Use type for defcustom and add parent group.
@ruediger
Copy link
Contributor Author

ruediger commented Apr 9, 2014

Generally it seems also like a good idea to replace the custom indent/fill code with SMIE. See (info "(elisp) SMIE").

@huonw
Copy link
Contributor

huonw commented Apr 16, 2014

Hi @ruediger, thanks for this work; seems alright to me, but I don't know a lot of elisp. (Very sorry that this has sat here for so long!)

cc @pnkfelix @nikomatsakis (I believe you're emacs users?)

@huonw
Copy link
Contributor

huonw commented Apr 16, 2014

Oh, btw, @ruediger there are some tests for the emacs mode, I believe you can run them with the shell script adjacent to rust-mode.el. Do they still pass with this patch? (I don't think they're checked by our bots, so we have to resort to manual checks.)

@ruediger
Copy link
Contributor Author

Yes, it passes the tests for me.

Ran 57 tests, 57 results as expected (2014-04-16 15:39:43+0200)

@huonw
Copy link
Contributor

huonw commented Apr 16, 2014

Awesome! (Thanks again)

@nikomatsakis
Copy link
Contributor

I use emacs for don't really know much about elisp. I'll give the proposed changes a whirl though. (This reminds me, I've been meaning to file another bug about some weird indentation behavior)

@nikomatsakis
Copy link
Contributor

(All the changes looked good to me; not sure if emacs-mode has a proper owner...?)

bors added a commit that referenced this pull request Apr 16, 2014
* Use `setq-local` instead of `(set (make-local-variable 'var) value)`.  Provides a version for older Emacsen.
* Remove use of `cl.el`.
* Use \' in file regexp instead of line end match $.
* Use type for `defcustom` and add parent group.
@bors bors closed this Apr 16, 2014
@bors bors merged commit 3a70976 into rust-lang:master Apr 16, 2014
@ruediger ruediger deleted the rustmode branch April 16, 2014 23:15
@pnkfelix
Copy link
Contributor

I'm willing to volunteer to be the emacs-mode owner.

bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2024
Lint comparison to empty slice using `PartialEq` methods

changelog: [`comparison_to_empty`]: Also  detect comparaisons using `PartialEq` methods

Fix rust-lang#13401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants