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 ODHjCL3Gy162VAAA0tVLHw (envelope-from ) for ; Mon, 25 May 2020 13:23:09 +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 aPpwBL3Gy16gPwAAbx9fmQ (envelope-from ) for ; Mon, 25 May 2020 13:23:09 +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 7F63A9403EE for ; Mon, 25 May 2020 13:23:08 +0000 (UTC) Received: from localhost ([::1]:48486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdD4L-0001yk-UL for larch@yhetil.org; Mon, 25 May 2020 09:23:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdD3k-0001gN-8P for emacs-orgmode@gnu.org; Mon, 25 May 2020 09:22:28 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:46966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdD3j-0004d2-9x; Mon, 25 May 2020 09:22:27 -0400 Received: by mail-pg1-x52e.google.com with SMTP id p21so8662697pgm.13; Mon, 25 May 2020 06:22:26 -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=BJZMKltbTVxlB12SDQpyO4TRkC2EVlTZATEc6HpnguU=; b=PtPNgUqF3GQgZOQrJ4of8YAmbyDkB13/7zyjQVJxaX7wdC6RkV/mbNYdxaJsExSRio /EW0iNd7vOHy4Jigx4I9sM1iVQGorwqXIKVPGSpwpJ0UPpSpqkyblEUmkr+ees0d4GBq 4xWqo7YnYEsh9GA6HAnM3R7Y8PaF/6lnNBhHqCwoHOw9pVh/RYy/ZVqiHwkBsw63A6YC b6cg3QGSpXIOUSGGZn6Z9ig5VDNA0DzQoSJV1tGpc6MKcMppw9FVT4usDyDd8FxE9aVE NHd5N91pzg4sS2o/ASKpMVcfcGIvk6HJmOy63oIIZqwFjmIX47KHcrqmPDdMbGc1YUGO f7uA== 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=BJZMKltbTVxlB12SDQpyO4TRkC2EVlTZATEc6HpnguU=; b=ns2zlzOVCM1ZBNfTLlsH9GziUmzBjwpH9OPKyhGDKhlkC05wnsPWVbwFoCoQJsrzR0 JxtxfEVIUbZgDQkqAnXPHfIYNrTFfta9nvpB+fbitLwT0TaKwoXdw0aAjkOikUMbRFFY z6J3gkJAfBNDTo6W2KLo+6QOQzSh6ZjvuA/J6/JIn/VMi+PHGRJWiJ9Rs/0VlADarZNp 3THaoCakHBqhmjOoiRMo0tyC/VXszxqfPh5FsmZCaDWEQngL3WdqAv1o9LB6/PHAWDLH g9rPdt7zbE2A10RrYCGYE783p7tmbBrDQLjxCow9ZIkh5LWGyvkK+GgFBxWwUA3ybz0R jI3A== X-Gm-Message-State: AOAM530DvxSBtuTOj9D+Iy17EIlIuxhRoRwZ3oASByBfEGAkQ++cKGEn TSdHou7/oow699tAhqGc+5I= X-Google-Smtp-Source: ABdhPJz92LcdlVERO2trHj3UTYgom9YBkeSoAyyEVdQGJ91iF0PyS2BsEh/SYiPxpPwHj9YMzprgLA== X-Received: by 2002:a63:e702:: with SMTP id b2mr26179343pgi.158.1590412945316; Mon, 25 May 2020 06:22:25 -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 k4sm5111778pfp.173.2020.05.25.06.22.22 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 May 2020 06:22:24 -0700 (PDT) Date: Mon, 25 May 2020 21:22:20 +0800 From: Timothy To: Nicolas Goaziou Message-ID: In-Reply-To: <87d06s9rva.fsf@nicolasgoaziou.fr> References: <87d06s9rva.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::52e; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x52e.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: Bastien , "=?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=PtPNgUqF; 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: ctqIKoYg081i Nicolas writes: >> <=23multipart type=3Dalternative><=23part type=3Dtext/plain> > =20 > Please don't send HTML. Appologies, I'm trying to use org-msg for emails, which should be off for replying to plaintext, but I seem to have odd things happen now and then ... as you have noticed. So, I'm trying to keep things plaintext, but unfortunately there everything isn't quite functioning as intended (for example, mu4e was unable to open this email, and I have no idea why). While I may be spending too much time on Email and not enough on Org :P I'd be interested to hear what the aversion to mime multipart is=3F I hav= e only a basic working understanding, but my impression was that in functioned as a 'best of both worlds' type thing. > Yes, this particular change would be harmless. But you don't need > =60org-edit-special' to change that. Moreover you cannot allow this > without allowing any change. So, let's not do that. > =20 >> To be honest I don=E2=80=99t quite see this point, in both cases it=E2= =80=99s just >> a LaTeX buffer=E2=80=A6 > =20 > No, it's not. It is a part of an Org document that happens to be handle= d > by LaTeX. IOW, there is context around the object that doesn't belong t= o > LaTeX. > =20 > =60org-edit-special' focuses on contents, not structure. =46or example,= you > cannot change the number of the footnote definition being edited from > =60org-edit-special'. This should also be the case here. Heh. And I was most of the way through tweaking =60org-edit-latex-fragment' to detech when inline was changed to an environment and insert newlines if necesary to ensure that the =5Cbegin and =5Cend statements are on their own line. I neglected to consider that org is likely doing context caching etc. and so complicating things. I still like the idea that this can be changed in the minibuffer (in my case because I have nice LaTeX-mode configurations for changing these sorts of things more easily that I do in org mode). However I don't like the sound of the extra complexity any more than you do. I'll leave this be, and see if I can get the read-only locking working for now :) I think I've got everything else as it should be, so I should be sending in a patch for feedback shortly :) Timothy.