emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Rudolf Adamkovič" <rudolf@adamkovic.org>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] ob-tangle: Tangle BibTeX files with the standard .bib file extension
Date: Sun, 05 Jan 2025 17:32:38 +0100	[thread overview]
Message-ID: <m2h66drzkp.fsf@adamkovic.org> (raw)
In-Reply-To: <87jzb9pfk4.fsf@localhost>

Ihor Radchenko <yantar92@posteo.net> writes:

>> +(ert-deftest ob-tangle/bibtex ()
>> +  "Tangle BibTeX into a `.bib' file."
>
> I think that the test is not necessary here.
> We already test `org-babel-tangle-lang-exts' in
> `ob-tangle/collect-blocks', I think.
> Or do I miss something?

I wanted to make sure this behavior, specifically for BibTeX, will never
get "lost in translation", say when refactoring.  I noticed that other
files add to the `org-babel-tangle-lang-exts' list, so I figured that
this code may moved in the future, etc.  And we all know how that goes.
More generally, for the end-user, the correct BibTeX file extension is a
crucial requirement, not a cosmetic one, so I wrote a test to make sure
we will never-ever break it.

Rudy
-- 
"If you're thinking without writing, you only think you're thinking."
--- Leslie Lamport

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


  reply	other threads:[~2025-01-05 16:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-05 10:20 [PATCH] ob-tangle: Tangle BibTeX files with the standard .bib file extension Rudolf Adamkovič
2025-01-05 13:15 ` Ihor Radchenko
2025-01-05 16:32   ` Rudolf Adamkovič [this message]
2025-01-05 16:48     ` Ihor Radchenko

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=m2h66drzkp.fsf@adamkovic.org \
    --to=rudolf@adamkovic.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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