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 IIN1LWOby16hfgAA0tVLHw (envelope-from ) for ; Mon, 25 May 2020 10:18:11 +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 uFVLKWOby17XXAAA1q6Kng (envelope-from ) for ; Mon, 25 May 2020 10:18:11 +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 4AEEF940144 for ; Mon, 25 May 2020 10:18:11 +0000 (UTC) Received: from localhost ([::1]:39924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdABN-000655-Qw for larch@yhetil.org; Mon, 25 May 2020 06:18:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdAAv-00062t-1j for emacs-orgmode@gnu.org; Mon, 25 May 2020 06:17:41 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:37331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdAAs-0005tk-5w; Mon, 25 May 2020 06:17:40 -0400 Received: by mail-pf1-x435.google.com with SMTP id y198so8672059pfb.4; Mon, 25 May 2020 03:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=VJeMIiWZOx8LCVDRcqp3KBjc+idm38O9SJ0JJmzfmao=; b=UBh6DJVJFLpF8YOQBECFcOPkfCe1OlapEaWEOs2QyqgYxZK3hc30TYo1ko1Rtbn1Jt NNpSgKI45zVsGSZx9n6OR3hpMow7ogQvQB43pI0+Tjz4568jwRhtfCrUOVUFvNesWvYp 2RWlXh187XPGJT6+IBNrZW1BCafXdATA1RyTrRNPmMC+adYjvEyIj5H6xoQ7yve/khOX KaG3ZhSGNWFSH9QTlKL/QFX8n/xvBXR+43T7LReW7dT5EdZnrKUMVZOC7yxGAT6ZyPlS UvoU2JnY1hflUPmMSaGE1tAGh7Kmk5mvmzOaZLfzG5zzWVqWlHEOxNLtzkQVjQFRWA0M JjmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=VJeMIiWZOx8LCVDRcqp3KBjc+idm38O9SJ0JJmzfmao=; b=m+pH/8CA42k0qQLFR8UL/btsSYuKSvNFtXHS+8TykAi8j0Z95Fabu/gb+z8G8n9ocU Q4DQO2c3B/5RCSfn1CXi8jNvkU9NzpR3cpigN5PKHmokax2olXq6L9G0BUwEiCuW4ynJ XCsz0VvwQJ+mhrMSS6Rkp2pagCOyd/g4VjvPYnuWLppTDlSJDkcwP7QGCVXzoxYA7BAi 1HbAOyhlHNme4d4/d7PRLOD2IE7vjTUC/aP09mqMAEcwVBkH1pgAvySiprchGD7PxWaJ tifbG27SK/qqCppnMzhYYJ6MDYjHhxAUKSvtmFFwgXzy4wjUSjLlVy2xKvvbw2EeMS4O dM5w== X-Gm-Message-State: AOAM531xySxVyHaJ1PjII/30kYxJqAEuf54BUF6lkp9pUmigiua9hpe8 VPl8vVH+B156hksFG0Fd95w= X-Google-Smtp-Source: ABdhPJxRg8vNF2Bwrnc6dD6ceThYAwPoZvTgJoHz4d3D+H3f/UxqORNhK+dzXa8SktEpI9ry50TAbQ== X-Received: by 2002:aa7:8658:: with SMTP id a24mr16727902pfo.135.1590401856468; Mon, 25 May 2020 03:17:36 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id m7sm12548821pfb.48.2020.05.25.03.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2020 03:17:35 -0700 (PDT) References: <87zh9xxrww.fsf@gmail.com> <4274FCF8-5304-4B55-9586-0C718DA388D3@getmailspring.com> <87r1v9ceml.fsf@nicolasgoaziou.fr> <871rn8gy40.fsf@gmail.com> <87ftbobbct.fsf@nicolasgoaziou.fr> <87zh9wfish.fsf@gmail.com> <877dx0b9yb.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.4.6; emacs 26.3 From: TEC To: Nicolas Goaziou Subject: Re: (Feature Request) have org-edit-special work inside non-environment LaTeX blocks, i.e. \( \) and \[ \] In-reply-to: <877dx0b9yb.fsf@nicolasgoaziou.fr> Message-ID: <87zh9w2u9v.fsf@gmail.com> Date: Mon, 25 May 2020 18:17:32 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=tecosaur@gmail.com; helo=mail-pf1-x435.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: Bastien , "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=UBh6DJVJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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.09 X-TUID: eR3FeJGKGDeN --=-=-= Content-Type: text/plain; format=flowed Nicolas Goaziou writes: > It seems you're mixing inline source blocks and LaTeX fragment. > You > modified the former, but not the latter. Ooops, I'll fix that. >> + (lambda () ; trim content >> + (goto-char (point-min)) > > This is not needed. The function is always called at > `point-min'. Got it :) >> + (skip-chars-forward " \t") >> + (delete-region (point-min) (point)) >> + (goto-char (point-max)) >> + (skip-chars-backward " \t") >> + (delete-region (point) (point-max)))) > > I'm not sure this clean-up is necessary. Is it? What cleanup? I just took this from org-edit-inline-src-code. --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> It seems you’re mixing inline source blocks and LaTeX fragment. You
> modified the former, but not the latter.

Ooops, I’ll fix that.

>> + (lambda () ; trim content
>> + (goto-char (point-min))
>
> This is not needed. The function is always called at `point-min’.

Got it :)

>> + (skip-chars-forward “ \t”)
>> + (delete-region (point-min) (point))
>> + (goto-char (point-max))
>> + (skip-chars-backward “ \t”)
>> + (delete-region (point) (point-max))))
>
> I’m not sure this clean-up is necessary. Is it?

What cleanup? I just took this from org-edit-inline-src-code.

--==-=-=-- --=-=-=--