[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-guile b81b23c 228/284: Support for user-defined Gui
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-guile b81b23c 228/284: Support for user-defined Guile info nodes |
Date: |
Sun, 1 Aug 2021 18:29:50 -0400 (EDT) |
branch: elpa/geiser-guile
commit b81b23ca475bd4945bfa4096418da7a13fc814bc
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
Support for user-defined Guile info nodes
In my debian machine, the info nodes for guile live in the "guile-2.0"
node, rather than plain "guile". A new customizable variable,
geiser-guile-manual-lookup-nodes, lets now specify additional names,
and we only add indexes to the info-lookup mode definition when the
node actually exists.
---
elisp/geiser-guile.el | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index da14b4e..54443b8 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -1,6 +1,6 @@
;; geiser-guile.el -- guile's implementation of the geiser protocols
-;; Copyright (C) 2009, 2010, 2011 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -109,6 +109,11 @@ effect on new REPLs. For existing ones, use the command
:type 'boolean
:group 'geiser-guile)
+(geiser-custom--defcustom geiser-guile-manual-lookup-nodes '("Guile"
"guile-2.0")
+ "List of info nodes that, when present, are used for manual lookups"
+ :type '(repeat string)
+ :group 'geiser-guile)
+
;;; REPL support:
@@ -302,14 +307,22 @@ it spawn a server thread."
;;; Manual lookup
+
+(defun geiser-guile--info-spec (&optional nodes)
+ (let* ((nrx "^[ ]+-+ [^:]+:[ ]*")
+ (drx "\\b")
+ (res (when (Info-find-file "r5rs" t) `(("(r5rs)Index" nil ,nrx
,drx)))))
+ (dolist (node (or nodes geiser-guile-manual-lookup-nodes) res)
+ (when (Info-find-file node t)
+ (mapc (lambda (idx)
+ (add-to-list 'res (list (format "(%s)%s" node idx) nil nrx
drx)))
+ '("Variable Index" "Procedure Index" "R5RS Index"))))))
+
+
(info-lookup-add-help :topic 'symbol :mode 'geiser-guile-mode
:ignore-case nil
:regexp "[^()`',\" \n]+"
- :doc-spec
- '(("(r5rs)Index" nil "^[ ]+-+ [^:]+:[ ]*"
"\\b")
- ("(Guile)R5RS Index" nil "^ - [^:]+: " "\\b")
- ("(Guile)Procedure Index" nil "^ - [^:]+: " "\\b")
- ("(Guile)Variable Index" nil "^ - [^:]+: " "\\b")))
+ :doc-spec (geiser-guile--info-spec))
(defun guile--manual-look-up (id mod)
(let ((info-lookup-other-window-flag
- [nongnu] elpa/geiser-guile 09f4994 159/284: Guile: better filtering of "anonymous" module names, (continued)
- [nongnu] elpa/geiser-guile 09f4994 159/284: Guile: better filtering of "anonymous" module names, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 0505bde 158/284: REPL: (optionally) forget old errors on new expressions, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 4766cbc 163/284: Support for evaluation warnings, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile b1db6b4 168/284: Better REPL exit command, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 7004a73 170/284: Guile: remote REPLs (connect-to-guile), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 0513d1c 177/284: Guile: using meta-commands to talk with Guile, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 7082042 195/284: Elisp support for inferior schemes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 2798902 207/284: Better module help, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 36e105f 215/284: Revert "Bug fix: don't intern symbols read by scheme reader", Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile a6dccbe 223/284: Guile: new option for loading ~/.guile (see issue #32681), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile b81b23c 228/284: Support for user-defined Guile info nodes,
Philip Kaludercic <=
- [nongnu] elpa/geiser-guile 6324b94 231/284: Configurable keyword case sensitivity, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 48e2b00 239/284: Scheme version checks, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 6cef62b 250/284: Follow suit and complete quoted symbols in all schemes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile b57f4bb 258/284: Make guile's load-file happier with ~ abrevs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 8dda28f 284/284: Version bump, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile e1e77ab 067/284: Guile: use the compiler by default to perform evaluations., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 4afe5ff 098/284: Guile: bug fix: evaluation works again (1.9.3 or better required)., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile c8d63ff 073/284: Guile: bug fix (missing module import)., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 936a20e 074/284: Fixing the mess during initialization., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 4bc26f8 086/284: kludgy fix for opt/key/rest markers in autodoc, Philip Kaludercic, 2021/08/01