From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eH2RCtfgw167fAAA0tVLHw (envelope-from ) for ; Tue, 19 May 2020 13:36:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 3qtuBtfgw17NGwAA1q6Kng (envelope-from ) for ; Tue, 19 May 2020 13:36:23 +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 9DC83940B28 for ; Tue, 19 May 2020 13:36:22 +0000 (UTC) Received: from localhost ([::1]:36218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb2Pt-0005Ap-Ke for larch@yhetil.org; Tue, 19 May 2020 09:36:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb2M7-0006t8-19 for emacs-orgmode@gnu.org; Tue, 19 May 2020 09:32:27 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:44978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb2M6-0001Fg-1a for emacs-orgmode@gnu.org; Tue, 19 May 2020 09:32:26 -0400 Received: by mail-pl1-x62e.google.com with SMTP id w19so3840678ply.11 for ; Tue, 19 May 2020 06:32:25 -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:content-transfer-encoding:content-disposition; bh=ptsn2ctioipOrJJAkqAa1I801QtA3euKoCo8ZJkR8G4=; b=SeqUkeMDmvroJwhV9Ux7KOxQrKB/y337r8uTyhPEhsBM86rj1YVMWV0X49WYLHuzIn 9GLqxs1rhqckBRUyxYo+zIB7OxyCkzIYk9AD/2fn26CZVKk/PFDHs9XnlQGKKkM40ULY AgXBxcGaNNSIW26n/pCG9goFXJvuGXsVLLcgQdlhKnduZ9Gsb7x1u4FkMuCyBuK1+UA+ c8r/vwJvQcCYlR5miohGUFUN6VsWo7bSHo7S6ddCcdBYRU+bVknG4fgGUmNH/bmkjrmx czjH76a3apf0zNXtylcJuqtKsFty9wPTTkM8mSzyLGMlzzhZ2Tp/7oZs9+3wM2KH6hC1 ZScw== 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:content-transfer-encoding :content-disposition; bh=ptsn2ctioipOrJJAkqAa1I801QtA3euKoCo8ZJkR8G4=; b=fRIZMqQKH4dSVW6yqrgX7Ju68RSuDKBi3tnD47zgRiq0My1pJ9hA0FolKYnJBuXvuh k3gRV5gAlCGg4XU58OFqHBf1BZb+rRUFLUMGB1hjd50cT7t4snFHwNcKfd6RCw8NSfrW MGRPog6Qh6M1y2Kzm36XdXHLcjYd7oNweULwoLqku9EqABHf6E6LyEpk01LTd6+EESCn dyGO5FxOSBkDArbY/fHBNSbbnACUeSVmhzXbgInB+vRqKDra410i5NOHjxt9LcnS7KA/ b/ukRtPdqkfqjJFCfpFEhac0aOYRRqjcSFgZnS06qitk/nX4sHXlTEJP92QcYEcBooDW TPAQ== X-Gm-Message-State: AOAM533n+giXlzo3V1uulyffzzeftd4num+qLeBgqgpUyRrxFt/7tJ+v eMvlI5vDeOrX5zqSg/26BWY= X-Google-Smtp-Source: ABdhPJzB3TfGr5sCjorNRVlvMiGbwILC00U01C1UPeAD1KcScn39YTYToLjC159ustx/QBvKBqlc4w== X-Received: by 2002:a17:90a:ba86:: with SMTP id t6mr5510894pjr.19.1589895144529; Tue, 19 May 2020 06:32:24 -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 k3sm2355568pjc.38.2020.05.19.06.32.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2020 06:32:23 -0700 (PDT) Date: Tue, 19 May 2020 21:32:19 +0800 From: Timothy To: Nicolas Goaziou Message-ID: <8E1EDCAC-C087-48C7-B1C5-03DB6B0989F4@getmailspring.com> In-Reply-To: <87zha4gilv.fsf@nicolasgoaziou.fr> References: <87zha4gilv.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: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x62e.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, 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=SeqUkeMD; 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: 1.00 X-TUID: 71eGFvxnNatG Nicolas Goaziou writes: > LaTeX fragments are at a lower level than plain =22elements=22, so > =60org-element-at-point' does not see them. I see. Might you be willing to do & show me the modifications needed to use the =60latex-fragment case=3F >> Can I really get away without modifying anything more than >> org-edit-special and writing org-edit-latex-fragment =3F > Yes, you (we) can=21 =46antastic=21 In other news, I have sent off am email to assign=40gnu.org, so hopefully= you'll be able to accept >15 loc patches from me in the (near=3F) future = :) > Timothy writes: > =20 >>> It sounds like you took the opposite route. I suggested to first >>> write a function, =60org-edit-latex-fragment'. >> I wanted to see how it would fit in first =C2=AF=5C=5F(=E3=83=84)=5F/=C2= =AF > =20 > Sure. That's a good way to learn stuff. In this case, it's not the > easiest one, though. > =20 >>> Once done, you can insert it in =60org-edit-special', but it boils >>> down to adding a line there, right below (=60inline-src-block ...): > =20 >> =46or that to work though, i.e. adding something of the form >> (latex-fragment ...) I'd want a =60latex-fragment type to be returned >> from org-element-at-point wouldn't I=3F > =20 > This is already done a few lines above in =60org-edit-special', when > =60org-element-context' is called. > =20 > LaTeX fragments are at a lower level than plain =22elements=22, so > =60org-element-at-point' does not see them. > =20 >> At the moment running (org-element-at-point) inside =5C( =E2=80=A6 =5C= ) yields >> paragraph. > =20 > See above. > =20 >> Can I really get away without modifying anything more than >> org-edit-special and writing org-edit-latex-fragment =3F > =20 > Yes, you (we) can=21 >