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: Hongyi Zhao
Subject: Re: let*: Wrong type argument: stringp, nil
Date: Wed, 29 Sep 2021 20:49:09 +0800

On Wed, Sep 29, 2021 at 8:30 PM Yuri Khan <yuri.v.khan@gmail.com> wrote:
>
> 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.

Good catch! You're absolutely right. Thanks again for your help.

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



reply via email to

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