[ESS] eldoc in Rmd files

Leha, Andreas @ndre@@@leh@ @ending from med@uni-goettingen@de
Mon Nov 12 08:38:28 CET 2018


Dear Vitalie,

yes, indeed.  Thanks a lot!  I had a merge conflict in my git checkout
of polymode which went unnoticed (for quite some time...).

el-doc works fine again also in my Rmd files.

Best,
Andreas



On 11/11/18 12:53, Vitalie Spinu wrote:
> 
> 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

-- 
Dr. Andreas Leha
Head of the 'Core Facility
Medical Biometry and Statistical Bioinformatics'

UNIVERSITY MEDICAL CENTER GÖTTINGEN
GEORG-AUGUST-UNIVERSITÄT
Department of Medical Statistics
Humboldtallee 32
37073 Göttingen
Mailing Address: 37099 Göttingen, Germany
Fax: +49 (0) 551 39-4995
Tel: +49 (0) 551 39-4987
http://www.ams.med.uni-goettingen.de/service-de.shtml


More information about the ESS-help mailing list