emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Timothy <tecosaur@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Bastien <bzg@gnu.org>, "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: (Feature Request) have org-edit-special work inside non-environment LaTeX blocks, i.e. \( \) and \[ \]
Date: Mon, 25 May 2020 21:22:20 +0800	[thread overview]
Message-ID: <DF0D5ED7-8E36-458E-9831-07E31AB46654@getmailspring.com> (raw)
In-Reply-To: <87d06s9rva.fsf@nicolasgoaziou.fr>

Nicolas <mail@nicolasgoaziou.fr> writes:

>> <#multipart type=alternative><#part type=text/plain>
>  
> 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? I have
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
> `org-edit-special' to change that. Moreover you cannot allow this
> without allowing any change. So, let's not do that.
>  
>> To be honest I don’t quite see this point, in both cases it’s just
>> a LaTeX buffer…
>  
> No, it's not. It is a part of an Org document that happens to be handled
> by LaTeX. IOW, there is context around the object that doesn't belong to
> LaTeX.
>  
> `org-edit-special' focuses on contents, not structure. For example, you
> cannot change the number of the footnote definition being edited from
> `org-edit-special'. This should also be the case here.

Heh. And I was most of the way through tweaking
`org-edit-latex-fragment' to detech when inline was changed to an
environment and insert newlines if necesary to ensure that the \begin
and \end 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.


  reply	other threads:[~2020-05-25 13:23 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19  1:31 (Feature Request) have org-edit-special work inside non-environment LaTeX blocks, i.e. \( \) and \[ \] Timothy
2020-05-19  7:47 ` Nicolas Goaziou
2020-05-19  9:27   ` Timothy
2020-05-19  9:39     ` Nicolas Goaziou
2020-05-19  9:45       ` Timothy
2020-05-19 13:27         ` Nicolas Goaziou
2020-05-19 13:32           ` Timothy
2020-05-19 14:09             ` Nicolas Goaziou
2020-05-19 14:12               ` Timothy
2020-05-19 14:28                 ` Nicolas Goaziou
2020-05-19 14:33                   ` Timothy
2020-05-23  9:10 ` Bastien
2020-05-23  9:20   ` tecosaur
2020-05-23  9:34     ` Bastien
2020-05-24 15:07   ` TEC
2020-05-24 15:38     ` TEC
2020-05-24 15:43       ` Timothy
2020-05-24 19:33         ` Nicolas Goaziou
2020-05-25  1:33           ` TEC
2020-05-25  7:11             ` Nicolas Goaziou
2020-05-25  9:28           ` TEC
2020-05-25  9:41             ` Nicolas Goaziou
2020-05-25  9:42               ` TEC
2020-05-25  9:55                 ` TEC
2020-05-25 10:09                   ` Nicolas Goaziou
2020-05-25 10:09                     ` TEC
2020-05-25 10:23                       ` Nicolas Goaziou
2020-05-25 10:24                         ` TEC
2020-05-25 10:32                           ` Nicolas Goaziou
2020-05-25 10:33                             ` TEC
2020-05-25 10:05                 ` TEC
2020-05-25 10:20                   ` Nicolas Goaziou
2020-05-25 10:21                     ` TEC
2020-05-25 11:27                       ` Nicolas Goaziou
2020-05-25 13:22                         ` Timothy [this message]
2020-05-25 14:08                           ` TEC
2020-05-26  7:56                             ` Nicolas Goaziou
2020-05-26  8:39                               ` Timothy
2020-05-26  9:11                                 ` Nicolas Goaziou
2020-05-26  9:23                                   ` TEC
2020-05-26 13:56                                     ` TEC
2020-05-26 21:13                                       ` Nicolas Goaziou
2020-05-26 17:01                                 ` John Kitchin
2020-05-25 18:58                           ` Nicolas Goaziou
2020-05-26  4:48                             ` TEC
2020-05-25 10:11                 ` Nicolas Goaziou
2020-05-25 10:17                   ` TEC
  -- strict thread matches above, loose matches on Subject: below --
2020-05-18  6:44 Timothy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DF0D5ED7-8E36-458E-9831-07E31AB46654@getmailspring.com \
    --to=tecosaur@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).