emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-babel-execute:emacs-lisp does not allow changing window configuration from within code block [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)]
@ 2019-12-20 14:59 'Ihor Radchenko'
  2020-02-05  8:21 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: 'Ihor Radchenko' @ 2019-12-20 14:59 UTC (permalink / raw)
  To: emacs-orgmode



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Recipe:

1. emacs -Q
2. Create the following org file

#+begin_src emacs-lisp
(split-window-below)
#+end_src

3. Execute the source block

Observed behaviour:

The block returns, but the window is not splitted

Expected behaviour:

The window is splitted

The reason of the observed behaviour is that
org-babel-execute:emacs-lisp wraps the code block evaluation into
save-window-excursion. Thus window manipulation is impossible from
within babel blocks.

The real case scenario when one would need to change window layout from
within babel block is a window setup for a project development.
If certain project requires working with specific window configuration,
this can be defined by adding all the setup into a babel block somewhere
in the project. Then, the layout could be applied just by hitting C-c
C-c on the code block once one need to work on the project. However, it
is not possible with the current org-babel-execute:emacs-lisp
implementation.

Best regards,
Ihor

Emacs  : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0)
 of 2019-12-17
Package: Org mode version 9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)
-- 
Ihor Radchenko,
PhD,
Center for Advancing Materials Performance from the Nanoscale (CAMP-nano)
State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China
Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg

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

* Re: Bug: org-babel-execute:emacs-lisp does not allow changing window configuration from within code block [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)]
  2019-12-20 14:59 Bug: org-babel-execute:emacs-lisp does not allow changing window configuration from within code block [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)] 'Ihor Radchenko'
@ 2020-02-05  8:21 ` Bastien
  2020-04-08  5:30   ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2020-02-05  8:21 UTC (permalink / raw)
  To: 'Ihor Radchenko'; +Cc: emacs-orgmode

Hi Ihor,

this is fixed in maint now, thanks!

-- 
 Bastien

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

* Re: Bug: org-babel-execute:emacs-lisp does not allow changing window configuration from within code block [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)]
  2020-02-05  8:21 ` Bastien
@ 2020-04-08  5:30   ` Ihor Radchenko
  2020-09-07  5:38     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2020-04-08  5:30 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hi,

I still can reproduce the bug, following the recipe.

Org mode version 9.3.6 (release_9.3.6-441-gba6855 @ /home/yantar92/.emacs.d/straight/build/org/)

Best,
Ihor

Bastien <bzg@gnu.org> writes:

> Hi Ihor,
>
> this is fixed in maint now, thanks!
>
> -- 
>  Bastien

-- 
Ihor Radchenko,
PhD,
Center for Advancing Materials Performance from the Nanoscale (CAMP-nano)
State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China
Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg


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

* Re: Bug: org-babel-execute:emacs-lisp does not allow changing window configuration from within code block [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)]
  2020-04-08  5:30   ` Ihor Radchenko
@ 2020-09-07  5:38     ` Bastien
  2020-09-07 13:11       ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2020-09-07  5:38 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Hi Ihor,

sorry for the late reply.

Ihor Radchenko <yantar92@gmail.com> writes:

> I still can reproduce the bug, following the recipe.

OK, fixed in master as 81d49b5ad now.

Thanks,

-- 
 Bastien


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

* Re: Bug: org-babel-execute:emacs-lisp does not allow changing window configuration from within code block [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)]
  2020-09-07  5:38     ` Bastien
@ 2020-09-07 13:11       ` Ihor Radchenko
  0 siblings, 0 replies; 5+ messages in thread
From: Ihor Radchenko @ 2020-09-07 13:11 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

> OK, fixed in master as 81d49b5ad now.

I confirm that I cannot reproduce the bug anymore. Thanks!

Best,
Ihor


Bastien <bzg@gnu.org> writes:

> Hi Ihor,
>
> sorry for the late reply.
>
> Ihor Radchenko <yantar92@gmail.com> writes:
>
>> I still can reproduce the bug, following the recipe.
>
> OK, fixed in master as 81d49b5ad now.
>
> Thanks,
>
> -- 
>  Bastien


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

end of thread, other threads:[~2020-09-07 13:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-20 14:59 Bug: org-babel-execute:emacs-lisp does not allow changing window configuration from within code block [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)] 'Ihor Radchenko'
2020-02-05  8:21 ` Bastien
2020-04-08  5:30   ` Ihor Radchenko
2020-09-07  5:38     ` Bastien
2020-09-07 13:11       ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).