[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode 6a57253 427/486: rust-dbg-wrap-or-unwrap: bind t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode 6a57253 427/486: rust-dbg-wrap-or-unwrap: bind to C-c C-d rather than C-c d. |
Date: |
Sat, 7 Aug 2021 09:26:07 -0400 (EDT) |
branch: elpa/rust-mode
commit 6a5725328a155e12fee567de03a4625e3eddac26
Author: Nathan Moreau <nathan.moreau@m4x.org>
Commit: Nathan Moreau <nathan.moreau@m4x.org>
rust-dbg-wrap-or-unwrap: bind to C-c C-d rather than C-c d.
see `Key Binding Conventions' in the Emacs manual.
---
rust-mode-tests.el | 21 +++++++++++++++++++++
rust-mode.el | 2 +-
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index 343b6c1..b234771 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -3283,3 +3283,24 @@ impl Two<'a> {
(equal "tmp<T>" (buffer-substring-no-properties (point-min)
(point-max)))))
(electric-pair-mode (or old-electric-pair-mode 1))))))
+
+(ert-deftest rust-mode-map ()
+ (with-temp-buffer
+ (let (from to match (match-count 0))
+ (rust-mode)
+ (describe-buffer-bindings (current-buffer))
+ (goto-char (point-min))
+ (re-search-forward "Major Mode Bindings")
+ (setq from (point))
+ (re-search-forward "")
+ (setq to (point))
+ (goto-char from)
+ (while (re-search-forward "^C-c.*$" to t)
+ (setq match-count (1+ match-count))
+ (setq match (match-string 0))
+ (eval
+ `(should
+ (or
+ (string-match "Prefix Command" ,match)
+ (string-match "^C-c C" ,match)))))
+ (should (< 0 match-count)))))
diff --git a/rust-mode.el b/rust-mode.el
index b381893..b839558 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1583,7 +1583,7 @@ Return the created process."
(defvar rust-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-c C-f") 'rust-format-buffer)
- (define-key map (kbd "C-c d") 'rust-dbg-wrap-or-unwrap)
+ (define-key map (kbd "C-c C-d") 'rust-dbg-wrap-or-unwrap)
map)
"Keymap for Rust major mode.")
- [nongnu] elpa/rust-mode 836a8a9 409/486: Don't set indent-tabs-mode. (#324), (continued)
- [nongnu] elpa/rust-mode 836a8a9 409/486: Don't set indent-tabs-mode. (#324), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 897af24 410/486: rust-mode.el: check for possible space between variable name and type (#325), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 74c2647 411/486: Highlight variable name in a for-loop (#326), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode bb9bbd2 413/486: readme: recommend setting indent-tabs-mode to nil, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 6dca073 414/486: readme: make other useful packages a list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 7960c74 417/486: Do not allow subword-match when detecting built-in formatting macros, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 5ad9b59 418/486: subword-match for built-in formatting macros: add a test., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 484d675 419/486: Adding GitHub actions., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode c5ab165 423/486: mention LSP support, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode a36bc70 426/486: Merge pull request #340 from brotzeit/readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 6a57253 427/486: rust-dbg-wrap-or-unwrap: bind to C-c C-d rather than C-c d.,
ELPA Syncer <=
- [nongnu] elpa/rust-mode e8345f6 440/486: Add triagebot configuration (#364), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode a364b24 445/486: Make *rustfmt* buffer readonly., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 15a077a 458/486: rustc-colon-compilation-regexps: improve highlighting., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 00177f5 461/486: compile-mode integration: add link to code references. (#391), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 5585cf9 477/486: rust-mode: Cosmetics, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 3fa8f0b 479/486: Add non-empty commentary section, slightly reword summary, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 7ff04a8 337/486: Merge pull request #234 from jjwest/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 70ff9a0 421/486: electric-pair-mode: prevent self-insert of `>' when already inserted. (#337), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 4fd637c 428/486: rust-insert-dbg: handle the case of string literals. (#342), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 844bb51 429/486: add support for "async fn", ELPA Syncer, 2021/08/07