Skip to content

Commit

Permalink
support ?help buffers
Browse files Browse the repository at this point in the history
use new fancy :popup-buffer event in slime-media.
  • Loading branch information
csrhodes committed Sep 13, 2011
1 parent d050f80 commit a4e616b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BUGS.org
Expand Up @@ -28,7 +28,7 @@
* RESOLVED #8 startup is not filesystem-location independent :MINOR:FIXED:
Requires the cwd to be the swankr directory to be able to find
swank-presentations and swank-media
* OPEN #9 help and ? to produce help buffers :WISHLIST:
* RESOLVED #9 help and ? to produce help buffers :WISHLIST:FIXED:
Not like ESS, though: that works by looking at the user's input with
a regexp. Use slime-media?
* RESOLVED #10 0 or more than 1 exprs at REPL :MINOR:FIXED:
Expand Down
8 changes: 8 additions & 0 deletions swank-media.R
Expand Up @@ -41,4 +41,12 @@ makeMediaReplResult.matrix <- function(value) {
makeMediaReplResult.default(value)
}

makeMediaReplResult.help_files_with_topic <- function(value) {
output <- capture.output(tools:::Rd2txt(utils:::.getHelpFile(value),
options=list(underline_titles=FALSE)))
string <- paste(output, collapse="\n")
list(quote(`:popup-buffer`), sprintf("*slime-help(%s)*", attr(value, "topic")),
string, quote(`ess-help-mode`))
}

makeReplResultFunction <- makeMediaReplResult

0 comments on commit a4e616b

Please sign in to comment.