[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: Is it necessary to expand the tilde symbol before setting default-directory?

TSUCHIYA Masatoshi <tsuchiya@xxxxxxxxxx> writes:
> -	  (default-directory w3m-profile-directory)
> +	  (default-directory (expand-file-name w3m-profile-directory))

I think this is unnecessary.  default-directory can include ~, and in
fact normally does.  (To keep it shorter for human users, I think.)

> -      (setenv "HOME" (expand-file-name w3m-profile-directory))
> +      (setenv "HOME" default-directory)

But yes, definitely want this bit, and any similar going external.