r - Emacs auto-complete for ESS in tooltip instead of buffer -
i understand following resources:
- http://www.emacswiki.org/emacs/essauto-complete
- http://www.emacswiki.org/emacs/autocomplete
- emacs autocomplete-mode extension ess , r
- is possible code completion r in emacs ess similar available in rstudio?
...that should have access tooltips auto-complete in emacs when using ess r development. last link additionally specifies should work out of box latest ess, and:
from version 12.03 ess integrates out of box auto-complete package.
three sources ‘ac-source-r-args’, ‘ac-source-r-objects’ , ‘ac-source-r’ included in ess distribution. latest combines previous 2 , makes them play nicely together.
i know in general, emacs tooltips possible because appear correctly python jedi setup in emacs.
however, emacs auto-complete not work. instead, there buffer @ bottom:
instead of this, superimposed on working buffer:
and have following in init.el:
(require 'auto-complete) (setq ess-use-auto-complete t) (ess-toggle-underscore nil)
i have following versions of:
ess 20131207.1141 installed no description available. ess-r-data-view 20130509.458 installed data viewer gnu r ess-r-object-popup 20130302.336 installed popup description of r object auto-complete 20140208.653 installed auto completion gnu emacs
what missing?
update 1
here's init ess stuff. produces completions in buffer, not in tooltip, configuration options manual have been added. (i have tried permutations of commenting , not commenting of these):
(require 'auto-complete) (global-auto-complete-mode) (require 'auto-complete-config) (ac-config-default) (require 'ess-site) (setq ess-use-auto-complete t) (setq ac-auto-start 2) (setq ac-auto-show-menu 0.2) (ess-toggle-underscore nil)
update 2
similar question here, same solution suggested did not result in tooltips on setup. suggests me might platform issue? poster there on ubuntu 12.04 am---is possible solutions worked vitoshka, alex vorobiev, , iqbal ansari on different platform? guys using os x?
update 3
maybe other diagnostics:
ac-source-r variable defined in `ess-r-d.el'. value ((prefix . ess-ac-start) (candidates . ess-ac-candidates) (document . ess-ac-help)) documentation: combined ad-completion source r function arguments , r objects ac-source-r-objects variable defined in `ess-r-d.el'. value ((prefix . ess-symbol-start) (candidates . ess-ac-objects) (document . ess-ac-help-object)) documentation: auto-completion source r objects ac-source-r-args variable defined in `ess-r-d.el'. value ((prefix . ess-ac-start-args) (candidates . ess-ac-args) (document . ess-ac-help-arg)) documentation: auto-completion source r function arguments [back]
where variables ess-ac[tab]
only...
click <mouse-2> on completion select it. in buffer, type ret select completion near point. possible completions are: ess-ac-r-argument-suffix ess-ac-sources
so maybe problem ess install lacking ess-ac-*
things defined above, ess-ac-args
, etc?
my auto-complete configuration has
(require 'auto-complete-config) (ac-config-default)
and after setting ess-use-auto-complete
makes ess show popup menus.
Comments
Post a Comment