[ESS] eldoc in Rmd files

Leha, Andreas @ndre@@@leh@ @ending from med@uni-goettingen@de
Sat Nov 10 11:54:54 CET 2018

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:

--8<---------------cut here---------------start------------->8---
title: Test

```{r testblock, include = FALSE}
--8<---------------cut here---------------end--------------->8---

- 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!




Here is my setup:

- linux (debian buster)

- Emacs 26.1.50

- ess-version: 18.10.2

- polymode (0340f5e7e55235832e59673f027cc79a23cbdcd6)

- markdown-mode, version 2.4-dev


And here is my minimal init.el:

--8<---------------cut here---------------start------------->8---

;; 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/")


(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/"


(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))

--8<---------------cut here---------------end--------------->8---

More information about the ESS-help mailing list