[ESS] Problems after Debian update

Vitalie Spinu spinuvit at gmail.com
Fri May 4 21:37:41 CEST 2012


Yes your are right, it's a chicken and egg thing. I am pretty sure
correcting the prompt regexp should solve it. Put this into your .emacs:

(setq STA-customize-alist
  '((ess-local-customize-alist     . 'STA-customize-alist)
    (ess-language                  . "STA")
    (ess-dialect                   . STA-dialect-name)
    (ess-suffix                    . "ado")
    (ess-mode-editing-alist        . STA-editing-alist)
    (ess-mode-syntax-table         . STA-syntax-table)
    (ess-mode-edit                 . 'STA-mode)
    (ess-help-sec-regex            . ess-help-STA-sec-regex)
    (ess-help-sec-keys-alist       . ess-help-STA-sec-keys-alist)
    (ess-loop-timeout              . 500000 )
    (ess-object-name-db-file       . "ess-sta-namedb.el" )
    (inferior-ess-font-lock-keywords . ess-STA-mode-font-lock-keywords)
    (inferior-ess-program          . inferior-STA-program-name)
    (inferior-ess-objects-command  . "description\n")
    (inferior-ess-help-command     . "set more off\n help %s\n")
    (inferior-ess-exit-command     . "exit\n")
    (inferior-ess-primary-prompt   . "^\\. ") 
    (inferior-ess-secondary-prompt . "^\\. ") 
    (comint-use-prompt-regexp      . t)
    (inferior-ess-start-file       . nil)
    (inferior-ess-start-args       . ""))
)

If it works, I will commit this change immediately.

>>>> brendan.halpin at ul.ie (Brendan Halpin)
>>>> on Fri, 04 May 2012 20:09:23 +0100 wrote:

  > On Fri, May 04 2012, Vitalie Spinu wrote:
  >> If it's a literal dot why ess-sta-d.el sets it to 
  >> 
  >> (inferior-ess-primary-prompt   . "^.") 

  > I'll try changing the original code later.

  >> ?
  >> 
  >> Try
  >> 
  >> (add-hook 'ess-post-run-hook
  >> (lambda () (when (equal ess-language "STA")
  >> (inferior-ess-primary-prompt   . "^\\. ") 
  >> (inferior-ess-secondary-prompt . "^\\. "))))

  > This doesn't work, I think because the hook is run a couple of lines
  > after ess-wait-for-process in ess-inf.el. 

  > Brendan



More information about the ESS-help mailing list