Re: Saving some kitten, plus some questions along the way

2024-06-15 Thread Ihor Radchenko
Ihor Radchenko writes: > Stefan Monnier writes: > >> OK, changed it to `with-current-buffer`. >> >> I pushed the resulting patch (along with three other patches resulting >> from running the tests) to `scratch/org` on `elpa.git`. >> >> You can also find them attached, > > Thanks! > >> Subject: [

Re: Saving some kitten, plus some questions along the way

2024-05-21 Thread Max Nikulin
On 20/05/2024 04:24, Stefan Monnier wrote: Subject: [PATCH 3/4] testing/org-test.el (): Remove dead code (featurep 'org) is always non-nil here since we have a (require 'org) further up. I suspect other `require`s nearby could be removed or moved to toplevel. Just a guess. Perhaps earlier the

Re: Saving some kitten, plus some questions along the way

2024-05-20 Thread Ihor Radchenko
Stefan Monnier writes: > OK, changed it to `with-current-buffer`. > > I pushed the resulting patch (along with three other patches resulting > from running the tests) to `scratch/org` on `elpa.git`. > > You can also find them attached, Thanks! > Subject: [PATCH 1/4] (org-*-in-calendar): Prefer

Re: Saving some kitten, plus some questions along the way

2024-05-19 Thread Stefan Monnier
>> I understand it's important in general, but the question is for this >> specific use of `org-funcall-in-calendar` where all we do (apparently) >> is to set `cursor-type` which shouldn't require any change to the >> overlay (nor does it require to `select-window`), or should it? > No, it should n

Re: Saving some kitten, plus some questions along the way

2024-05-19 Thread Ihor Radchenko
Stefan Monnier writes: >>> - (org-eval-in-calendar '(setq cursor-type nil) t) >>> + ;; FIXME: Could we use `with-current-buffer' or do we really >>> + ;; need the `move-overlay' that's in `org-funcall-in-calendar'? >>> + (org-funcall-in-calendar (lambda () (setq cursor-typ

Re: Saving some kitten, plus some questions along the way

2024-05-19 Thread Stefan Monnier
>> -(org-eval-in-calendar '(setq cursor-type nil) t) >> +;; FIXME: Could we use `with-current-buffer' or do we really >> +;; need the `move-overlay' that's in `org-funcall-in-calendar'? >> +(org-funcall-in-calendar (lambda () (setq cursor-type nil)) t) > > `move-over

Re: Saving some kitten, plus some questions along the way

2024-05-19 Thread Ihor Radchenko
Stefan Monnier writes: > The patch below replaces a use of `eval` with `apply`, but along the way > I wondered about some of the details of `org-eval-in-calendar` (see the > FIXMEs), the most important of them being: why doesn't it use > `with-selected-window`? Thanks! I do not see any clear rea

Saving some kitten, plus some questions along the way

2024-05-18 Thread Stefan Monnier
The patch below replaces a use of `eval` with `apply`, but along the way I wondered about some of the details of `org-eval-in-calendar` (see the FIXMEs), the most important of them being: why doesn't it use `with-selected-window`? Assuming the change from `eval` to `apply` is OK, I'll upgrade my p