[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 5c1c928490 132/153: Make completion case insens
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 5c1c928490 132/153: Make completion case insensitive |
Date: |
Sat, 29 Jan 2022 08:02:26 -0500 (EST) |
branch: elpa/forth-mode
commit 5c1c9284908c555899e0ed1e9a957859ec2ef31d
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Helmut Eller <eller.helmut@gmail.com>
Make completion case insensitive
* forth-mode.el (forth-expand-symbol): Bind completion-ignore-case.
---
forth-mode.el | 7 ++++++-
test/tests.el | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/forth-mode.el b/forth-mode.el
index 11e02e18ab..f672cf76ae 100644
--- a/forth-mode.el
+++ b/forth-mode.el
@@ -83,7 +83,12 @@
(when (listp (rest index))
(dolist (def (rest index))
(push (car def) list)))))
- (list (forth-symbol-start) (forth-symbol-end) list)))
+ (list (forth-symbol-start) (forth-symbol-end)
+ ;; FIXME: this should use `completion-table-case-fold' or
+ ;; closures but neither is available in Emacs23.
+ `(lambda (string pred action)
+ (let ((completion-ignore-case t))
+ (complete-with-action action ',list string pred))))))
(defun forth-block-with-newlines-p ()
(save-excursion
diff --git a/test/tests.el b/test/tests.el
index 28f23f2555..0b747201e7 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -345,6 +345,6 @@ The whitespace before and including \"|\" on each line is
removed."
(ert-deftest forth-completion-at-point ()
(forth-with-forth
(forth-should-before/after
- "2C→"
+ "2c→"
"2Constant→"
#'completion-at-point)))
- [nongnu] elpa/forth-mode 66f7a2dc97 060/153: Add tests for various Forth block and non-block files., (continued)
- [nongnu] elpa/forth-mode 66f7a2dc97 060/153: Add tests for various Forth block and non-block files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 3fa933d556 123/153: Test comment-region, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 17e58ab993 102/153: Test with Emacs snapshot., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 885407ebc5 047/153: Automated build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9f9b5cdf86 089/153: Don't send output as input, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2e65a80a3b 110/153: Fontify buffer before testing word movement commands., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode f44fa6481f 152/153: Forth 200x core.html is no longer there., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5502816e37 134/153: Make it easier to emulate Open Firmware indentation style, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5076a08abc 057/153: Make C-c C-k work in all Forth modes., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 7cbb60f1d7 143/153: Highlight +field and friends, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5c1c928490 132/153: Make completion case insensitive,
ELPA Syncer <=
- [nongnu] elpa/forth-mode 37da497572 144/153: Switch back from interaction mode to source buffer., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 05e8a02796 139/153: Highlight LEAVE, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 1f922f41f4 138/153: Declare forth-smie-basic-indent as safe local-variable., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 74c0e17c45 122/153: Improve beginning-of-defun, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b40ffb3127 078/153: Fix building with Emacs 23., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 1d85344467 113/153: Add commands to browse description in Forth standards, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode c5e63e29f1 072/153: Basic indentation of control structures, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 0d22cedbaf 133/153: Improve indentation of BEGIN-STRUCTURE/END-STRUCTURE, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 47f33ea62a 063/153: Move interaction functions to forth-interactive-mode., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6fac263222 068/153: Automatic build with Wercker., ELPA Syncer, 2022/01/29