Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features file #8

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*~
*.elc
14 changes: 14 additions & 0 deletions doc/newfeat.texi
Original file line number Diff line number Diff line change
@@ -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


11 changes: 10 additions & 1 deletion ess-stata-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -99,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 " */")
Expand All @@ -110,7 +118,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)
Expand Down