@@ -74,11 +74,14 @@ Session will be named after the LANG inferior repl."
7474 " With ARG, do not offer to save the workspace.
7575Additionally, remove sesman object."
7676 (let ((cmd (format " base::q('%s ')\n " (if arg " no" " default" )))
77- (sprocess (ess-get-process ess-current-process-name)))
77+ (sprocess (ess-get-process ess-current-process-name))
78+ (buf (process-buffer sprocess)))
7879 (when (not sprocess) (error " No ESS process running " ))
79- (sesman-remove-object 'ESS nil ( current-buffer ) arg t )
80+ (sesman-remove-object 'ESS nil buf arg t )
8081 (ess-cleanup)
81- (ess-send-string sprocess cmd)))
82+ (with-current-buffer buf
83+ (setq-local ess-r-project--info-cache nil ))
84+ (ess-send-string sprocess cmd t )))
8285
8386(cl-defgeneric ess-quit--override (arg &context (ess-dialect " julia" ))
8487 " Stop the inferior process.
@@ -122,8 +125,8 @@ Additionally, remove sesman object."
122125
123126
124127; ; ensure sesman set for script buffers
125- (add-hook 'ess-r-mode-hook #'ess--sesman-ensure-process-name )
126- (add-hook 'ess-julia-mode-hook #'ess--sesman-ensure-process-name )
128+ (add-hook 'ess-r-mode-hook #'ess--sesman-ensure-process-name 95 )
129+ (add-hook 'ess-julia-mode-hook #'ess--sesman-ensure-process-name 95 )
127130
128131; ; ensure sesman set for repl buffers
129132(advice-add #'inferior-ess--set-major-mode :after #'ess--sesman-init-repl )
0 commit comments