unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "T.V Raman" <raman@google.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-devel@gnu.org
Subject: Re: org-mode 9.6 and Emacs Built from Git HEAD
Date: Sun, 04 Dec 2022 20:13:09 -0800	[thread overview]
Message-ID: <p91tu2alc8a.fsf@google.com> (raw)
In-Reply-To: <p918rjnzvoh.fsf@google.com> (T. V. Raman's message of "Sat, 03 Dec 2022 19:37:02 -0800")

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1888 bytes --]


Hi Ihor,

Could you please this to the relevant folks on the org devel team?

I solved my issue with org folding in org-9.6 when org-fold-core-style
is set to transparencies -- TL;DR:

I created myself a small function by cloning function org-mode and
taking out most of the code so that what I had left were the bits that
set up org-fold magic; I then call this function in my code where I
create a temporary buffer for processing the text to speak. 

A better solution might be for org itself to provide such a function; my
initial solution was to just call (org-mode) but that function does a
lot of work that isn't needed just to set up the fold hiding bits.

See
https://github.com/tvraman/emacspeak/blob/master/lisp/dtk-speak.el#L1662
for the relevant code.

"T.V Raman" <raman@google.com> writes:
> Hi Ihor,
>
> After looking through the code in org-fold-core.el,
> I see the following:
>
> org-fold-core.el: Line 1413
>
> The comments in that section talk about preserving/not-preserving
> folding when copying among indirect buffers.
>
> But the lines at the afore-mentioned position indicate that the solution
> for how to do this  when  pasting to a non-indirect buffer.
>
> Note that emacspeak needs  a solution to the above,  --- at present,
> when it tries to speak a folded line in org-9.6 with org-fold-core-style
> set to text-properties, the invisibility gets lost, which is why content
> that is folded in the original buffer gets spoken by emacspeak.
>
> While we wait for a clean way for a third-party app to handle this, can
> you tell me what I need to do on my end, e.g. perhaps inherit some magic
> property from the source buffer into the scratch buffer where I
> manipulate the text before speaking it perhaps?

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



  reply	other threads:[~2022-12-05  4:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-01  3:46 org-mode 9.6 and Emacs Built from Git HEAD T.V Raman
2022-12-01  1:31 ` Ihor Radchenko
2022-12-01 15:01   ` T.V Raman
2022-12-01 16:15     ` T.V Raman
2022-12-01 11:48       ` Ihor Radchenko
2022-12-01 21:31         ` T.V Raman
2022-12-02  5:08           ` Ihor Radchenko
     [not found]             ` <25482.2636.186975.666369@retriever.mtv.corp.google.com>
     [not found]               ` <87zgc6jfr1.fsf@localhost>
2022-12-02 15:09                 ` T.V Raman
2022-12-04  3:37         ` T.V Raman
2022-12-05  4:13           ` T.V Raman [this message]
2022-12-07 12:29             ` Ihor Radchenko
     [not found]               ` <25488.44727.272656.782779@retriever.mtv.corp.google.com>
     [not found]                 ` <878rjintu4.fsf@localhost>
     [not found]                   ` <25489.63879.848634.401102@retriever.mtv.corp.google.com>
     [not found]                     ` <87mt7y6ief.fsf@localhost>
     [not found]                       ` <25490.266.362467.616997@retriever.mtv.corp.google.com>
     [not found]                         ` <87k0317w2e.fsf@localhost>
     [not found]                           ` <25490.4343.137735.654592@retriever.mtv.corp.google.com>
     [not found]                             ` <87h6y57t0y.fsf@localhost>
     [not found]                               ` <25490.6757.786967.103592@retriever.mtv.corp.google.com>
     [not found]                                 ` <87edt97qtt.fsf@localhost>
2022-12-18  4:12                                   ` T.V Raman
2022-12-18 12:56                                     ` Ihor Radchenko
2022-12-19  3:25                                       ` T.V Raman
2022-12-19  3:24                                     ` T.V Raman
2022-12-07 12:28           ` Ihor Radchenko
2022-12-01  7:30 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=p91tu2alc8a.fsf@google.com \
    --to=raman@google.com \
    --cc=emacs-devel@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).