;;; essd-bugs.el -- ESS[BUGS] dialect ;; Copyright (C) 2008-2009 Rodney Sparapani ;; Original Author: Rodney Sparapani ;; Created: 13 March 2008 ;; Maintainers: ESS-help ;; This file is part of ESS ;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; ;; This file is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. ;; ;; In short: you may use this code any way you like, as long as you ;; don't charge money for it, remove this notice, or hold anyone liable ;; for its results. ;; Code: (require 'essl-bugs) (setq auto-mode-alist (delete '("\\.[bB][uU][gG]\\'" . ess-jags-mode) auto-mode-alist)) (setq auto-mode-alist (append '(("\\.[bB][uU][gG]\\'" . ess-bugs-mode)) auto-mode-alist)) (defcustom ess-bugs-batch-version "0.6" "ESS[BUGS]: Major version of BUGS, i.e. 0.6 or 0.5" :group 'ess-bugs :type 'string ) (setq ess-bugs-batch-command (if (equal ess-bugs-batch-version "0.5") "backbug5" "backbugs")) (defcustom ess-bugs-default-bins "32" "ESS[BUGS]: Number of bins for the Griddy algorithm (Metropolis sampling)." :group 'ess-bugs :type 'string ) (defcustom ess-bugs-default-checkpoint "100" "ESS[BUGS]: Make a snapshot every this many iterations." :group 'ess-bugs :type 'string ) (defvar ess-bugs-font-lock-keywords (list ;; .bug files (cons "#.*\n" font-lock-comment-face) (cons "^[ \t]*\\(model\\|const\\|data\\|inits\\|var\\)\\>" font-lock-keyword-face) (cons "\\" font-lock-keyword-face) (cons (concat "\\