[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-gauche 762cd22 035/119: Add guessing functions
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-gauche 762cd22 035/119: Add guessing functions |
Date: |
Sun, 1 Aug 2021 18:27:52 -0400 (EDT) |
branch: elpa/geiser-gauche
commit 762cd2269b556c6546c242ea5b70c0e4630219d3
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>
Add guessing functions
---
geiser-gauche.el | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/geiser-gauche.el b/geiser-gauche.el
index c4970d1..6f12cc0 100644
--- a/geiser-gauche.el
+++ b/geiser-gauche.el
@@ -248,6 +248,19 @@
(when geiser-gauche-manual-lookup-other-window-p
(switch-to-buffer-other-window "*info*"))
(search-forward (format "%s" id) nil t))
+
+
+;;; Guess whether buffer is Gauche
+;;; adapted from geiser-chicken
+
+(defconst geiser-gauche--guess-re
+ (regexp-opt '("gauche" "gosh")))
+
+(defun geiser-gauche--guess ()
+ (save-excursion
+ (goto-char (point-min))
+ (re-search-forward geiser-gauche--guess-re nil t)))
+
;;; Implementation definition:
@@ -271,7 +284,7 @@
(binding-forms geiser-gauche--binding-forms)
(binding-forms* geiser-gauche--binding-forms*)
(external-help geiser-gauche--manual-look-up)
- ;; (check-buffer geiser-gauche--guess)
+ (check-buffer geiser-gauche--guess)
(keywords geiser-gauche--keywords)
(case-sensitive geiser-gauche-case-sensitive-p))
- [nongnu] elpa/geiser-gauche f9064d8 003/119: Implement get-module and other Emacs functions, (continued)
- [nongnu] elpa/geiser-gauche f9064d8 003/119: Implement get-module and other Emacs functions, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche ca7629e 012/119: geieser-gauche fixes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 4cb8586 007/119: Fix gauche prompt regexp, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 5876bc2 018/119: Deal with dotted signatures in autodoc, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 3fee273 027/119: Get autodoc info from all modules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 98c52e6 023/119: Deal with complex key arguments, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche c9d367e 024/119: Fix complex key argument autodocs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 5c18e45 030/119: Finish autodoc and symbol signature lookup, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 752a496 031/119: Add code source reference, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 2ef21b4 044/119: Remove a TODO comment, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 762cd22 035/119: Add guessing functions,
Philip Kaludercic <=
- [nongnu] elpa/geiser-gauche fbcd9a4 050/119: Minor fix, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 2002cc0 056/119: Cleanup, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche e406a0e 051/119: Minor fixes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 8a7dc24 064/119: Semicolon aesthetic changes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 73346c2 066/119: Add unsupported procedures list, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 541ca86 060/119: Make eldoc work in the repl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche f277a44 096/119: Update README.md, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 067c227 022/119: Aesthetics, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 40f4886 065/119: Implement eval error message, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 0d2827c 093/119: Minor aesthetic improvement, Philip Kaludercic, 2021/08/01