On Wednesday, July 23rd, 2025 at 5:30 PM, Paul Nelson <ultr...@gmail.com> wrote:

> (Please cc the bug tracker)
> 
> On Wed, 23 Jul 2025 at 11:04, Kai Bagley <kaibag...@pm.me> wrote:
> 
> > 
> > 
> > On Wednesday, July 23rd, 2025 at 4:39 PM, Paul Nelson <ultr...@gmail.com> 
> > wrote:
> > 
> > > Hi Kai,
> > > 
> > > On Wed, 23 Jul 2025 at 09:29, Kai Bagley via bug-auctex via Bug reporting 
> > > list for AUCTeX <bug-auctex@gnu.org> wrote:
> > > 
> > > > 
> > > > - ~edebug~ on ~TeX-fold-cite-display~, which reveals that
> > > > ~TeX-fold-macro-nth-arg~ returns ~nil~ when evaluating ~TeX-fold-macro~
> > > > on a ~\cite~ macro.
> > > 
> > > 
> > > The call to TeX-fold-macro-nth-arg is used only for optional arguments. 
> > > Could you check what happens in the later parts of TeX-fold-cite-display, 
> > > particularly key-list
> > 
> > 
> > The key-list gets set to (#("<citationkey>" 0 48 (fontified t face 
> > (font-lock-constant-face))))
> > 
> > 
> > > 
> > > 
> > > and references?
> > > 
> > 
> > 
> > references gets set to nil, the mapcar call returns nil. Since that uses 
> > TeX-fold--bib-abbrev, I know that TeX-fold-bib-file is set to the correct 
> > bibliography file.
> > 
> > 
> > > 
> > > Thanks, best,
> > > 
> > > Paul
> 
> 
> The key-list doesn’t sound correct. Could you please share the tex code 
> you’re trying to fold, and also check the value of the KEYS argument?

After keys is set, and getting it's value from the messages buffer after 
running edebug-eval-expression RET keys RET:

#("fathurahmanGeographicallyWeightedMultivariate2020" 0 49 (face 
(font-lock-constant-face) fontified t))

This is with LaTeX macro 
\cite{fathurahmanGeographicallyWeightedMultivariate2020}

Inserted using reftex-citation, which is using the file bib.bib, containing:

@article{fathurahmanGeographicallyWeightedMultivariate2020,
  title = {Geographically {{Weighted Multivariate Logistic Regression Model}} 
and {{Its Application}}},
  author = {Fathurahman, M. and {Purhadi} and {Sutikno} and Ratnasari, Vita},
  date = {2020},
  journaltitle = {Abstract and Applied Analysis},
  volume = {2020},
  number = {1},
  pages = {8353481},
  issn = {1687-0409},
  doi = {10.1155/2020/8353481},
  url = {https://onlinelibrary.wiley.com/doi/abs/10.1155/2020/8353481},
  urldate = {2024-07-29},
  abstract = {<shortened>},
  langid = {english},
  file = {<removed>}
}

I'm very unfamiliar with edebug, and probably emacs in general compared to you 
guys. If there's a better way to figure this out please let me know



_______________________________________________
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex
  • bug#79076: 14.... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
    • bug#79076... Paul Nelson
      • bug#7... Paul Nelson
        • b... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
          • ... Paul Nelson
            • ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul Nelson
                • ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
                • ... Paul D. Nelson
                • ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
                • ... Paul D. Nelson
                • ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
                • ... Paul D. Nelson
                • ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX

Reply via email to