[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scad-mode 53aba7b6e9 09/47: Fix and simplify completion-at
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scad-mode 53aba7b6e9 09/47: Fix and simplify completion-at-point-function |
Date: |
Sat, 12 Nov 2022 13:59:34 -0500 (EST) |
branch: elpa/scad-mode
commit 53aba7b6e96be30a0b9f4783b5c688e71c7962b8
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Fix and simplify completion-at-point-function
- Use when-let
- 'no must be a symbol
---
scad-mode.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/scad-mode.el b/scad-mode.el
index 47ec18649c..364ed3c422 100644
--- a/scad-mode.el
+++ b/scad-mode.el
@@ -224,11 +224,10 @@ Key bindings:
(defun scad-completion-at-point ()
"Completion at point function."
- (let ((bounds (bounds-of-thing-at-point 'word)))
- (when bounds
- (list (car bounds) (cdr bounds)
- scad-completions
- :exclusive "no"))))
+ (when-let (bounds (bounds-of-thing-at-point 'word))
+ (list (car bounds) (cdr bounds)
+ scad-completions
+ :exclusive 'no)))
(defun scad-open-current-buffer ()
"Open current buffer with `scad-command'."
- [nongnu] elpa/scad-mode 4d92026a1a 07/47: Introduce explicit customization group and linting, (continued)
- [nongnu] elpa/scad-mode 4d92026a1a 07/47: Introduce explicit customization group and linting, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 5dde5cacbf 08/47: Remove scad-prime-dabbrev hack, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode ddd1a64991 11/47: Whitespace, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode f18fb5082d 13/47: Update package header and commentary, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 0cb891b232 18/47: Update commentary, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode b038c79b40 19/47: Rebind keys to support tab completion, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 4bf29ec9b1 20/47: Add preview, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 9c9bb9b5aa 01/47: Initial commit, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode fece897e58 04/47: Delete trailing whitespace, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 25f94cc800 03/47: Require Emacs 26, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 53aba7b6e9 09/47: Fix and simplify completion-at-point-function,
ELPA Syncer <=
- [nongnu] elpa/scad-mode 358573e7aa 12/47: Add basic README, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode fff66878d5 17/47: Cleanup hook handling, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode c09d8f97e8 21/47: Automatic refresh can be disabled, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode d39d19f64f 24/47: Save before opening/exporting, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 56a3af8661 37/47: Update keywords, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 710cf2b7ce 45/47: Rename preview output buffer, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 3609ca3ee1 29/47: Use setq-local, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 30e523aa68 05/47: Don't mention Marmalade, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 012e753485 14/47: README: Fix language keyword, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 230302d875 22/47: Update authors, ELPA Syncer, 2022/11/12