|
1 | | -;;; ess-stata-mode.el --- Stata customization |
| 1 | +;;; ess-stata-mode.el --- Stata customization -*- lexical-binding: t; -*- |
2 | 2 |
|
3 | 3 | ;; Copyright (C) 1997--1999 A. J. Rossini, Thomas Lumley |
4 | 4 | ;; Copyright (C) 1997--2004 A.J. Rossini, Richard M. Heiberger, Martin |
|
72 | 72 | (ess-loop-timeout . 500000 ) |
73 | 73 | (ess-object-name-db-file . "ess-sta-namedb.el" ) |
74 | 74 | (ess-help-web-search-command . "https://www.stata.com/search/?q=%s&restrict=&btnG=Search&client=stata&num=&output=xml_no_dtd&site=stata&ie=&oe=UTF-8&sort=&proxystylesheet=stata") |
75 | | - (ess-eval-linewise-function . #'stata-eval-linewise) |
76 | 75 | (inferior-ess-program . inferior-STA-program) |
77 | 76 | (inferior-ess-objects-command . "describe\n") |
78 | 77 | (inferior-ess-help-command . "help %s\n") ;; assumes set more off |
@@ -202,20 +201,11 @@ This function is placed in `ess-presend-filter-functions'." |
202 | 201 |
|
203 | 202 | (cl-defmethod ess-help-get-topics (proc &context (ess-dialect "stata")) |
204 | 203 | "Return a list of current STA help topics associated with process PROC." |
205 | | - (or (ess-process-get 'help-topics) |
| 204 | + (or (ess-process-get 'help-topics proc) |
206 | 205 | (progn |
207 | 206 | (ess-process-put 'help-topics (ess--STA-retrive-topics-from-search)) |
208 | 207 | (ess-process-get 'help-topics)))) |
209 | 208 |
|
210 | | -(defun stata-eval-linewise (text &optional invisibly &rest args) |
211 | | - ;; The following is required to make sure things work! |
212 | | - (let ((ess-eval-linewise-function nil) |
213 | | - ;; RAS: mindless replacement of semi-colons |
214 | | - (text (if ess-sta-delimiter-friendly |
215 | | - (ess-replace-in-string text ";" "\n") |
216 | | - text))) |
217 | | - (apply #'ess-eval-linewise text t args))) |
218 | | - |
219 | 209 | (provide 'ess-stata-mode) |
220 | 210 |
|
221 | 211 | ;;; ess-stata-mode.el ends here |
0 commit comments