Re: [PATCH] ol-man.el (org-man-open): Set window point not buffer point

2022-08-10 Thread Ihor Radchenko
Tom Gillespie writes: >> (while (process-live-p process) >> (accept-process-output process))) > > When I tried this before it didn't work, but now it does, I > must have missed something. Patch updated accordingly. > > The order in which the man.el code does things is supremely > confusing,

Re: [PATCH] ol-man.el (org-man-open): Set window point not buffer point

2022-08-09 Thread Tom Gillespie
> (while (process-live-p process) > (accept-process-output process))) When I tried this before it didn't work, but now it does, I must have missed something. Patch updated accordingly. The order in which the man.el code does things is supremely confusing, but I think when accept-process-output

Re: [PATCH] ol-man.el (org-man-open): Set window point not buffer point

2022-08-09 Thread Ihor Radchenko
Tom Gillespie writes: > Hi Ihor, >Here is an updated patch. We can't use accept-process-output > because it doesn't seem to block in the way we need, or it blocks > exactly long enough for the process to finish but then continues > immediately to search instead of allowing the function that

Re: [PATCH] ol-man.el (org-man-open): Set window point not buffer point

2022-08-08 Thread Tom Gillespie
Hi Ihor, Here is an updated patch. We can't use accept-process-output because it doesn't seem to block in the way we need, or it blocks exactly long enough for the process to finish but then continues immediately to search instead of allowing the function that fills the buffer to complete.

Re: [PATCH] ol-man.el (org-man-open): Set window point not buffer point

2022-07-29 Thread Ihor Radchenko
022 23:33:22 -0700 > Subject: [PATCH] * lisp/ol-man.el (org-man-open): Set window point not buffer > point Thanks for the contribution! > When passed man:path::SEARCH org-man-open tries to use search-forward > to jump to the location of e.g. a heading. Prior to this fix it only > used sear

[PATCH] ol-man.el (org-man-open): Set window point not buffer point

2022-07-29 Thread Tom Gillespie
Here's a patch to fix the follow behavior for ol-man links so that the ::SEARCH functionality will actually work. Best! Tom From 2c3e3b994fd7b47a6e91d147d2b1f08cd97a1908 Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Thu, 28 Jul 2022 23:33:22 -0700 Subject: [PATCH] * lisp/ol-man.el (org-man