Note: This email thread is a followup for https://orgmode.org/list/cao48bk_6bqkgp1mgnzaaryku2+st6r1d4bziq5nzmwnewqf...@mail.gmail.com
Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes: > I have a second version of my previous patch, inlcuing and extra variable > to control whether you want to include the language= or not. It is made in > a backwards-compatible way. Default is to include it and you have to > > (setq org-latex-listings-src-omit-language t) > > to omit language= Makes sense from a first glance. > + (when label ; label= w/o label makes little sense > + `(("label" ,(org-latex--label src-block info)))) > + (when caption-str ; caption= w/o caption makes little > sense > + `(("caption" ,caption-str)) > + `(("captionpos" ,(if caption-above-p "t" "b")))) ; as does > captionpos w/o caption This is not true. We do need that empty caption/label. See https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=eaaa5c2e4 and https://orgmode.org/list/534beafb.4080...@gmx.de Also, if you can, please create a proper patch instead of diff. See https://orgmode.org/worg/org-contribute.html#first-patch -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>