From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IPFiO6Wmw17yFAAA0tVLHw (envelope-from ) for ; Tue, 19 May 2020 09:28:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gE8/N6Wmw16oBwAAB5/wlQ (envelope-from ) for ; Tue, 19 May 2020 09:28:05 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 529219402D6 for ; Tue, 19 May 2020 09:28:05 +0000 (UTC) Received: from localhost ([::1]:44866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jayXa-0001pd-K0 for larch@yhetil.org; Tue, 19 May 2020 05:28:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jayX8-0001pW-LH for emacs-orgmode@gnu.org; Tue, 19 May 2020 05:27:34 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:55613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jayX7-00059n-JE for emacs-orgmode@gnu.org; Tue, 19 May 2020 05:27:34 -0400 Received: by mail-pj1-x102e.google.com with SMTP id k7so1056285pjs.5 for ; Tue, 19 May 2020 02:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=WxXA1FCdKVsl1UUcGYdMHT9P3Cqu0MrQN8tHf97ZlQQ=; b=BPuNLRnopsQXOABDU9SctdbtecCWn1zLo8TDN4Ek9Tt6vLW4iDca0DOiU8J7/2jNJo vaFK08sWiK/51jEUBnjEuW3GdFyGuxV0xKnJvHf09ao3KRKP7GG+0D0EvgViMeo8fqcP qkAB8oIKrqsT/jioxVIZEjZyMPRonJY8oDY7Sxz2jIqoGLt799uRAs4ZWIj/jqbfBvPS xW91CGZUKdg33tBoiafDyg1Ow8djVdb+xFax776HP8YSHwS11sU2wFwc2WdSufAWCpEW OJYsTlJ8Fm6yLx78BMa0p7i5EmUouWBVEB11M7MrpsG7gMUMxmpr4D00GCSHcEx9HOeM /l/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=WxXA1FCdKVsl1UUcGYdMHT9P3Cqu0MrQN8tHf97ZlQQ=; b=Spcu0BoMtUqetMNjWhmgTME1E4DWK0YtujtshxBFNJhWg95bjAKxlgMvYRbr0DL/z3 fqLFcODengbbPT9kFz6/M6Y2iN1wEDNGOl9gLcexpk91sFa91M9/weq8ip4eimoIBHF1 DfS5vjnUJH8jNZFlFrigZH5hBzUkM+gvwOpV+drKZDPkgPpDYTbB+Ogj9NPNDgTSEmhX wM82NvGM4nLSs/X6CgDz9pkh/DO/c2zgb02gXby7CkjwQn0jcvmLlboutYGDlr0Ink2s CEZEZ2lsuC/c1b/ou1iMtH1WGmCv7pGoHQYYBHBEcu+/oz5jXwI31tTCVQGz7jEsUYFK V+Gg== X-Gm-Message-State: AOAM531gv135JPJZVe2MiZsOjOuMVKjYRMQuhBlEeycFPVbmuvhxvy4R FVKIiB6wv9jZz0HxMz6m/wlAub3u X-Google-Smtp-Source: ABdhPJzi95UKbUyO+gOmeOdBZ4y2FDKtUnzw/IsJcWB098Swx+OGg/bKOfI4WAAvE+5z14iQrrzeXQ== X-Received: by 2002:a17:90a:c385:: with SMTP id h5mr4103126pjt.147.1589880451715; Tue, 19 May 2020 02:27:31 -0700 (PDT) Received: from tranquillity (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id a196sm10778349pfd.184.2020.05.19.02.27.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2020 02:27:31 -0700 (PDT) Date: Tue, 19 May 2020 17:27:27 +0800 From: Timothy To: Nicolas Goaziou Message-ID: <464CE1BC-8870-4635-B5A7-F62825FF2671@getmailspring.com> In-Reply-To: <87r1vgjrhw.fsf@nicolasgoaziou.fr> References: <87r1vgjrhw.fsf@nicolasgoaziou.fr> Subject: Re: (Feature Request) have org-edit-special work inside non-environment LaTeX blocks, i.e. \( \) and \[ \] X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5ec3a67f_2af37af_8ce" Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=tecosaur@gmail.com; helo=mail-pj1-x102e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "=?utf-8?Q?emacs-orgmode=40gnu.org?=" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=BPuNLRno; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.50 X-TUID: viN0bbmF66bS --5ec3a67f_2af37af_8ce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Nicolas, Thanks for the pointers. Taking your hint :P I took a look to see what I = might be in for. With your comments in mind I started by looking at org-edit-special, and = managed to get as far as org-element--current-element: but at this point = I'm stumped. I'll look into getting =46S=46 papers signed, it sounds like they may com= e in handy :) Timothy On May 19 2020, at 3:47 pm, Nicolas Goaziou wr= ote: > Hello, Timothy writes: > I love the first-class LaTeX support in Org-mo= de, and discovering that org-edit-special worked inside LaTeX environment= s was a joyous moment for me. > Shortly after that though, I was disappoi= nt to discover that this > didn't work with inline LaTeX equations =5C( =E2= =80=A6 =5C) or LaTeX display > equations =5C=5B =E2=80=A6 =5C=5D. If it w= ould be possible to account for this form of > LaTeX too, that would be m= arvellous=21 Luckily, this is trivial to implement. One needs to write a = =60org-edit-latex-fragment' function in =22org-src.el=22, which would be = a mix between =60org-edit-latex-environment' and =60org-edit-inline-src-c= ode' (without all the Babel stuff). The new function can then be installe= d in =60org-edit-special' from =22org.el=22. Unfortunately, no one so far= volunteered to do it (*hint*). > =46irst email to this mailing list, so = please let me know if I'm not > quite following protocol or anything like= that. Welcome=21 > I'm also a uni student a few weeks off from exams so = I am not able to > really need to resist the urge to jump in and work on = implementing > these ideas. I should have significantly more time late ju= ne though :) Great. =46or non-trivial (more than 15 locs) contributions t= o Org mode (and more generally, to GNU projects), you need to sign =46S=46= papers. You might want to consider signing them beforehand. Regards, -- = Nicolas Goaziou --5ec3a67f_2af37af_8ce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi Nicolas,

Thanks for the pointers. Taking your h= int  :P I took= a look to see what I might be in for.
With your comments in mi= nd I started by looking at = org-edit-special, and managed to get as far as org-element--current-element<= span data-emoji-typing=3D=22true=22>: but at this point I'm s= tumped.

I'll look into getting =46S=46 papers signed, it so= unds like they may come in handy :)<= /span>

On M= ay 19 2020, at 3:47 pm, Nicolas Goaziou <mail=40nicolasgoaziou.fr> = wrote:
Hello, Timothy writes: > I love the first= -class LaTeX support in Org-mode, and discovering that org-edit-special w= orked inside LaTeX environments was a joyous moment for me. > Shortly = after that though, I was disappoint to discover that this > didn't wor= k with inline LaTeX equations =5C( =E2=80=A6 =5C) or LaTeX display > e= quations =5C=5B =E2=80=A6 =5C=5D. If it would be possible to account for = this form of > LaTeX too, that would be marvellous=21 Luckily, this is= trivial to implement. One needs to write a =60org-edit-latex-fragment' f= unction in =22org-src.el=22, which would be a mix between =60org-edit-lat= ex-environment' and =60org-edit-inline-src-code' (without all the Babel s= tuff). The new function can then be installed in =60org-edit-special' fro= m =22org.el=22. Unfortunately, no one so far volunteered to do it (*hint*= ). > =46irst email to this mailing list, so please let me know if I'm = not > quite following protocol or anything like that. Welcome=21 > = I'm also a uni student a few weeks off from exams so I am not able to >= ; really need to resist the urge to jump in and work on implementing >= these ideas. I should have significantly more time late june though :) G= reat. =46or non-trivial (more than 15 locs) contributions to Org mode (an= d more generally, to GNU projects), you need to sign =46S=46 papers. You = might want to consider signing them beforehand. Regards, -- Nicolas Goazi= ou
--5ec3a67f_2af37af_8ce--
Timothy