[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/yasnippet 30a1c18826 7/8: * yasnippet.el (yas-minor-mode-
From: |
Stefan Monnier |
Subject: |
[elpa] scratch/yasnippet 30a1c18826 7/8: * yasnippet.el (yas-minor-mode-map): Don't bind to `tab` |
Date: |
Wed, 28 Jun 2023 11:06:06 -0400 (EDT) |
branch: scratch/yasnippet
commit 30a1c1882686102f3f90efdd03e1f132625a4747
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* yasnippet.el (yas-minor-mode-map): Don't bind to `tab`
---
yasnippet.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/yasnippet.el b/yasnippet.el
index 4a6e716c49..a31be6f9b1 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -644,7 +644,12 @@ expanded.")
(defvar yas-minor-mode-map
(let ((map (make-sparse-keymap)))
- (define-key map [(tab)] yas-maybe-expand)
+ ;; Modes should always bind to TAB instead of `tab', so as not to override
+ ;; bindings that should take higher precedence but which bind to `TAB`
+ ;; instead (relying on `function-key-map` to remap `tab` to TAB).
+ ;; If this causes problem because of another package that binds to `tab`,
+ ;; complain to that other package!
+ ;;(define-key map [(tab)] yas-maybe-expand)
(define-key map (kbd "TAB") yas-maybe-expand)
(define-key map "\C-c&\C-s" 'yas-insert-snippet)
(define-key map "\C-c&\C-n" 'yas-new-snippet)
- [elpa] branch scratch/yasnippet created (now b1c2baf4f6), Stefan Monnier, 2023/06/28
- [elpa] scratch/yasnippet c0aec2e779 1/8: * .gitignore: Add patterns for ELPA-generated files, Stefan Monnier, 2023/06/28
- [elpa] scratch/yasnippet 64bb554272 3/8: * yasnippet-tests.el: Minor cosmetic changes, Stefan Monnier, 2023/06/28
- [elpa] scratch/yasnippet 9c52efc14a 6/8: * yasnippet-debug.el: Use `advice-add` i.s.o `defadvice`., Stefan Monnier, 2023/06/28
- [elpa] scratch/yasnippet 50a54c0775 2/8: * doc/yas-doc-helper.el: Use `cl-lib` and `lexical-binding`, Stefan Monnier, 2023/06/28
- [elpa] scratch/yasnippet 714a9dca04 5/8: * yasnippet.el: Use `add-function` and remove left-over debug code, Stefan Monnier, 2023/06/28
- [elpa] scratch/yasnippet b1c2baf4f6 8/8: * yasnippet.el: Cosmetic changes, Stefan Monnier, 2023/06/28
- [elpa] scratch/yasnippet 30a1c18826 7/8: * yasnippet.el (yas-minor-mode-map): Don't bind to `tab`,
Stefan Monnier <=
- [elpa] scratch/yasnippet a0bbbc6eb5 4/8: * yasnippet.el: Use `lexical-binding`, Stefan Monnier, 2023/06/28