[ESS] problems with help in the development version
Ross Boylan
ross at biostat.ucsf.edu
Thu Sep 19 21:03:44 CEST 2013
On Tue, 2013-09-17 at 20:30 -0700, Vitalie Spinu wrote:
> Sorry, cannot reproduce. Which version of ESS is this? Which version of
> R? Could you please M-x toggle-debug-on-error first?
It's back, in a session for which help had been working fine. Once
again, the error arose just after I did help.search() (for "array").
Then I typed aperm and got the error.
Here's the trace
Debugger entered--Lisp error: (wrong-number-of-arguments switch-to-buffer 3)
(switch-to-buffer buff nil (quote force))
(progn (select-window help-win) (switch-to-buffer buff nil (quote force)))
(if help-win (progn (select-window help-win) (switch-to-buffer buff nil ...)) (if ess-help-pop-to-buffer (pop-to-buffer buff) (ess-display-temp-buffer buff)))
(let ((special-display-regexps ...) (special-display-frame-alist ess-help-frame-alist) (special-display-function ...) (help-win ...)) (if help-win (progn ... ...) (if ess-help-pop-to-buffer ... ...)))
ess--switch-to-help-buffer(#<buffer *help[R](aperm)*>)
(if (ess--help-kill-bogus-buffer-maybe tbuffer) nil (ess--switch-to-help-buffer tbuffer))
(unless (ess--help-kill-bogus-buffer-maybe tbuffer) (ess--switch-to-help-buffer tbuffer))
(let* ((hb-name ...) (old-hb-p ...) (tbuffer ...)) (when (or ... current-prefix-arg ...) (ess-with-current-buffer tbuffer ... ...)) (unless (ess--help-kill-bogus-buffer-maybe tbuffer) (ess--switch-to-help-buffer tbuffer)))
(if (or (ess-ddeclient-p) (equal inferior-ess-help-filetype "chm")) (if (ess-ddeclient-p) (ess-display-help-on-object-ddeclient object) (ess-eval-linewise ...)) (let* (... ... ...) (when ... ...) (unless ... ...)))
ess-display-help-on-object("aperm")
(if (string-match "^ *\\? *\\([^:]+\\)$" help-\?-match) (ess-display-help-on-object (match-string 1 help-\?-match)) (let (...) (ess-display-help-on-object help-\?-match "%s\n")))
(if (string-match "\\?\\?\\(.+\\)" help-\?-match) (ess--display-indexed-help-page (concat help-\?-match "\n") "^\\([^ \n]+::[^ \n]+\\)[ \n]+" (format "*ess-apropos[%s](%s)*" ess-current-process-name ...) (quote appropos)) (if (string-match "^ *\\? *\\([^:]+\\)$" help-\?-match) (ess-display-help-on-object ...) (let ... ...)))
(cond (help-match (ess-display-help-on-object help-match) (process-send-string proc "\n")) (help-\?-match (if ... ... ...) (process-send-string proc "\n")) (page-match (switch-to-buffer-other-window ...) (R-transcript-mode) (process-send-string proc "\n")) (t (inferior-ess-input-sender proc string)))
(let ((help-match ...) (help-\?-match ...) (page-match ...)) (cond (help-match ... ...) (help-\?-match ... ...) (page-match ... ... ...) (t ...)))
(save-current-buffer (let (... ... ...) (cond ... ... ... ...)))
inferior-R-input-sender(#<process R> "?aperm")
comint-send-input()
inferior-ess-send-input()
call-interactively(inferior-ess-send-input nil nil)
I don't know how to look at the code that corresponds to these parts of the stack.
The session has been run > 1 day.
I tried launching a new emacs. ?aperm worked, but after I did
help.search("array") it failed as above.
>
> >>> Ross Boylan on Tue, 17 Sep 2013 13:18:02 -0700 wrote:
>
> > On Tue, 2013-09-17 at 12:27 -0700, Ross Boylan wrote:
> >> After doing
> >> help.search("memory")
> >> any effort to get help, e.g.,
> >> ?memory.size
> >> fails with "wrong number of arguments: switch-to-buffer, 3
> >>
> >> ?foo works before the help.search().
> >>
> >> Ross Boylan
> >>
> > I got the same behavior when I did
> > ?save.image
>
> > in a new run, i.e., without having asked for help.search().
> > So maybe it's the "." that's the problem. Is that a known issue?
>
> > ?lm also produced the error after the help.search() request, so it is
> > not only "." commands that are affected once the problem kicks in.
>
> > Ross
>
> > ______________________________________________
> > ESS-help at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list