Re: Unable to unfold a folded block having point directly after the folded block

2023-07-20 Thread Vlastimil Vondra
Perfect, org-reveal is working as well, haven't known about that! But it
would be good that org-reveal is called automatically before org-cycle,
because when going through the task list, I'm just expanding by tab. It is
not really convenient to use tab and when reaching error (or no unfold)
then hitting C-c C-r. Maybe it's just me.

Anyway thanks for letting me know.

BR,
Vlastimil

On Thu, 20 Jul 2023 at 11:20, Ihor Radchenko  wrote:

> [ Adding Org mailing list back to CC ]
>
> Vlastimil Vondra  writes:
>
> > Sorry, I think I've sent the reply in wrong manner. I was trying to reply
> > to this conversation https://list.orgmode.org/87ty4b7ofr@gnu.org/t/
> > where Reiner wrote that he is not able to unfold tree if folded and at
> the
> > end of line. You can get there if you are on line longer then previous,
> > then up arrow and now you are not able to unfold. I've created function,
> > which will first set cursor to end-of-line by function and then calling
> > org-cycle which is then working.
>
> You are replying to a thread that is 10 years old. That problem
> discussed in the thread has been fixed in Org 9.4.4 or earlier (for
> drawers).
>
> > I'm sending video, so it is more obvious.
>
> In the video, the situation is with folded headings of different length:
>
> * asd
> alskdj
> * Headingalksjdlaskdj
> alskdj
>
> If everything is folded:
>
> * asd...
> * Headingalksjdlaskdj...
>
> Pressing C-p will yield
>
> * asd... <-- note  after ...
> * Headingalksjdlaskdj...
>
> Then,  will indeed not unfold, before the point is not actually on
> heading.
> This situation is one of the edge cases with point adjustment in Emacs.
>
> The workaround is simple - M-x org-reveal (C-c C-r).
> org-reveal generally works any time the cursor is stuck in the middle of
> invisible text.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


Re: Unable to unfold a folded block having point directly after the folded block

2023-07-20 Thread Vlastimil Vondra

Hi all,

I solved it by using "(org-end-of-line)" before "(org-cycle)"

(defun my/org-cycle ( arg)
  "adjust org-cycle"
  (interactive "P")
  (org-end-of-line)
  (org-cycle arg)
  )

I hope it could be useful to somebody.

Best regards,

Vlastimil Vondra




Re: columnview over file not working

2023-01-10 Thread Vlastimil Vondra
OK, I found out that it is not working if the file (reading_list.org) is
not opened in the buffer. If opened then it works all right.

I guess it should be working like that.

BR,
V.

On Tue, 10 Jan 2023 at 10:45, Vlastimil Vondra 
wrote:

> Hi,
> when I try to do this:
>
> #+COLUMNS: %28AUTHOR(Author) %32ITEM(Name) %TODO %TAGS(Tags)
> %CLOSED(Closed) %STARTED(Started)
>
> #+BEGIN: columnview :id "file:~/Org/reading_list.org"
>
> #+END:
>
> I'm getting wrong type argument stringp nil error. Filepath is good
> otherwise some different error is popping and columnview is working in that
> file. Do you know what can be wrong?
>
> Org mode version 9.6
> GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13
>
> Best regards,
> Vlastimil Vondra
>


columnview over file not working

2023-01-10 Thread Vlastimil Vondra
Hi,
when I try to do this:

#+COLUMNS: %28AUTHOR(Author) %32ITEM(Name) %TODO %TAGS(Tags)
%CLOSED(Closed) %STARTED(Started)

#+BEGIN: columnview :id "file:~/Org/reading_list.org"

#+END:

I'm getting wrong type argument stringp nil error. Filepath is good
otherwise some different error is popping and columnview is working in that
file. Do you know what can be wrong?

Org mode version 9.6
GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13

Best regards,
Vlastimil Vondra


Re: org-babel shell in windows not finishing command

2022-12-12 Thread Vlastimil Vondra
Hi,
after upgrading to 9.6. The output is exactly the same.

V.

On Mon, 12 Dec 2022 at 14:10, Ihor Radchenko  wrote:

> Vlastimil Vondra  writes:
>
> > Org mode version 9.5.5
> > GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13
>
> We have made a number of fixes in this area in Org 9.6.
> Please upgrade and let us know if you are still seeing the problem.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


Re: org-babel shell in windows not finishing command

2022-12-12 Thread Vlastimil Vondra
 Hi Ihor,
Org mode version 9.5.5
GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13

Best regards,
Vlastimil Vondra

On Mon, 12 Dec 2022 at 13:39, Ihor Radchenko  wrote:

> Vlastimil Vondra  writes:
>
> > I'm trying to run some shell block code (in windows they should evaluate
> in
> > cmd). But when executing org-babel block code, it seems that org-babel is
> > not finishing the last command.
>
> What is your Org version and Emacs version? (the output of
> M-x org-version and M-x emacs-version).
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


org-babel shell in windows not finishing command

2022-12-12 Thread Vlastimil Vondra
Hello,

I'm trying to run some shell block code (in windows they should evaluate in
cmd). But when executing org-babel block code, it seems that org-babel is
not finishing the last command. If I run:

#+begin_src shell :results output
  echo %cd%
  echo "hello"
#+end_src

then the output is

#+RESULTS:
: Microsoft Windows [Version 10.0.19045.2251]
: (c) Microsoft Corporation. All rights reserved.
:
: c:\Users\johndoe\Org>echo %cd%
: c:\Users\johndoe\Org
:
: c:\Users\johndoe\Org>More?

More? means cmd is expecting some additional command (creating multiline
statemens). In cmd typying either ( or ^ result in More?, but I don't know
what is causing this error in org-babel. Interestingly, if run like this:

#+begin_src shell :results output :session shell
  echo "%cd%"
  echo "hello"
#+end_src

I'm getting the right output:

#+RESULTS:
: Microsoft Windows [Version 10.0.19045.2251]
: (c) Microsoft Corporation. All rights reserved.
: echo "%cd%"
: "c:\Users\johndoe\Org"
: echo "hello"
: "hello"

But only when run for the first time, if running for second time, I'm
getting this:

#+RESULTS:
:
: cd%"
: "c:\Users\johndoe\Org"
: echo "hello"
: "hello"

Any way how to fix it either with :session shell command or without?
Best regards,
Vlastimil Vondra