From: Eli Zaretskii <eliz@gnu.org>
To: Jay Kamat <jaygkamat@gmail.com>
Cc: 28806@debbugs.gnu.org
Subject: bug#28806: syntax highlighting in ox-odt and emacs26+ broken
Date: Fri, 13 Oct 2017 10:49:13 +0300 [thread overview]
Message-ID: <837evzlc7a.fsf@gnu.org> (raw)
In-Reply-To: <87wp3za7cs.fsf@gmail.com> (message from Jay Kamat on Fri, 13 Oct 2017 02:29:23 -0400)
> From: Jay Kamat <jaygkamat@gmail.com>
> Date: Fri, 13 Oct 2017 02:29:23 -0400
>
> 1. Compile Emacs *26* from source (emacs-26 branch)
> 2. Load an org file with the following (built-in org):
>
> #+BEGIN_SRC c
> int main() {
> return 0;
> }
> #+END_SRC
>
> 3. Export to odt via C-c C-e o o
> 4. Open file in libreoffice
>
> Expected Results
>
> Syntax highlighting for the code block as in emacs25
>
> Actual Results
>
> Code seems to be colored in a single color, interestingly, this is *not*
> black.
>
> (I can provide screenshots if that would be helpful)
>
> After poking around, I found a bit more information on how to reproduce
> it:
>
> Environments with working syntax export:
> 1. Emacs25, always (unless unrelated errors are present)
> 2. Emacs26, when running org compiled with emacs 25 (from elpa/repo)
> 3. Emacs26, when running org 'interpreted' (not compiled to bytecode)
>
> Environments with broken syntax export:
> 1. Emacs26 when compiled from source, using builtin org
> 2. Emacs26 when org is compiled with Emacs 26 (from elpa/repo)
>
> I tested all emacs versions on org 0b83168465, changing which version
> org was compiled with by modifying the EMACS variable in local.mk in
> org. I ran everything in ~emacs -Q~.
>
> I attempted to bisect emacs to find which change in emacs is causing
> this, bug I wasn't able to compile some older versions of emacs due to
> internal bytecode errors preventing a clean compilation. I was able to
> find that it was '14 revisions away from 5f3379b338' but I don't know if
> that's helpful.
>
> >From what I can tell (which is probably incorrect), this seems like
> either:
>
> 1. A bug in the new bytecode
> 2. Some backwards-incompatible change to macros in emacs 26 that org
> didn't pick up on.
>
> In the latter case, the change should be added to the NEWS file as a
> backwards incompatible change.
>
> A stackexchange question about this is here:
> https://emacs.stackexchange.com/questions/36023/how-to-export-babel-source-blocks-with-syntax-highlighting-to-odt-in-org-mode-in
>
> I posted in the org mode mailing list about this to try to get some
> initial feedback from orgmode before posting here:
> http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00161.html
Thanks.
Having read all of the references and discussions you've provided, I
see no evidence that this is an Emacs issue, as opposed to an Org
issue. I think the Org developers should take a look at this first,
and only if they provide clear evidence that the problem is due to
Emacs, should the problem come here.
next prev parent reply other threads:[~2017-10-13 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-13 6:29 bug#28806: syntax highlighting in ox-odt and emacs26+ broken Jay Kamat
2017-10-13 7:49 ` Eli Zaretskii [this message]
[not found] ` <871shvulrw.fsf@killashandra.ballybran.fr>
2018-02-09 8:57 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=837evzlc7a.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=28806@debbugs.gnu.org \
--cc=jaygkamat@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.