summaryrefslogtreecommitdiff
path: root/rust-mode.el
AgeCommit message (Collapse)Author
2021-10-22include keyword existential in rust-keywordsbrotzeit
2021-10-22update regexes used in rust-top-item-beg-rebrotzeit
2021-10-16update readme and bump versionbrotzeit
2021-04-23Make most additional libraries optionalJonas Bernoulli
2021-04-23Create rust-utils.el from existing codeJonas Bernoulli
2021-04-23Create rust-cargo.el from existing codeJonas Bernoulli
2021-04-23Create rust-playpen.el from existing codeJonas Bernoulli
2021-04-23Create rust-rustfmt.el from existing codeJonas Bernoulli
2021-04-23rust-end-of-string: Move definitionJonas Bernoulli
2021-04-23Properly markup two additional section headingsJonas Bernoulli
2021-04-23Add non-empty commentary section, slightly reword summaryJonas Bernoulli
2021-04-23Create rust-compile.el from existing codeJonas Bernoulli
For the time being `require' the new library from "rust-mode.el". In the mid-term we should stop doing that, so that users can load it if and only if they want to do so.
2021-04-23rust-mode: CosmeticsJonas Bernoulli
2021-04-23Add .dir-locals.elJonas Bernoulli
2021-04-23Remove "-face" suffix from names of facesJonas Bernoulli
As mentioned in (info "(emacs)Defining Faces") the name of a face > should not end in "-face" (that would be redundant). For historic reasons a few built-in faces actually do end with "-face" and it so happens that our faces are closely related to just those `font-lock' faces and that probably inspired our use of the suffix. Even so, we should stop now.
2021-02-26Add release build/run functionsAdam Gleave
2020-12-04Add rust-check functionAlyssa Ross
Because check exists and is so much faster, I only ever want to build when I want to test the binary, in which case I'd use run. So I think it's more useful to have a rust-check function available than it is to even have rust-compile.
2020-07-09Set default directory when compiling.Nathan Moreau
2020-07-09Divide library into sectionsJonas Bernoulli
2020-07-09Various cosmetic changesJonas Bernoulli
2020-07-09rearrange IV: MiscJonas Bernoulli
2020-07-09rearrange III: ModeJonas Bernoulli
2020-07-09rearrange II: Regexp variables and functionsJonas Bernoulli
2020-07-09rearrange I: Move options and faces to beginning of fileJonas Bernoulli
2020-07-09Improve doc-stringsJonas Bernoulli
2020-06-18compile-mode integration: add link to code references. (#391)Nathan Moreau
This allows to jump to code references such as lines 82 and 132 in the following snippet error message. error[E0061]: this function takes 1 parameter but 2 parameters were supplied --> file6.rs:132:34 | 82 | fn duration_ms_since(time: &Option<SystemTime>) -> u128 { | ------------------------------------------------------- defined here ... 132 | self.total_time_ms = duration_ms_since(&self.program_start, 2); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-06-15Minor fixes (#388)Jonas Bernoulli
* Rename rust-mode-font-lock-keywords to rust-font-lock-keywords. * Rename rust-mode-keywords to rust-keywords. * Properly define rust-buffer-project.
2020-06-03rustc-colon-compilation-regexps: improve highlighting.Nathan Moreau
2020-05-13Re-implement rust-in-macro for performancePhillip Lord
rust-in-macro could cause significant performance problems resulting in a very choppy user experience. Reimplement rust-in macro in a somewhat simpler manner and in way which allows both allows restriction to parts of the buffer and caching of buffer analysis. Optimize rust-syntax-propertize to use this caching mechanism. Fixes #208 Fixes #288
2020-05-09Check for -> and => early in rust-ordinary-lt-gt-pTrevor Spiteri
Since the check for -> and => is very cheap, move it up in rust-ordinary-lt-gt-p potentially saving much more expensive checks. Also use simple equality check instead of regex function looking-at for checking following character.
2020-05-03Drop Emacs-24Phillip Lord
Emacs-24 is now two major versions behind and will soon be three, so formally remove support for it.
2020-04-29In emacs >= 26.2, use replace-buffer-contents after formattingTrevor Spiteri
This saves the position and the markers in the buffer, so there is no need to save positions of direct and indirect buffers and windows. This also plays better with e.g. grep, as otherwise all grep markers would be destroyed when replacing the contents of the buffer with copy-to-buffer. While replace-buffer-contents was added in Emacs 26.1, it was broken for non-ASCII contents and would corrupt the buffer contents. This was fixed in 26.2, so we require version 26.2 for this.
2020-04-27Fix typosJonas Bernoulli
2020-04-14Make *rustfmt* buffer readonly.Nathan Moreau
2020-04-14rust-goto-format-problem: make sure to always just to a buffer that exists.Nathan Moreau
2020-04-14rust-format-show-buffer: default to true.Nathan Moreau
Otherwise it might not be clear what the problem is, in case of whitespace issues.
2020-04-14rust--format-fix-rustfmt-buffer: replace "stdin:" as well as "<stdin>:".Nathan Moreau
2020-04-12rustc-compilation-regexps: handle `note` case as compilation-info.Nathan Moreau
2020-03-22Don't fail on re-search-forward. (#359)Nathan Moreau
2020-03-03rust-before-save-hook: log errors.Nathan Moreau
2020-02-29Introduce constant for *rustfmt*.Nathan Moreau
2020-02-29integrate rustfmt error messagesNikodemus Siivola
If rustfmt reports an error, by default display it in the message area and jump to the location. (custom rust-format-goto-problem) Optionally display the *rustfmt* buffer when rustfmt reports an error. (custom rust-format-show-buffer)
2020-02-13Enforce use of spaces for indentation and cleanup whitespace (#353)Jonas Bernoulli
* Enforce use of spaces for indentation We cannot just assume that each and every contributor has set indent-tabs-mode to nil, and indeed it appears at least a few have not done so in the past. * Fix indentation * Fix excessively long lines I tried to stay away from only slightly too long lines, but did not succeed completely. * Cleanup whitespace
2020-01-29Fix scrolling after rustfmt. (#351)Nathan Moreau
Co-authored-by: apiraino <apiraino@users.noreply.github.com>
2020-01-29rust format buffer now saves position across multiple frames (#348)ryanswilson59
Fix #347.
2019-12-08imenu: fn items: match async/const and all pub variants. (#346)Nathan Moreau
2019-11-23add support for "async fn"Harold Carr
Async functions do not show up. Adding this causes them to show in the imenu.
2019-11-18rust-insert-dbg: handle the case of string literals. (#342)Nathan Moreau
2019-11-08rust-dbg-wrap-or-unwrap: bind to C-c C-d rather than C-c d.Nathan Moreau
see `Key Binding Conventions' in the Emacs manual.
2019-11-03Fix rust-insert-dbg for emacs-version < 25. (#339)Nathan Moreau