[ESS] eldoc in Rmd files
Vitalie Spinu
@pinuvit @ending from gm@il@com
Sun Nov 11 12:53:51 CET 2018
You have an outdated polymode
polymode$ git show 0340f5e7e55235832e
commit 0340f5e7e55235832e59673f027cc79a23cbdcd6
Author: Vitalie Spinu <spinuvit using gmail.com>
Date: Tue Mar 7 12:22:42 2017 +0100
Polymode has been rewritten and R functionality lives in a separate
package. Just install `poly-R` from melpa and remove *all* old polymode
configuration from your .emacs.
Vitalie
>> On Sat, Nov 10 2018 10:54, Leha, Andreas via ESS-help wrote:
> Hi all,
> I recently upgraded both emacs and ess. One of those broke eldoc
> functionality in Rmd files, which worked fine previously.
> I can reproduce with `emacs -Q`.
> To reproduce this, use this test.Rmd file:
> ---
> title: Test
> ---
> ```{r testblock, include = FALSE}
> rnorm
> ```
> - move the point to the source block
> - type C-c C-v to update the references
> - type the opening '(' after 'rnorm'
> Now, I would expect the eldoc message in the echo buffer, as it appears
> in ordinary R files.
> This is a major limitation for my workflow. Can I fix that somehow?
> Thanks in advance!
> Regards,
> Andreas
> PS:
> Here is my setup:
> - linux (debian buster)
> - Emacs 26.1.50
> - ess-version: 18.10.2
> - polymode (0340f5e7e55235832e59673f027cc79a23cbdcd6)
> - markdown-mode, version 2.4-dev
> PPS:
> And here is my minimal init.el:
> ;; ess
> (add-to-list 'load-path "~/local/emacs/ess/lisp")
> ;;(load "~/local/emacs/ess/lisp/ess-site.el")
> (require 'ess-site)
> ;; markdown mode
> (setq load-path
> (append '("~/local/emacs/markdown-mode/")
> load-path))
> (autoload 'markdown-mode "markdown-mode"
> "Major mode for editing Markdown files" t)
> ;;(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
> (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
> (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
> ;; polymode
> (setq load-path
> (append '("~/local/emacs/polymode/"
> "~/local/emacs/polymode/modes")
> load-path))
> (require 'poly-R)
> (require 'poly-markdown)
> ;;; R modes
> (add-to-list 'auto-mode-alist '("\\.Snw" . poly-noweb+r-mode))
> (add-to-list 'auto-mode-alist '("\\.Rnw" . poly-noweb+r-mode))
> (add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown+r-mode))
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list