Re: Completely hide properties drawer in 9.6

2023-01-16 Thread Ihor Radchenko
Sterling Hooten writes: > In order to both have newly added properties automatically adopt the > invisibility text-property the interior characters of the properties > box needs to be sticky. But this conflicted with being able to type > with the point before the hidden text. To satisfy both

Re: Completely hide properties drawer in 9.6

2022-12-22 Thread Sterling Hooten
So I've got a solution somewhat working but I'd like some help simplifying it. The good news is that it's significantly faster than the previous Org implementation I was using (the one you wrote on stack exchange), and can now handle folding a file with 30k lines in around .065s for hiding and

Re: Completely hide properties drawer in 9.6

2022-12-17 Thread Jean Louis
* Ihor Radchenko [2022-12-16 18:21]: > I agree that your message is on topic. Just, as I pointed, I feel like > it is a bit too broad to be useful. I may be wrong, of course. You may take it personally, but you shouldn't, as people like me, and others, may not always discuss exactly that what

Re: Completely hide properties drawer in 9.6

2022-12-16 Thread Ihor Radchenko
Jean Louis writes: > Message was on topic as it provided design directions on how to avoid > properties, without technical actual program. > > Numerous people will express numerous directions on how specific > problem may be solved. > > Take the life as it is. I agree that your message is on

Re: Completely hide properties drawer in 9.6

2022-12-16 Thread Jean Louis
Message was on topic as it provided design directions on how to avoid properties, without technical actual program. Numerous people will express numerous directions on how specific problem may be solved. Take the life as it is. I don't appreciate this kind of slap and wining about nothing! *

Re: Completely hide properties drawer in 9.6

2022-12-16 Thread Ihor Radchenko
Jean Louis writes: > * Sterling Hooten [2022-12-14 08:39]: >> I'm trying to clone Lotus notes in Org mode. > > What features do you try to implement? > > Or are you trying to import your own notes into the Org? > > Org does not have functions of sharing, while it could have, > it doesn't, it is

Re: Completely hide properties drawer in 9.6

2022-12-16 Thread Jean Louis
Hello Sterling, * Sterling Hooten [2022-12-14 08:39]: > I'm trying to clone Lotus notes in Org mode. What features do you try to implement? Or are you trying to import your own notes into the Org? Org does not have functions of sharing, while it could have, it doesn't, it is not considered

Re: Completely hide properties drawer in 9.6

2022-12-14 Thread Ihor Radchenko
Sterling Hooten writes: > (let* ((block (org-get-property-block)) > ;; Extremely hacky way to get the whole property drawer > (beg (- (car block) 14)) > (end (+ (cdr block) 5))) > (with-silent-modifications > (org-fold-region beg end t

Re: Completely hide properties drawer in 9.6

2022-12-14 Thread Sterling Hooten
I was able to get a very rough version working to fold and hide the properties drawer completely at point. #+begin_src emacs-lisp (defun swh-org-hide-properties-drawer () "Completely hide the property drawer in heading at point." (org-fold-add-folding-spec 'org-hide-property-drawer

Re: Completely hide properties drawer in 9.6

2022-12-14 Thread Ihor Radchenko
Sterling Hooten writes: >> On 2022-12-14, at 06:15, Ihor Radchenko wrote: >> >> I do have this implemented in local branch. Just did not push it >> upstream as it was rejected. > > Could you share that here so I could test it? https://github.com/yantar92/org/tree/feature/org-font-lock-element

Re: Completely hide properties drawer in 9.6

2022-12-14 Thread Sterling Hooten
> On 2022-12-14, at 06:15, Ihor Radchenko wrote: > > I do have this implemented in local branch. Just did not push it > upstream as it was rejected. Could you share that here so I could test it? > Note that Emacs 29 does not have issues with large numbers of overlays. I’m using the MacOS

Re: Completely hide properties drawer in 9.6

2022-12-14 Thread Ihor Radchenko
Sterling Hooten writes: > In Ihor suggested > adding `org-custom-properties-hide-emptied-drawers', this was > rejected, but is pretty close to the desired behavior, except it's > still global. I was unable to get this working in release 9.6.