emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Bruce D'Arcus" <bdarcus@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: [oc-basic] fontification weirdness
Date: Thu, 25 Nov 2021 08:11:02 -0500	[thread overview]
Message-ID: <CAF-FPGN4hDwC_G1TKCuqfk7TjTmnYStDrOfBoQ5zKt57PGs_dQ@mail.gmail.com> (raw)
In-Reply-To: <87ilwhqks1.fsf@nicolasgoaziou.fr>

On Wed, Nov 24, 2021 at 4:57 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
> "Bruce D'Arcus" <bdarcus@gmail.com> writes:
> > I can't fully pin this down, but I and a couple of others I've
> > discussed this with are seeing the following behavior.
> >
> > With this example:
> >
> > a citation [cite:@couper2014] and another [cite:@kohn2006]
> >
> > ... the first citation is highlighted, and the second (and any
> > subsequent) is not.
> >
> > In some way I can't reproduce, I can then get the fontification to
> > work correctly, but if I restart, the problem reappears.
> >
> > Discussed more here:
> >
> > https://github.com/bdarcus/citar/discussions/430#discussioncomment-1693707
> >
> > Can anyone else confirm this?
> I couldn't reproduce it, but I saw something fishy in the fontification
> code. I fixed it. Hopefully, your problem is gone, too. Crossing
> fingers.

I haven't yet had a chance to test the latest commit, but another user
did and reported:

"I have what I think is this commit (b3cc2f793, the latest one as of
right now) and the above bug still happens for me."

His explanation of that bug, which I can reproduce on my end:

I can replicate this behaviour with two citations on one line, but
only when the first citation is a valid reference key:

[cite:@Sno1959:TwoCultures] [cite:@Snow]

Just changing one character in the first citation key causes the
second to flip between being highlighted or not.

So to be clear:

Two citations on one line.

If both keys are valid, the second one is not highlighted.

If I change the first key so it is invalid, both are then highlighted.

Can you reproduce that?


  reply	other threads:[~2021-11-25 13:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 20:32 Bruce D'Arcus
2021-11-24 21:57 ` Nicolas Goaziou
2021-11-25 13:11   ` Bruce D'Arcus [this message]
2021-11-26 10:48     ` Nicolas Goaziou
2021-11-27  1:12       ` Bruce D'Arcus

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:

  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=CAF-FPGN4hDwC_G1TKCuqfk7TjTmnYStDrOfBoQ5zKt57PGs_dQ@mail.gmail.com \
    --to=bdarcus@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --subject='Re: [oc-basic] fontification weirdness' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).