[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-gauche 56fcf56 094/119: Reorder the Scheme function
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-gauche 56fcf56 094/119: Reorder the Scheme functions |
Date: |
Sun, 1 Aug 2021 18:28:04 -0400 (EDT) |
branch: elpa/geiser-gauche
commit 56fcf5612a207f9f1b56f36fc2182980913791df
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>
Reorder the Scheme functions
---
geiser-gauche.scm | 44 +++++++++++++++++++++++---------------------
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/geiser-gauche.scm b/geiser-gauche.scm
index 8d65b09..56f73d7 100644
--- a/geiser-gauche.scm
+++ b/geiser-gauche.scm
@@ -51,7 +51,9 @@
(let ((module-repr (write-to-string module)))
(string->symbol
(substring module-repr 9 (- (string-length module-repr) 1)))))
+
+;;;; Simple command implementations
(define (geiser:macroexpand form . rest)
(with-output-to-string
@@ -83,6 +85,11 @@
(define (geiser:no-values . rest)
(values))
+
+;;; NOTE: We add the load-path at the end. Is this correct?
+(define-macro (geiser:add-to-load-path dir)
+ `(add-load-path ,dir :after))
+
;;;; Completions
@@ -102,7 +109,7 @@
(map (^x (symbol->string (module-name x)))
(all-modules))))
-;;;; Symbol documentation
+;;;; Symbol information
;;; Return the signature of SYMBOL in MODULE if there is one, SYMBOL if the
;;; symbol is bound without one, #f otherwise.
@@ -135,6 +142,20 @@
(define (geiser:symbol-documentation symbol . rest)
`(("signature" ,(format-symbol-infos (symbol-infos symbol)))))
+(define (geiser:symbol-location symbol pref-module)
+ (let* ((module (or pref-module 'user))
+ (obj (global-variable-ref module symbol #f)))
+ (or (and-let* (obj
+ ((or (is-a? obj <procedure>)
+ (is-a? obj <generic>)))
+ (sl (source-location obj))
+ (file (car sl))
+ ((string-contains file "/"))
+ ((not (string-contains file "./")))
+ (line (cadr sl)))
+ `(("file" . ,file) ("line" . ,line) ("column")))
+ '(("file") ("line") ("column")))))
+
;;;; Autodoc
@@ -206,6 +227,7 @@
process-dotted-arg-info)
(cdr sig)))
("module" ,module))))))
+
;;;; Module information
@@ -243,23 +265,3 @@
`(("file" . ,(car paths)) ("line") ("column"))
'(("file") ("line") ("column"))))))
-
-;;;; Further
-
-(define (geiser:symbol-location symbol pref-module)
- (let* ((module (or pref-module 'user))
- (obj (global-variable-ref module symbol #f)))
- (or (and-let* (obj
- ((or (is-a? obj <procedure>)
- (is-a? obj <generic>)))
- (sl (source-location obj))
- (file (car sl))
- ((string-contains file "/"))
- ((not (string-contains file "./")))
- (line (cadr sl)))
- `(("file" . ,file) ("line" . ,line) ("column")))
- '(("file") ("line") ("column")))))
-
-;;; TODO We add the load-path at the end. Is this correct?
-(define-macro (geiser:add-to-load-path dir)
- `(add-load-path ,dir :after))
- [nongnu] elpa/geiser-gauche 6dfc178 090/119: Add experimental status warning, (continued)
- [nongnu] elpa/geiser-gauche 6dfc178 090/119: Add experimental status warning, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 1e09ad7 092/119: Finish elisp stylistic improvements, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 9e7ed54 103/119: Bump version, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche ea011ac 111/119: Remove trailing whitespaces, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 19d6d41 112/119: Comment update, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 66e5143 119/119: Correct a comment typo., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 0e415bf 114/119: Sharp-quote identity function references everywhere, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 2217232 116/119: Update README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 9623869 083/119: WIP README update, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 33e3242 089/119: Add Gauche sentence to credits, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 56fcf56 094/119: Reorder the Scheme functions,
Philip Kaludercic <=
- [nongnu] elpa/geiser-gauche 74ae3f8 095/119: Add (back) page breaks, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 3b5e7f1 098/119: Add a sentence on setting the Gauche binary path, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 83dc5ef 099/119: Minor README improvement, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche d9e2836 115/119: Update README to reflect the package's addition to MELPA, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 606b184 102/119: Minor README update, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 5e7239e 107/119: Small simplification, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche e0a9a9f 109/119: Update README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche ff2aafa 113/119: Minor comment and naming improvement, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 9f3531a 088/119: Simplify autoloads, Philip Kaludercic, 2021/08/01