all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 31.0.50; shell, virtualenv
@ 2024-12-16  8:51 Andreas Röhler
  2024-12-16  9:20 ` Jean Louis
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Röhler @ 2024-12-16  8:51 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Have in init a command like that:

(defun aktivate-My-shell-virtualenv-root()
   (interactive)
   (when (boundp 'My-shell-virtualenv-root)
     (unless (string= "" My-shell-virtualenv-root)
       (dired My-shell-virtualenv-root)
       (setq default-directory My-shell-virtualenv-root)
       (shell)
       (virtualenv-activate My-shell-virtualenv-root))))

When calling this, get an error like:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
   find-file-name-handler(nil file-remote-p)
   file-remote-p(nil)
   with-connection-local-variables-1(#f(compiled-function () #<bytecode 
0x16056352af86ac49>))
   shell()
   (if (string= "" My-shell-virtualenv-root) nil (dired 
My-shell-virtualenv-root) (setq default-directory 
My-shell-virtualenv-root) (shell) (virtualenv-activate 
My-shell-virtualenv-root))
   (progn (if (string= "" My-shell-virtualenv-root) nil (dired 
My-shell-virtualenv-root) (setq default-directory 
My-shell-virtualenv-root) (shell) (virtualenv-activate 
My-shell-virtualenv-root)))
   (if (boundp 'My-shell-virtualenv-root) (progn (if (string= "" 
My-shell-virtualenv-root) nil (dired My-shell-virtualenv-root) (setq 
default-directory My-shell-virtualenv-root) (shell) (virtualenv-activate 
My-shell-virtualenv-root))))
   aktivate-My-shell-virtualenv-root()

The error goes away, when the custom-file is loaded manually before 
evaluating.

A bug?

Cheers,

Andreas

GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, 
cairo version 1.16.0) of 2024-12-11




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-16  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16  8:51 31.0.50; shell, virtualenv Andreas Röhler
2024-12-16  9:20 ` Jean Louis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.