[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’
- Re: Async Python src block behavior with :dir header property, Nasser Alkmim, 2024/02/01
- Re: Async Python src block behavior with :dir header property, Ihor Radchenko, 2024/02/01
- Re: Async Python src block behavior with :dir header property, Jack Kamm, 2024/02/02
- Re: Async Python src block behavior with :dir header property, Ihor Radchenko, 2024/02/03
- Re: Async Python src block behavior with :dir header property, Jack Kamm, 2024/02/03
- Re: Async Python src block behavior with :dir header property, Ihor Radchenko, 2024/02/04
- Re: Async Python src block behavior with :dir header property, Jack Kamm, 2024/02/04
- Re: Async Python src block behavior with :dir header property, Ihor Radchenko, 2024/02/05
- Re: Async Python src block behavior with :dir header property, Jack Kamm, 2024/02/06
- Re: Async Python src block behavior with :dir header property, Ihor Radchenko, 2024/02/06
- Re: Async Python src block behavior with :dir header property,
Jack Kamm <=
- Re: Async Python src block behavior with :dir header property, Ihor Radchenko, 2024/02/08
- Re: Async Python src block behavior with :dir header property, Bruno Barbier, 2024/02/08
- Re: Async Python src block behavior with :dir header property, Jack Kamm, 2024/02/10
- Re: Async Python src block behavior with :dir header property, Ihor Radchenko, 2024/02/10
- Re: Async Python src block behavior with :dir header property, Nasser Alkmim, 2024/02/13
- Re: Async Python src block behavior with :dir header property, Ihor Radchenko, 2024/02/13