Lately, it often happens that ESS hangs, and *R* minibuffer says "Text is
read-only". I just found a repoducible example.

Run this

library(data.table)
vignette("datatable-intro")

An Evince screen appears., I read the PDF a while, close that.

In the *R* buffer I see

>

(evince:12584): EvinceDocument-CRITICAL **: ev_document_get_n_pages:
assertion 'EV_IS_DOCUMENT (document)' failed

After closing the Evince window, I cannot find any way to get the Emacs/ESS
session to work again. I cannot type commands at the prompt. Nor can I run
them from the script window.

The minibuffer reports "Text is read-only".  I can't find any way to break
out.

I've had this problem occasionally for the last few months, but never
reproducible before.

Ubuntu Linux, Emacs 24.3.1 with ESS 13.09.

I wonder if my .emacs file is junked up with some ridiculous setting that
causes this? So here it is:


;; Paul Johnson 2014-03-15
;;
;; Was getting weird behavior with old, large setup file, so
;; started from scratch

(show-paren-mode t)
(cua-mode t)
(setq inhibit-splash-screen t)
(show-paren-mode t)
(global-font-lock-mode t) ; turn on syntax highlighting

;; Show file name in title bar http://www.thetechrepo.com/main-articles/549
(setq frame-title-format "%b - Emacs")

;; Remember password when connected to remote sites via Tramp
;;
http://stackoverflow.com/questions/840279/passwords-in-emacs-tramp-mode-editing
;; ssh connection constantly asks for the log in password without this
(setq password-cache-expiry nil)

;; Section : Emacs shells work better
;; http://snarfed.org/why_i_run_shells_inside_emacs
(setq ansi-color-for-comint-mode 'filter)
(setq comint-prompt-read-only t)
(setq comint-scroll-to-bottom-on-input t)
(setq comint-scroll-to-bottom-on-output t)
(setq comint-move-point-for-output t)

;; ;; ;; Section V. Customize the use of Frames. Try to make new content
;; ;; ;; appear in wholly new frames on screen.
;; ;; ;;
;; ;; ;; V.A: Discourage Emacs from splitting "frames", encourage it to pop
up new
;; ;; ;; frames for new content.
;; ;; ;; see:
http://www.gnu.org/software/emacs/elisp/html_node/Choosing-Window.html
;; (setq pop-up-frames t)
;; (setq special-display-popup-frame t)
(setq split-window-preferred-function nil) ;discourage horizontal splits

;; Section IV. ESS Emacs Statistics

;; start R in current working directory, don't let R ask user
(setq ess-ask-for-ess-directory nil)

;; ESS 13.05 default C-Ret conflicts with CUA mode rectangular selection.
;; Change shortcut to use Shift-Return
;; Suggested by Vitalie Spinu ESS-help email 2013-05-15
;; Revision suggested 2013-09-30 to co-exist with Windows Emacs
;; and the load order which has ess after user init file.
(eval-after-load "ess-mode"
 '(progn
   (define-key ess-mode-map [(control return)] nil)
   (define-key ess-mode-map [(shift return)]
'ess-eval-region-or-line-and-step))
)


;; create a new frame for each help instance
;; (setq ess-help-own-frame t)
;; If you want all help buffers to go into one frame do:
(setq ess-help-own-frame 'one)

;; I want the *R* process in its own frame
;; This was a broken feature in ESS, fixed now. Helps massively!
(setq inferior-ess-own-frame t)
;;(setq inferior-ess-same-window nil)



--
Paul E. Johnson
Professor, Political Science      Assoc. Director
1541 Lilac Lane, Room 504      Center for Research Methods
University of Kansas                 University of Kansas
http://pj.freefaculty.org               http://quant.ku.edu

	[[alternative HTML version deleted]]

