From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aKXBJk/uw16sUwAA0tVLHw (envelope-from ) for ; Tue, 19 May 2020 14:33:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qNOYIk/uw14HLQAAbx9fmQ (envelope-from ) for ; Tue, 19 May 2020 14:33:51 +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 2504094060B for ; Tue, 19 May 2020 14:33:50 +0000 (UTC) Received: from localhost ([::1]:53252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb3JV-0003Xc-Bb for larch@yhetil.org; Tue, 19 May 2020 10:33:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb3J5-0003Ws-6r for emacs-orgmode@gnu.org; Tue, 19 May 2020 10:33:23 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:54872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb3J4-0006s2-9V for emacs-orgmode@gnu.org; Tue, 19 May 2020 10:33:22 -0400 Received: by mail-pj1-x102d.google.com with SMTP id s69so1430802pjb.4 for ; Tue, 19 May 2020 07:33:21 -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=+/megmw9p/n82Yr6IjLVWSC8njCgdcuuLe59v9p0pP0=; b=DTLyffeSQ9/Sw3IwSb+hT2KoEpX6Q1IPGAce+lc/msFx7YV3tKX/3sq4ST2gW7wR7l 2DPdtDIoo7x8byg2MRXQumD+XipWnCi44TNGQDVO4OBAqdhmULDJEnyE967NtIgP9M/T dUErUIe1tyzKVejDAIPE9KqOighEkevgkExAKRG3bWRF9aXx55EnAwB70NiL5g+ZGBMg aji78imOKf0px7O7ZMVcZNd/mdXzPWeGMrLpQfg5t1JkL/s7Tz2hb7F41qLjqQ4cQ4KX o9DKBDf9fdZG3+vTfxnzLvmTj477SFrittDoP7TqlXcHj5jaIUkiKj0UMicggYw/uGMZ YV6Q== 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=+/megmw9p/n82Yr6IjLVWSC8njCgdcuuLe59v9p0pP0=; b=fRwCzgXCL8E5A39B64WDEfL9x+wdpDDchCZZyjUpB4uq/9hj4zhwJKFwnQWWariaxm WS9D+E8vrldrdJSmsjCi2svemno1AlZhDV4hF8+rSl1EJSm+dGyDgKDW9vidnAmXvsFm gQbFSYUnGrIztT4KgEf+JvmqUkZXWV9+IvFTgyB0aJ4rbsEgN7iHZ7PrRBlGxLSpPDhU dFCY5TtCpH8YorMH/XpxUJmq70FZ9HtWPfPaz+tXaa6gfvcq6sSDnyPGgXFkxi22sJXM WM0efHjSU6Xo8vgg6I3xAiFQ4fRDVTOfJpygOjXdXdlR6bbGp4dIJaFF1TqnvmglqJxf 8HiQ== X-Gm-Message-State: AOAM532Dd7hnzgqQMWXPJnSQ5EUcd+dWFCkDi9tvQ8nDpMUYeETQUq/Y y8v0Y8/1aNHq95sUw0ssZLc= X-Google-Smtp-Source: ABdhPJxHu+SJsehQXtzTEW8m0+WxxN6UjchXuwvU13ADQ7B1xh842co8p43PYV9OpUN4bpFsbHIpaA== X-Received: by 2002:a17:90a:1984:: with SMTP id 4mr5759171pji.36.1589898800749; Tue, 19 May 2020 07:33:20 -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 x14sm3870495pfi.60.2020.05.19.07.33.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2020 07:33:20 -0700 (PDT) Date: Tue, 19 May 2020 22:33:16 +0800 From: Timothy To: Nicolas Goaziou Message-ID: <2BC8237F-EE13-4A13-9B33-3DF1958C5B85@getmailspring.com> In-Reply-To: <877dx8gft7.fsf@nicolasgoaziou.fr> References: <877dx8gft7.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: 7bit Content-Disposition: inline Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=tecosaur@gmail.com; helo=mail-pj1-x102d.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=DTLyffeS; 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: p8hjb28Uhol1 Nicolas Goaziou writes: > I already did, didn't I? > ... > That's all for the changes required in `org-edit-special'. Oh ':) I thought that was just you saying 'it would be something along the lines of...' Thanks! I'll let you know when I have something. > Timothy writes: > >> In your original email you wrote >>>>>> The new function can then be installed in `org-edit-special' from >>>>>> "org.el" >> >> I can't quite see how I would insert this. Since it sounds relatively >> simple, if you would be willing to cook up the necessary modification >> for me that would be a great help. > > I already did, didn't I? > > In `org-edit-special', near the end (that is _after_ call to > `org-element-context') there's a line: > > (`inline-src-block (org-edit-inline-src-code)) > > Right after this line, i.e., as another case in the `pcase' pattern, you > would simply add: > > (`latex-fragment (org-edit-latex-fragment)) > > That's all for the changes required in `org-edit-special'. > > Of course, you need to write `org-edit-latex-fragment' function in > "org-src.el" beforehand. I suggested examples to look at. >