From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: org-mode 9.6 and Emacs Built from Git HEAD Date: Sun, 04 Dec 2022 20:13:09 -0800 Message-ID: References: <87ilivucy5.fsf@localhost> <25480.49629.611912.323732@retriever.mtv.corp.google.com> <87cz93tkea.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24813"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 05 05:13:51 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p22rX-0006F6-43 for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Dec 2022 05:13:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p22r0-0007SZ-HZ; Sun, 04 Dec 2022 23:13:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p22qy-0007Rp-Vt for emacs-devel@gnu.org; Sun, 04 Dec 2022 23:13:17 -0500 Original-Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p22qx-0000JC-7I for emacs-devel@gnu.org; Sun, 04 Dec 2022 23:13:16 -0500 Original-Received: by mail-pg1-x52e.google.com with SMTP id v3so9426920pgh.4 for ; Sun, 04 Dec 2022 20:13:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kOnN6ONuSqmu84SkbXAAFnJ/vdfNjJ4n9cLH25PR4JM=; b=bWy39EK9DMg/+LysYpgJSKxZb+RPnsCfYYqLmbIZd9laKf2UCblu6lu81WK1RMXrBP jbJsOWH+Wk4QUKW8cs+Lh/gak8Wb2BMkLNtP5KBFoOIWi0GDxR53zYgdSA9Iqj2r2O8k TSZEtRZ8MkRjUr5wqpdttpP0Wh2jU/WifbNHfXSy+uCj1BWJ4f31kqVEoLvj3ZXo5lTY O5MFkfRmwSCDABNIPC1HfTdtUB+uOBsdIAXc3/OmIxxvJPaO+1P3FSnNanLlxlOQPq1v rP12X8WX0PEJX0LNEtdigcvHnJZ1GVKq+9Q5g71SecYRyjdDgxmAKPc62sLVkSuJBx/+ 9lwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=kOnN6ONuSqmu84SkbXAAFnJ/vdfNjJ4n9cLH25PR4JM=; b=iCuoTPtWIsVPDj/vn8nDkIelkjIFOSD2BHZs/jMXABdng1OMUUFhHqwLFNYDGCJeQF +sTdDZZ9jOGuiyZvBe0fItpoO861MCBdzCIPgaWRnvwFdM1k1DLjYDZ+goVrelm+SsfB 0yYCuyaLt9Dqmwdoy6WnG6LVRwM43eKXAz1bpmcUjzWAkHfv/H3RxuijUzb8/G/Axe9q sX3Miq+hprlgjTaFuJ+RyD+ZWjXjpQiRrMrSAnOhtKsnAzDnUU8zWBLZxMkG4XWP6SaY 9VZPBp+Eysoa3euFPb5mIy6OPOBmfWwcBT59TFxvFwsZrwY8o1PbdgC6r60Gnr18CDHd ecig== X-Gm-Message-State: ANoB5plWvPQfRP91Std4hxDDylT+51eg12zdYVwbUd2QSYMaGk1MXiyE nFyETye55IPdDegooXBlxs6jYVJl8sVWsdewPs4= X-Google-Smtp-Source: AA0mqf6raYIBSsvo3vAVqjQUIJ+QFAh71GhhW15C5v7J9BxUl6CnpT8/CI+ufRhtiKQkEWCE+3CrCA== X-Received: by 2002:a05:6a00:4c8f:b0:575:4bb2:d67d with SMTP id eb15-20020a056a004c8f00b005754bb2d67dmr33317477pfb.32.1670213592188; Sun, 04 Dec 2022 20:13:12 -0800 (PST) Original-Received: from raman9 (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id c30-20020a056a00009e00b0056be1581126sm9075101pfj.143.2022.12.04.20.13.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 20:13:11 -0800 (PST) In-Reply-To: (T. V. Raman's message of "Sat, 03 Dec 2022 19:37:02 -0800") Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=raman@google.com; helo=mail-pg1-x52e.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300920 Archived-At: 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.=20 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" 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? --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8