[ESS] eldoc doesn't work in remote sessions

Li Bowen a0050726 at nus.edu.sg
Wed Sep 18 07:54:06 CEST 2013

Thank you both for reply.

The reason to use ssh.el is because I want to run R in a *screen* session,
to avoid loss of work due to connection loss and also be able to
continue working on different clients. I know tramp is much easier.

I may have a partial solution right now. It is very troublesome.

Put in init.el to be able to send key to terminal from ssh.

;; used to send screen keybindings to shell in emacs
(define-key shell-mode-map (kbd "C-l") (lambda (seq) (interactive "k") (process-send-string nil seq)))
(define-key inferior-ess-mode-map (kbd "C-l") (lambda (seq) (interactive "k") (process-send-string nil seq)))
(for new R session)From terminal ssh to host, create screen session and launch R in the screen session. C-z to send R to background. Detach from screen.
In emacs M-x ssh, next enter user at host, and password.
In ssh, enter TERM=xterm, for screen to work.
sh grabssh, save environment variables for X11 forwarding.
screen -r and run bin/fixssh to update screen environment variable for X11 forwarding. If you are in R, C-l C-z to send R to background first.
fg, to send R to foreground.
M-x ess-remote to attach the current process to ess.

(ess-process-put 'funargs-cache (make-hash-table :test 'equal))
(ess-process-put 'funargs-pre-cache nil)
The following configuration may be useful, put in init.el.

;; eldoc in echo area
(setq ess-eldoc-abbreviation-style 'normal)
(setq eldoc-echo-area-use-multiline-p t)

More details can be found at http://libw.name/wordpress/?p=49

Ali Tofigh <alix.tofigh at gmail.com> writes:

> On Tue, Sep 17, 2013 at 11:20 PM, Vitalie Spinu <spinuvit at gmail.com> wrote:
>> I don't know why people keep using the super outdated ssh.el. Just use
>> tramp which comes with emacs.
> I did the same thing. Because the ESS manual on the ESS website tells
> you to use ssh.el.
> /ali

Li Bowen.

More information about the ESS-help mailing list