Hi Hugo,

>>>>> h...@heagren.com writes:
> A use case. I have been doing a lot of (for me) advanced LaTeX work
> recently, and frequently find myself looking up references in several
> manuals at once, or keeping notes in an org/markdown/scratch buffer.
> TeX Doc is very useful in for this, but I don't get the backend
> completion I would in a LaTeX buffer. I could add all the relevant
> modes to the backend list manually, but then if I encounter some niche
> new usecase, I will have to manually support that as well. It seemed
> useful to me to have a way of just activating a backend in all modes.
> Which modes have which backends by default has been left unchanged, on
> the assumption that the current way is best for most users.

So you want to make `TeX-doc' work in non-AUCTeX buffers. OK, it would
be harmless for ordinary users and beneficial for users like you. I
think AUCTeX can accept your idea. Here are some comments for your
proposal:

I basically agree with your idea to use symbol `t` for "all modes". In
that case it isn't much meaningful to "add" t to the mode list; the rest
of the elements are totally useless. Instead of a list, we can just have
a single `t' for that purpose. Then we can simplify the conditional as
(or (eq t (nth 1 elt)
    (memq major-mode (nth 1 elt))
How about this idea? (If you are fine with it, please adjust the doc
string as well.)

> I couldn't find a CONTRIBUTING doc or similar, so sorry if I've not
> hit all the commit conventions. Would be happy to reformat if
> necessary. I have contributed to Emacs before, so I've assigned
> copyright to the FSF already, if relevant.

Don't worry, you are following the right path. :-)

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW


Reply via email to