From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: let*: Wrong type argument: stringp, nil Date: Wed, 29 Sep 2021 20:49:09 +0800 Message-ID: References: <87lf3lrmos.fsf@gmx.net> <87ee9csyp0.fsf@gmx.net> <87a6k0sogz.fsf@gmx.net> <87lf3gqbi7.fsf@zoho.eu> <87r1d7q4i1.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14965"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Emanuel Berg To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 29 14:49:51 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVZ1z-0003lb-2h for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 14:49:51 +0200 Original-Received: from localhost ([::1]:41624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVZ1y-0000qr-1f for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 08:49:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVZ1Z-0000qA-Pw for help-gnu-emacs@gnu.org; Wed, 29 Sep 2021 08:49:25 -0400 Original-Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]:40622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVZ1V-0004tj-Vq for help-gnu-emacs@gnu.org; Wed, 29 Sep 2021 08:49:24 -0400 Original-Received: by mail-vs1-xe2f.google.com with SMTP id l19so2783116vst.7 for ; Wed, 29 Sep 2021 05:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Pl/3npMpuyIrBBQDbKcChCYCa3+FWKpuD/x/Gas/MJs=; b=DdlAP0m76n+bKWMwQPC+vp6UUlB8kd7j0F46vUS/CxzcywZt/HiYfNuEQSvXMUQebQ WLcsKRWA05UsGUShw1nJnom51JRx+yUyehFAnFgqs2wW8U482mG4Zzyn1QzWQOCRAbHs mV9/XVLHvFgME+0WGdK1XAfNT3R1+ESKqAYVuHhTpSvZJugDhCi1UHZI/sJmebGMoS4o OEFhOdNscQt79arAlZCSzezTzMBWOTaWxLtpI36eyuzTHckcL8rGTyEzf/hxzZbugqYW MjcREWE9DMRz++hCK4eyRXC03qs76AIxiAWNgZH3BVnL9wUVXUJRHzXr4pfPlXMi0boL zOEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Pl/3npMpuyIrBBQDbKcChCYCa3+FWKpuD/x/Gas/MJs=; b=UdHIjvp4cpD/tQE9Qg9fY8gEUllPY2vCyvTfXEWUc3XIcOF57K6v0o0TSK2U3yhY7b KcbM6QYDMx/PS80hqTGa5BKEEiAxOHmEaEkQn+sM0h80et0pLvTLDa528EJH0IeuPUNv P9i61xqDhjVj/LJ7fVFopT2pcL4dJl58MZfbL6aIrTlnH+wRjGikI2pttVtjAiiFe0DY 5MLaTjz81q2G6B2mc7yuDSzFxxGBpmM7KK/7bsIfA/q+e/wpERMAI/LABGTw5O5ha6jd 7FbPWca4Qhl1stAkfjbmk0kpJHMgxaFOQDnrj04eqwt0fkRu8kBldoBYwRn8x40umNAL ipxA== X-Gm-Message-State: AOAM532ggTwr/eRO8cJg90vbmPWaK3GPJbN6Ddx7wieWZKKYVwqPpvHv a5FAZ/g/Tcp466dJXG9ZE5had6AXY2zkBA7tIiI= X-Google-Smtp-Source: ABdhPJzKO2VyMVlFwDRwPv2PuaYeUvdcbkJ9ZUhjjg1fexSuUgPuNV2MYLJ+MXBRiimR+kOClWsY3+Aq3EtU9XqTbvM= X-Received: by 2002:a05:6102:5f4:: with SMTP id w20mr10934063vsf.55.1632919761047; Wed, 29 Sep 2021 05:49:21 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e2f; envelope-from=hongyi.zhao@gmail.com; helo=mail-vs1-xe2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133391 Archived-At: On Wed, Sep 29, 2021 at 8:30 PM Yuri Khan wrote: > > On Wed, 29 Sept 2021 at 17:29, Hongyi Zhao 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)))))))))