File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -3283,3 +3283,24 @@ impl Two<'a> {
3283
3283
(equal " tmp<T>" (buffer-substring-no-properties (point-min )
3284
3284
(point-max )))))
3285
3285
(electric-pair-mode (or old-electric-pair-mode 1 ))))))
3286
+
3287
+ (ert-deftest rust-mode-map ()
3288
+ (with-temp-buffer
3289
+ (let (from to match (match-count 0 ))
3290
+ (rust-mode )
3291
+ (describe-buffer-bindings (current-buffer ))
3292
+ (goto-char (point-min ))
3293
+ (re-search-forward " Major Mode Bindings" )
3294
+ (setq from (point ))
3295
+ (re-search-forward " " )
3296
+ (setq to (point ))
3297
+ (goto-char from)
3298
+ (while (re-search-forward " ^C-c.*$" to t )
3299
+ (setq match-count (1+ match-count))
3300
+ (setq match (match-string 0 ))
3301
+ (eval
3302
+ `(should
3303
+ (or
3304
+ (string-match " Prefix Command" , match )
3305
+ (string-match " ^C-c C" , match )))))
3306
+ (should (< 0 match-count)))))
Original file line number Diff line number Diff line change @@ -1583,7 +1583,7 @@ Return the created process."
1583
1583
(defvar rust-mode-map
1584
1584
(let ((map (make-sparse-keymap )))
1585
1585
(define-key map (kbd " C-c C-f" ) 'rust-format-buffer )
1586
- (define-key map (kbd " C-c d" ) 'rust-dbg-wrap-or-unwrap )
1586
+ (define-key map (kbd " C-c C- d" ) 'rust-dbg-wrap-or-unwrap )
1587
1587
map)
1588
1588
" Keymap for Rust major mode." )
1589
1589
You can’t perform that action at this time.
0 commit comments