diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-05-24 20:20:24 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-05-24 20:20:24 +0200 |
commit | 61980976477f4d21e7645820e466e2577c075d6b (patch) | |
tree | 7b701a5042b716bcc12b419d260b324ca20184a4 /elisp | |
parent | 41ef7b6d8fb0b74d47a258cc31c7581f6dc256fc (diff) | |
download | geiser-61980976477f4d21e7645820e466e2577c075d6b.tar.gz geiser-61980976477f4d21e7645820e466e2577c075d6b.tar.bz2 |
PLT: correct (or, at least, better) computation of module names.
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-plt.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/elisp/geiser-plt.el b/elisp/geiser-plt.el index bcfbddc..cfac8c7 100644 --- a/elisp/geiser-plt.el +++ b/elisp/geiser-plt.el @@ -105,15 +105,15 @@ This function uses `geiser-plt-init-file' if it exists." (save-excursion (goto-char (point-min)) (if (re-search-forward "^#lang " nil t) - (buffer-name) + (buffer-file-name) :f))) (defun geiser-plt-get-module (&optional module) (cond ((and (null module) (geiser-plt--explicit-module))) ((null module) (geiser-plt--implicit-module)) - ((symbolp module) (list 'quote module)) + ((symbolp module) module) ((and (stringp module) (file-name-absolute-p module)) module) - ((stringp module) (list 'quote (intern module))) + ((stringp module) (intern module)) (t nil))) (defun geiser-plt-symbol-begin (module) @@ -123,7 +123,9 @@ This function uses `geiser-plt-init-file' if it exists." ;;; External help (defun geiser-plt-external-help (symbol module) (message "Requesting help for '%s'..." symbol) - (geiser-eval--send/wait `(:eval (help ,symbol) scheme/help))) + (geiser-eval--send/wait `(:eval (help ,symbol) scheme)) + (message "%s done" (current-message)) + t) ;;; Trying to ascertain whether a buffer is mzscheme scheme: |