Hi, I've recently encountered a problem which prevents me from using M-x R to start an R session under Emacs. On doing so I'm informed that...
autoload-do-load: Wrong type argument: consp, nil I'm using Emacs 25.3.1 with ESS installed from ELPA (20181003.755). I've asked on the Emacs Stackexchange ( https://emacs.stackexchange.com/q/45010/10100) and was advised to disable in turn different settings that are loaded. I've gone through this for all ESS settings (see below) but the problem persists, I then tried disabling loading the other modes I have under Emacs but again the problem persisted. Any ideas or suggestions on how to resolve this would be very much appreciated. Thanks in advance. Neil The traceback on this error is... Debugger entered--Lisp error: (wrong-type-argument consp nil) byte-code("\301\30\"\303\241\210\301\30\"\305\241\210\306\307\300\"\207" [ess-r-customize-alist assoc ess-font-lock-keywords (quote ess-R-font-lock-keywords) inferior-ess-font-lock-keywords (quote inferior-ess-r-font-lock-keywords) defalias R-customize-alist] 3) autoload-do-load((autoload "ess-r-mode" "Call 'R', the 'GNU S' system from the R Foundation.\nOptional prefix (\\[universal-argument]) allows to set command line arguments, such as\n--vsize. This should be OS agnostic.\nIf you have certain command line arguments that should always be passed\nto R, put them in the variable `inferior-R-args'.\n\nSTART-ARGS can be a string representing an argument, a list of\nsuch strings, or any other non-nil value. In the latter case, you\nwill be prompted to enter arguments interactively.\n\n(fn &optional START-ARGS)" t nil) R) command-execute(R record) execute-extended-command(nil "R" "R") funcall-interactively(execute-extended-command nil "R" "R") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) ...and my ESS settings are... ;;; ESS (require 'ess) ;;; Some generally useful key-bindings (mostly ESS specific) (define-key global-map [f1] 'Control-X-prefix) (define-key global-map [f2] 'save-buffer) (define-key global-map [f3] 'find-file) (define-key global-map [f5] 'switch-to-buffer) (define-key global-map [f6] 'other-window) (define-key global-map [f8] 'kill-buffer) (define-key global-map [f9] 'ess-load-file) ;;; Other specific ESS settings you can use are the following: (setq comint-input-ring-size 1000) (setq ess-indent-level 4) (setq ess-arg-function-offset 4) (setq ess-else-offset 4) (setq ess-eval-visibly-p nil) ;;; Set the width of the buffer automatically (defun my-ess-post-run-hook () (ess-execute-screen-options) (local-set-key "\C-cw" 'ess-execute-screen-options)) (add-hook 'ess-post-run-hook 'my-ess-post-run-hook) ;;; Auto-complete and ESS (require 'auto-complete) (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "~/.emacs.d/site-lisp/auto-complete/dict") (ac-config-default) (auto-complete-mode) (setq ess-use-auto-complete t) ;;; Smart underscore https://www.emacswiki.org/emacs/ess-smart-underscore.el (require 'ess-smart-underscore) -- *Natural selection is a mechanism for generating an exceedingly high **degree of improbability.* - R.A. Fisher *Ignorance more frequently begets confidence than does knowledge* - Charles Darwin PGP Public : https://pgp.mit.edu/pks/lookup?op=get&search=0x0E7ECE9C10D7B4A0 [[alternative HTML version deleted]] ______________________________________________ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help