On Tue, Mar 15, 2011 at 12:21 PM, ottorino
<ottorino-luca.pantani@unifi.it>wrote:

> Hi all again,
> it seems that yas interferes with the call to help pages.
> If I call from the R buffer
> ?read.table
> In the buffer contained in the new help frame I get

Error: can't find the function ".help.ESS"
>
>
It's because ESS installs .help.ESS after the post-run hook withought
waiting for the prompt (thing what I would personally consider to be almost
a bug).
To solve it change the function r-autoyas-inject-commands  to use
ess-eval-linewise instead of process-send-string:

(defun r-autoyas-inject-commands ()
  (ess-eval-linewise
   "r.autoyas.esc <- function(str) {
  str <- gsub('$', '\\\\$', str, fixed=TRUE)
  str <- gsub('`', '\\\\`', str, fixed=TRUE)
<....>
  str
  }\n"
   t nil nil t)
  )

and restart R.

I would rather decide when to invoke yassnippete with C-M tab.
> But if comment the lines which enable "(" for snippets, it seems that
> the snippets are not working anymore.
> They work if I call
> M-x r-autoyas-expand
> as suggested by Vitalie.


It might be some keyboard thing. This should be enough:

(define-key ess-mode-map (kbd "<C-M-tab>") 'r-autoyas-expand )

It might be your keyboard.

Try C-h k C-M-<tab> to see to what C-M-<tab> is assigned in your .R buffers.

Vitalie.


> Ottorino
>
>

	[[alternative HTML version deleted]]

