From: Lein Matsumaru <appleprincess@appleprincess.io>
To: emacs-orgmode@gnu.org
Cc: Bastien <bzg@gnu.org>
Subject: [PATCH] Fix ob-smiles using old org API.
Date: Thu, 18 Mar 2021 07:18:19 +0000 [thread overview]
Message-ID: <88e827d2-fdb9-0b6d-eb1d-e1ef3c9e9fe6@appleprincess.io> (raw)
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
As subject says, it does not get updated, so I did.
[-- Attachment #2: 0001-ob-smiles.el-Update-org-babel-API.patch --]
[-- Type: text/x-patch, Size: 1159 bytes --]
From 24fe077429a83c4c4a48d873b03627782de0b883 Mon Sep 17 00:00:00 2001
From: Lein Matsumaru <appleprincess@appleprincess.io>
Date: Tue, 16 Mar 2021 10:52:18 +0000
Subject: [PATCH] ob-smiles.el: Update org babel API
* contrib/lisp/ob-smiles.el (org-link): Fix from org-add-link-type to
org-link-set-parameters
TINYCHANGE
---
contrib/lisp/ob-smiles.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/contrib/lisp/ob-smiles.el b/contrib/lisp/ob-smiles.el
index 9f4f14080..77d7e11c4 100644
--- a/contrib/lisp/ob-smiles.el
+++ b/contrib/lisp/ob-smiles.el
@@ -14,7 +14,10 @@
;; Maintainer: stardiviner [numbchild@gmail.com]
;;; Code:
-\f
+
+(require 'ob)
+(require 'org-element)
+
;; Org-mode Babel
(defun org-babel-execute:smiles (body params)
"Execute SMILES babel `BODY' with `PARAMS'."
@@ -36,10 +39,10 @@
((eq 'html backend)
(format "<a href=\"#%s\">%s</a>" name name)))))
-(org-add-link-type
+(org-link-set-parameters
"molecule"
- 'molecule-jump
- 'molecule-export)
+ :follow 'molecule-jump
+ :export 'molecule-export)
;; org-mode element
(org-element-map (org-element-parse-buffer)
--
2.30.1
next reply other threads:[~2021-03-18 12:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-18 7:18 Lein Matsumaru [this message]
2021-03-19 4:43 ` [PATCH] Fix ob-smiles using old org API Kyle Meyer
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=88e827d2-fdb9-0b6d-eb1d-e1ef3c9e9fe6@appleprincess.io \
--to=appleprincess@appleprincess.io \
--cc=bzg@gnu.org \
--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).