@@ -314,24 +314,24 @@ buffer.")
314314(defvaralias 'ess-directory-function 'ess-startup-directory-function )
315315(defcustom ess-startup-directory-function nil
316316 " Function to return the directory that ESS is run from.
317- If nil or if the function returns nil then you get `ess-startup-directory' ."
318- :group 'ess
319- :type '(choice (const nil ) function))
320-
321- (defcustom ess-setup-directory-function nil
322- " Function to setup the directory that ESS is run from.
323- This function can be called to set environment variables or to create
324- a workspace."
317+ Value of `ess-startup-directory' has precedence over this function."
325318 :group 'ess
326319 :type '(choice (const nil ) function))
327320
328321(defvaralias 'ess-directory 'ess-startup-directory )
329322(defcustom ess-startup-directory nil
330- " The directory ESS is run from. It must end in a slash.
331- Provided as a default if `ess-ask-for-ess-directory' is non-nil.
332- A nil value means use the current buffer's default directory."
323+ " The directory ESS is run from (string or a symbol).
324+ Provided a default (especially useful if
325+ `ess-ask-for-ess-directory' is non-nil). A nil value means use
326+ the value returned by `ess-startup-directory-function' . If nil,
327+ use current project directory, otherwise use to the
328+ `default-directory' .
329+
330+ When this variable is a symbol, use its value. Set this variable
331+ to `'default-directory' in order to always start in the current
332+ directory."
333333 :group 'ess
334- :type '(choice (const nil ) directory))
334+ :type '(choice (const nil ) directory symbol ))
335335
336336
337337(defcustom ess-history-directory nil
0 commit comments