emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Async Python src block behavior with :dir header property


From: Jack Kamm
Subject: Re: Async Python src block behavior with :dir header property
Date: Wed, 07 Feb 2024 19:08:51 -0800

Ihor Radchenko <yantar92@posteo.net> writes:

> +(defun org-babel-session-buffer (&optional info)
> +  "Return buffer name for session associated with current code block.
> +Return nil when no such live buffer with process exists.
> +When INFO is non-nil, it should be a list returned by
> +`org-babel-get-src-block-info'.
> +This function uses org-babel-session-buffer:<lang> function to
> +retrieve backend-specific session buffer name."
> +  (when-let* ((info (or info (org-babel-get-src-block-info 'no-eval)))
> +              (lang (nth 0 info))
> +              (session (cdr (assq :session (nth 2 info))))
> +              (cmd (intern (concat "org-babel-session-buffer:" lang)))
> +              buffer-name)

On executing any python session block I am getting the following error
which I think is caused by the above:

  Debugger entered--Lisp error: (void-variable buffer-name)

Also, make shows a byte-compiler warning about this:

  Compiling 
/home/jack/src/org-mode/2024-01-async-file-results-dir/lisp/ob-core.el...
  
  In org-babel-session-buffer:
  ob-core.el:785:15: Warning: reference to free variable ‘buffer-name’



reply via email to

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