From 6035ab035a0c1f12e70d9ac00ac430a1cff745bc Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Thu, 18 Mar 2021 22:50:06 +0000 Subject: [PATCH 1/9] Change inferior-ess-prompt to deal with for loops --- ess-stata-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ess-stata-mode.el b/ess-stata-mode.el index b711a93..2c3f84f 100644 --- a/ess-stata-mode.el +++ b/ess-stata-mode.el @@ -78,7 +78,7 @@ ;; --more-- is necessary here (hangs otherwise if startup stata.msg is big) (inferior-ess-primary-prompt . "[.:] \\|--more--") (inferior-ess-secondary-prompt . ">\\|--more--") - (inferior-ess-prompt . "\\([.:>] \\|--more--\\)") + (inferior-ess-prompt . "\\( *[0-9]*[.:>] \\|--more--\\)") (comint-use-prompt-regexp . t) (inferior-ess-search-list-command . "set more off\n search()\n") (ess-execute-screen-options-command . "set linesize %s\n") From 3a466e2b89172f85cd7599d6a334f7b6adba3a51 Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Thu, 1 Apr 2021 22:06:33 +0100 Subject: [PATCH 2/9] Initial version of new features texi file --- doc/newfeat.texi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/newfeat.texi diff --git a/doc/newfeat.texi b/doc/newfeat.texi new file mode 100644 index 0000000..fa7bca4 --- /dev/null +++ b/doc/newfeat.texi @@ -0,0 +1,14 @@ +Changes and New Features: +@itemize @bullet + +@item Adjust @code{inferior-ess-prompt} to account for prompt change in for-loops + +@item Call @code{goto-char} in the inferior buffer when starting Stata +(go to end of Stata buffer at start of inferior Stata process; +@code(goto-char) call was previously misplaced + +@item Correct @code{modify-syntax-entry} entry to restore //-style +comments: comments beginning ``//'' now recognized again +@end itemize + + From 19cd9d77018d19e2bdcec7af876e66684eaed79d Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Sun, 4 Apr 2021 21:17:52 +0100 Subject: [PATCH 3/9] Initialise inferior-STA-program and inferior-STA-start-args --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6302bc3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*.elc From 06f94013d780a489c97ed4d959a620e27f34a149 Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Sun, 4 Apr 2021 21:20:29 +0100 Subject: [PATCH 4/9] Initialise inferior-STA-program and inferior-STA-start-args --- ess-stata-mode.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ess-stata-mode.el b/ess-stata-mode.el index 2c3f84f..576b4f2 100644 --- a/ess-stata-mode.el +++ b/ess-stata-mode.el @@ -35,6 +35,13 @@ (require 'ess-mode) (require 'ess-stata-lang) +(defvar inferior-STA-program + "stata" + "Program name for invoking an inferior ESS with \\[Stata].") + +(defvar inferior-STA-start-args "" + "String of arguments used when starting Stata.") + (defvar STA-dialect-name "stata" "Name of 'dialect' for Stata.");easily changeable in a user's .emacs From 2024924141d545457323973397d4741d0fa54abc Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Sun, 4 Apr 2021 21:17:52 +0100 Subject: [PATCH 5/9] Create .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6302bc3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*.elc From 491e21ed6c71093a7396188b8fd21f4bcf257756 Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Sun, 4 Apr 2021 21:20:29 +0100 Subject: [PATCH 6/9] Initialise inferior-STA-program and inferior-STA-start-args --- ess-stata-mode.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ess-stata-mode.el b/ess-stata-mode.el index 2c3f84f..576b4f2 100644 --- a/ess-stata-mode.el +++ b/ess-stata-mode.el @@ -35,6 +35,13 @@ (require 'ess-mode) (require 'ess-stata-lang) +(defvar inferior-STA-program + "stata" + "Program name for invoking an inferior ESS with \\[Stata].") + +(defvar inferior-STA-start-args "" + "String of arguments used when starting Stata.") + (defvar STA-dialect-name "stata" "Name of 'dialect' for Stata.");easily changeable in a user's .emacs From 513e1036484b09a493271baa0e06a13396707b3c Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Sun, 4 Apr 2021 21:20:29 +0100 Subject: [PATCH 7/9] Corrected typo in newfeat.texi --- doc/newfeat.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/newfeat.texi b/doc/newfeat.texi index fa7bca4..ffdaf51 100644 --- a/doc/newfeat.texi +++ b/doc/newfeat.texi @@ -5,7 +5,7 @@ Changes and New Features: @item Call @code{goto-char} in the inferior buffer when starting Stata (go to end of Stata buffer at start of inferior Stata process; -@code(goto-char) call was previously misplaced +@code{goto-char} call was previously misplaced @item Correct @code{modify-syntax-entry} entry to restore //-style comments: comments beginning ``//'' now recognized again From cb233247a0c6337b19a63605fedd936368c0e22b Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Sun, 11 Apr 2021 20:40:29 +0100 Subject: [PATCH 8/9] Removed ess-synchronize-dirs from ess-idle-timer-functions --- ess-stata-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ess-stata-mode.el b/ess-stata-mode.el index 576b4f2..0137fef 100644 --- a/ess-stata-mode.el +++ b/ess-stata-mode.el @@ -117,7 +117,8 @@ (setq-local paragraph-ignore-fill-prefix t) (setq-local paragraph-separate (concat "[ \t\f]*$\\|" page-delimiter)) (setq-local paragraph-start (concat "[ \t\f]*$\\|" page-delimiter)) - (setq font-lock-defaults '(ess-STA-mode-font-lock-defaults nil nil ((?\. . "w"))))) + (setq font-lock-defaults '(ess-STA-mode-font-lock-defaults nil nil ((?\. . "w")))) + (remove-hook 'ess-idle-timer-functions 'ess-synchronize-dirs 'local)) (defalias 'STA-mode 'ess-stata-mode) (defalias 'stata-mode 'ess-stata-mode) From 4e284354d3911195bebc3146bd3cca405d7a2072 Mon Sep 17 00:00:00 2001 From: BrendanHalpin Date: Tue, 13 Apr 2021 22:49:24 +0100 Subject: [PATCH 9/9] Set ess-eval-visibly to nil in ess-stata-mode --- ess-stata-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/ess-stata-mode.el b/ess-stata-mode.el index 0137fef..5b7cdca 100644 --- a/ess-stata-mode.el +++ b/ess-stata-mode.el @@ -106,6 +106,7 @@ "Major mode for editing Stata source." :group 'ess-Stata (ess-setq-vars-local STA-customize-alist) + (setq-local ess-eval-visibly nil) (setq-local comint-use-prompt-regexp t) (setq-local comment-column 40) (setq-local comment-end " */")