Hi Gustavo,

Gustavo Barros <[email protected]> writes:

> The problem here is that the bibkeys of biblatex's citation lists are
> not really mandatory, and yet they are given in braces.  But we could
> extend the syntax of `font-latex.el' to accommodate this case.  We
> could use, for example, a closing brace to indicate an optional
> argument in braces.  With that, in
> `font-latex-match-command-with-arguments' which handles the
> fontification of such commands, we could have (around were the
> `alternative' is dealt with):
>
> #+begin_src emacs-lisp
> (when (eq spec ?})
>   (setq opt-braces t)
>   (setq spec ?{))
> #+end_src
>
>
> And then, when the syntax-error is handled for the mandatory argument case:
>
> #+begin_src emacs-lisp
> (unless (or alternative opt-braces)
>   (setq syntax-error t)
>   (when (and match-beg (= match-beg (point)))
>     (setq error-indicator-pos match-beg))
>   (throw 'break nil))
> #+end_src

Thanks for looking at this and your ideas about this issue.  To be
honest, I'm not convinced that we should go through this only in order
to get cite lists working.  The benefits for some macros provided by one
single package, namely biblatex, seem too low to me.  We have a
non-perfect solution now, but I guess we can live with it.  Why do need
the fontification, jinx?

What do others think?

Best, Arash

Reply via email to