summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineet Kumar <git@vineetk.net>2026-05-26 00:23:35 -0400
committerVineet Kumar <git@vineetk.net>2026-05-26 00:25:24 -0400
commitcb5d76b094bec8bbca84b4022cf352e78f4656a7 (patch)
tree306c3613857333ac4eb3973fdc6b1709e17cbc00
parent62336cfba249c9bdd781d0789cc041f02f2aef0b (diff)
add lexical-binding to all files to prevent dynamic binding issues
this caused my tools not be defined when actually testing in a gptel session
-rw-r--r--llm-tools-hl-test.el1
-rw-r--r--llm-tools-hl.el1
-rw-r--r--llm-tools-web.el4
-rw-r--r--llm-tools.el1
4 files changed, 5 insertions, 2 deletions
diff --git a/llm-tools-hl-test.el b/llm-tools-hl-test.el
index b849c14..d008491 100644
--- a/llm-tools-hl-test.el
+++ b/llm-tools-hl-test.el
@@ -1,3 +1,4 @@
1;; -*- lexical-binding: t; -*-
1(require 'ert) 2(require 'ert)
2(require 'llm-tools-hl) 3(require 'llm-tools-hl)
3 4
diff --git a/llm-tools-hl.el b/llm-tools-hl.el
index 49e67fb..d745953 100644
--- a/llm-tools-hl.el
+++ b/llm-tools-hl.el
@@ -1,3 +1,4 @@
1;; -*- lexical-binding: t; -*-
1(defvar llm-tools--hl-bigrams 2(defvar llm-tools--hl-bigrams
2 (list "aa" "ab" "ac" "ad" "ae" "af" "ag" "ah" "ai" "aj" "ak" "al" "am" "an" 3 (list "aa" "ab" "ac" "ad" "ae" "af" "ag" "ah" "ai" "aj" "ak" "al" "am" "an"
3 "ao" "ap" "aq" "ar" "as" "at" "au" "av" "aw" "ax" "ay" "az" "ba" "bb" 4 "ao" "ap" "aq" "ar" "as" "at" "au" "av" "aw" "ax" "ay" "az" "ba" "bb"
diff --git a/llm-tools-web.el b/llm-tools-web.el
index 7002713..cadf175 100644
--- a/llm-tools-web.el
+++ b/llm-tools-web.el
@@ -1,5 +1,5 @@
1;;; Web tools, taken from gptel-agent 1;;; Web tools, taken from gptel-agent -*- lexical-binding: t; -*-
2(defun gptel-agent--fetch-with-timeout (url url-cb tool-cb failed-msg &rest args) 2(defun llm-tools--fetch-with-timeout (url url-cb tool-cb failed-msg &rest args)
3 "Fetch URL and call URL-CB in the result buffer. 3 "Fetch URL and call URL-CB in the result buffer.
4 4
5Call TOOL-CB if there is an error or a timeout. TOOL-CB and ARGS are 5Call TOOL-CB if there is an error or a timeout. TOOL-CB and ARGS are
diff --git a/llm-tools.el b/llm-tools.el
index efb8865..051dcae 100644
--- a/llm-tools.el
+++ b/llm-tools.el
@@ -1,3 +1,4 @@
1;; -*- lexical-binding: t; -*-
1(require 'llm-tools-hl) 2(require 'llm-tools-hl)
2(require 'llm-tools-web) 3(require 'llm-tools-web)
3 4