emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthias Hetzenberger <mhetzenberger@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] lisp/lisp/ob-core.el (org-babel-merge-params): Rename plists to alists
Date: Sat, 22 Jun 2024 16:20:19 +0200	[thread overview]
Message-ID: <CAGtxw33TZK2ChMCGJxTGXRcOjdwc4-UouojY_G4C-tYjQmMYoA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 222 bytes --]

Hello!

I noticed that in the function org-babel-merge-params the arguments are
alists rather than plists.
To this end, I created a patch that updates the relevant variable names as
well as the docstring (see attachment).

[-- Attachment #1.2: Type: text/html, Size: 436 bytes --]

[-- Attachment #2: 0001-org-babel-merge-params-Rename-plists-to-alists.patch --]
[-- Type: text/x-patch, Size: 1395 bytes --]

From db9d5b77aedfb87aa0a3382f6be9d5921eef2ffd Mon Sep 17 00:00:00 2001
From: Matthias Hetzenberger <mhetzenberger@gmail.com>
Date: Sat, 22 Jun 2024 16:06:41 +0200
Subject: [PATCH] org-babel-merge-params: Rename plists to alists

---
 lisp/ob-core.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index db75f1f0a..5b32f503b 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -2959,9 +2959,9 @@ used as a string to be appended to #+begin_example line."
       (goto-char body-start)
       (insert body))))
 
-(defun org-babel-merge-params (&rest plists)
-  "Combine all parameter association lists in PLISTS.
-Later elements of PLISTS override the values of previous elements.
+(defun org-babel-merge-params (&rest alists)
+  "Combine all parameter association lists in ALISTS.
+Later elements of ALISTS override the values of previous elements.
 This takes into account some special considerations for certain
 parameters when merging lists."
   (let* ((results-exclusive-groups
@@ -2990,8 +2990,8 @@ parameters when merging lists."
 	 ;; Some keywords accept multiple values.  We need to treat
 	 ;; them specially.
 	 vars results exports)
-    (dolist (plist plists)
-      (dolist (pair plist)
+    (dolist (alist alists)
+      (dolist (pair alist)
 	(pcase pair
 	  (`(:var . ,value)
 	   (let ((name (cond
-- 
2.45.1


             reply	other threads:[~2024-06-22 14:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-22 14:20 Matthias Hetzenberger [this message]
2024-06-23  9:14 ` [PATCH] lisp/lisp/ob-core.el (org-babel-merge-params): Rename plists to alists 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=CAGtxw33TZK2ChMCGJxTGXRcOjdwc4-UouojY_G4C-tYjQmMYoA@mail.gmail.com \
    --to=mhetzenberger@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).