[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/engine-mode f8540c9982 05/71: get search term through inte
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/engine-mode f8540c9982 05/71: get search term through interactive |
Date: |
Wed, 21 Dec 2022 09:58:57 -0500 (EST) |
branch: elpa/engine-mode
commit f8540c99821a0ef43796bcd49c374e4bee202257
Author: Harry Schwartz <hello@harryrschwartz.com>
Commit: Harry Schwartz <hello@harryrschwartz.com>
get search term through interactive
---
engine-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/engine-mode.el b/engine-mode.el
index 065af62421..c72be1c437 100644
--- a/engine-mode.el
+++ b/engine-mode.el
@@ -86,12 +86,13 @@
(quote ,(engine/function-name engine-name)))))
(defmacro defengine (engine-name search-engine-url &optional keybinding)
- (let ((evaled-engine-name engine-name))
- `(progn (defun ,(engine/function-name evaled-engine-name) ()
+ (let ((evaled-engine-name engine-name)
+ (search-term (gensym)))
+ `(progn (defun ,(engine/function-name evaled-engine-name) (,search-term)
,(engine/docstring evaled-engine-name)
- (interactive )
- (engine/execute-search ,search-engine-url
- (engine/get-query ,(symbol-name
evaled-engine-name))))
+ (interactive
+ (list (engine/get-query ,(symbol-name evaled-engine-name))))
+ (engine/execute-search ,search-engine-url ,search-term))
,(engine/bind-key evaled-engine-name keybinding))))
(provide 'engine-mode)
- [nongnu] branch elpa/engine-mode created (now 30a361b27f), ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode c3f2de1a8a 01/71: initial commit, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode f8540c9982 05/71: get search term through interactive,
ELPA Syncer <=
- [nongnu] elpa/engine-mode e20ec930b2 08/71: Merge pull request #2 from lgatto/master, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode da00833130 09/71: we're on MELPA! :D, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode baa5151552 32/71: Reformat README to use 80-character lines, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 9e8b10b029 27/71: Release version 1.0.0, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 9a1271b005 38/71: Update documentation to change to `C-x /` prefix, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 2ddc5ec627 20/71: Switch engine keybinding to be a keyword argument, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 615e55a806 31/71: Add GPLv3 badge to README, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 2935da0bc8 15/71: Link to @sshaw's script to import from Chrome/OSX, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 7b0872e297 23/71: Provide a hook to transform the search term, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode f7b5aadafa 47/71: Fix cl/-lib usage, ELPA Syncer, 2022/12/21