From: Eric S Fraga <esflists@gmail.com>
To: Alain.Cochard@unistra.fr
Cc: emacs-orgmode@gnu.org
Subject: Re: LaTeX chunk makes .org file not in Org mode
Date: Fri, 16 Nov 2018 09:27:05 +0000 [thread overview]
Message-ID: <877ehdxs1h.fsf@ucl.ac.uk> (raw)
In-Reply-To: 23532.3306.739620.803473@frac.u-strasbg.fr
On Wednesday, 14 Nov 2018 at 12:54, Alain.Cochard@unistra.fr wrote:
> Hello. I guess this is normal, but I wanted to report it in case
> there is room for improvement:
>
> After inserting a latex file into an .org file, I ended up with the
> following part in the org file (which was an agenda file):
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
[...]
> It the issue could somehow be made apparent to the user right away
> (that is, when the chunk is inserted), it would be easier/faster to
> fix.
There's really nothing to fix. You've inserted some local variable
settings that take effect next time you visit the file. You've decided
(not on purpose, I realize) that you want this file to be opened in
LaTeX mode and Emacs does what you said. I cannot imagine a fix that
could catch this as it would require org to essentially parse the new
contents as if it were all of Emacs and then somehow figure out what had
been set that shouldn't have been set.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-894-gf79545
next prev parent reply other threads:[~2018-11-16 9:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-14 11:54 LaTeX chunk makes .org file not in Org mode Alain.Cochard
2018-11-16 9:27 ` Eric S Fraga [this message]
2018-11-16 12:28 ` Alain.Cochard
2018-11-16 16:32 ` Eric S Fraga
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=877ehdxs1h.fsf@ucl.ac.uk \
--to=esflists@gmail.com \
--cc=Alain.Cochard@unistra.fr \
--cc=emacs-orgmode@gnu.org \
/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).