emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mandar Mitra <mandar.mitra@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs orgmode-mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Two low-priority questions re: design of org-babel-do-load-languages
Date: Thu, 23 Mar 2023 00:51:49 +0530	[thread overview]
Message-ID: <20230322192149.5sl55mqeuaylljdk@gmail.com> (raw)
In-Reply-To: <878rfpndx8.fsf@localhost>

Ihor Radchenko wrote (Wed, Mar 22, 2023 at 12:55:31PM +0000):
> The function `org-babel-do-load-languages' is originally not a generic
> function. It is specifically designed to be used as a :set function for
> `org-babel-load-languages' variable:
> 
> (defcustom org-babel-load-languages '((emacs-lisp . t))
> ...
>   :set 'org-babel-do-load-languages
> ...)
> 
> If you alter `org-babel-load-languages' via customize interface or via
> `setopt', the :set function is automatically called.
> 
> Later, AFAIK, it was also used in the manual as Elisp function.
> Against its original design.

Ok, I understand now. I had missed the 

:set 'org-babel-do-load-languages

That itself answered almost all my questions. Thank you very much for the detailed explanation! 

Warm regards,
Mandar.


      reply	other threads:[~2023-03-22 19:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-21 19:25 Two low-priority questions re: design of org-babel-do-load-languages Mandar Mitra
2023-03-22 12:55 ` Ihor Radchenko
2023-03-22 19:21   ` Mandar Mitra [this message]

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=20230322192149.5sl55mqeuaylljdk@gmail.com \
    --to=mandar.mitra@gmail.com \
    --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).