@@ -175,38 +175,38 @@ This may be useful for debugging."
175175 (proc-name (with-current-buffer inf-buf ess-local-process-name))
176176 (cur-dir (inferior-ess--maybe-prompt-startup-directory proc-name temp-dialect))
177177 (default-directory cur-dir))
178- (set- buffer inf-buf)
179- (setq-local default-directory cur-dir)
180- ; ; TODO: Get rid of this, we should rely on modes to set the
181- ; ; variables they need.
182- (ess-setq-vars-local ess-customize-alist)
183- (let ((inf-args (or ess-start-args
184- inferior-ess-start-args)))
185- (inferior-ess--set-major-mode ess-dialect)
186- ; ; Show the buffer
187- ; ; TODO: Remove inferior-ess-own-frame after ESS 19.04, then just have:
188- ; ; (pop-to-buffer inf-buf)
189- (pop-to-buffer inf-buf (with-no-warnings
190- (when inferior-ess-own-frame
191- '(display-buffer-pop-up-frame ))))
192- (let ((proc (inferior-ess--start-process inf-buf proc-name inf-args)))
193- (ess-make-buffer-current)
194- (goto-char (point-max ))
195- (unless no-wait
196- (ess-write-to-dribble-buffer " (inferior-ess: waiting for process to start (before hook)\n " )
197- (ess-wait-for-process proc nil 0.01 t ))
198- (unless (and proc (eq (process-status proc) 'run ))
199- (error " Process %s failed to start " proc-name))
200- (when ess-setwd-command
201- (ess-set-working-directory cur-dir))
202- (setq-local font-lock-fontify-region-function #'inferior-ess-fontify-region )
203- (setq-local ess-sl-modtime-alist nil )
204- (run-hooks 'ess-post-run-hook )
205- ; ; User initialization can take some time ...
206- (unless no-wait
207- (ess-write-to-dribble-buffer " (inferior-ess 3): waiting for process after hook" )
208- (ess-wait-for-process proc)))
209- inf-buf))))
178+ (with-current- buffer inf-buf
179+ (setq-local default-directory cur-dir)
180+ ; ; TODO: Get rid of this, we should rely on modes to set the
181+ ; ; variables they need.
182+ (ess-setq-vars-local ess-customize-alist)
183+ (let ((inf-args (or ess-start-args
184+ inferior-ess-start-args)))
185+ (inferior-ess--set-major-mode ess-dialect)
186+ ; ; Show the buffer
187+ ; ; TODO: Remove inferior-ess-own-frame after ESS 19.04, then just have:
188+ ; ; (pop-to-buffer inf-buf)
189+ (pop-to-buffer inf-buf (with-no-warnings
190+ (when inferior-ess-own-frame
191+ '(display-buffer-pop-up-frame ))))
192+ (let ((proc (inferior-ess--start-process inf-buf proc-name inf-args)))
193+ (ess-make-buffer-current)
194+ (goto-char (point-max ))
195+ (unless no-wait
196+ (ess-write-to-dribble-buffer " (inferior-ess: waiting for process to start (before hook)\n " )
197+ (ess-wait-for-process proc nil 0.01 t ))
198+ (unless (and proc (eq (process-status proc) 'run ))
199+ (error " Process %s failed to start " proc-name))
200+ (when ess-setwd-command
201+ (ess-set-working-directory cur-dir))
202+ (setq-local font-lock-fontify-region-function #'inferior-ess-fontify-region )
203+ (setq-local ess-sl-modtime-alist nil )
204+ (run-hooks 'ess-post-run-hook )
205+ ; ; User initialization can take some time ...
206+ (unless no-wait
207+ (ess-write-to-dribble-buffer " (inferior-ess 3): waiting for process after hook" )
208+ (ess-wait-for-process proc)))
209+ inf-buf) ))))
210210
211211(defun inferior-ess--get-proc-buffer-create (name )
212212 " Get a process buffer, creating a new one if needed.
0 commit comments