help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: let*: Wrong type argument: stringp, nil


From: Yuri Khan
Subject: Re: let*: Wrong type argument: stringp, nil
Date: Wed, 29 Sep 2021 19:29:57 +0700

On Wed, 29 Sept 2021 at 17:29, Hongyi Zhao <hongyi.zhao@gmail.com> wrote:

>   (defun try/pyvenv-workon ()
>     (when (buffer-file-name)
>       (let* ((python-version ".python-version")
>              (project-dir (locate-dominating-file (buffer-file-name)
> python-version)))
>         (when project-dir
>           (pyvenv-workon
>             (with-temp-buffer
>               (insert-file-contents (expand-file-name python-version))

You probably wanted (expand-file-name python-version project-dir) here.

>               (car (split-string (buffer-string)))))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]