From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EIBkGtNJU2DrLAAA0tVLHw (envelope-from ) for ; Thu, 18 Mar 2021 12:38:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SNsRFtNJU2B3aAAAbx9fmQ (envelope-from ) for ; Thu, 18 Mar 2021 12:38:43 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B3F7E17177 for ; Thu, 18 Mar 2021 13:38:42 +0100 (CET) Received: from localhost ([::1]:36670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMrvF-0002EP-Do for larch@yhetil.org; Thu, 18 Mar 2021 08:38:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMmvZ-0002KX-3I for emacs-orgmode@gnu.org; Thu, 18 Mar 2021 03:18:41 -0400 Received: from forward104o.mail.yandex.net ([2a02:6b8:0:1a2d::607]:56159) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMmvX-000158-8f; Thu, 18 Mar 2021 03:18:40 -0400 Received: from sas1-4f6d6a97a84a.qloud-c.yandex.net (sas1-4f6d6a97a84a.qloud-c.yandex.net [IPv6:2a02:6b8:c08:f310:0:640:4f6d:6a97]) by forward104o.mail.yandex.net (Yandex) with ESMTP id C67A1947146; Thu, 18 Mar 2021 10:18:24 +0300 (MSK) Received: from sas1-e20a8b944cac.qloud-c.yandex.net (sas1-e20a8b944cac.qloud-c.yandex.net [2a02:6b8:c14:6696:0:640:e20a:8b94]) by sas1-4f6d6a97a84a.qloud-c.yandex.net (mxback/Yandex) with ESMTP id ys8QyiTlvl-IOH0fK3d; Thu, 18 Mar 2021 10:18:24 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=appleprincess.io; s=mail; t=1616051904; bh=9zlq6FEs1Bvyf6j60u2htfdBfApXIgjEjn0GtenHn7s=; h=To:Subject:From:Message-ID:Cc:Date; b=xhJQ9C7gbw5lmDL+X1p7Ysfl/8CtUAbx+9Gufvm4p72Pl65xK570IaORuE2PljGbQ rXIifEZeWYjAIOUJK4FvVjMhkwc4YHBWofTEVOL6Tmt/2OTh2zTVBDG9gMTmTuuW2c unL/jqJN6UfcOMBaxRS9bi9WKLaby3BhszZzmdzE= Received: by sas1-e20a8b944cac.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id ttrKSyb97x-INKCm3mY; Thu, 18 Mar 2021 10:18:24 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Lein Matsumaru Subject: [PATCH] Fix ob-smiles using old org API. To: emacs-orgmode@gnu.org Message-ID: <88e827d2-fdb9-0b6d-eb1d-e1ef3c9e9fe6@appleprincess.io> Date: Thu, 18 Mar 2021 07:18:19 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------7007892D491EA120E5097DF3" Content-Language: en-US Received-SPF: none client-ip=2a02:6b8:0:1a2d::607; envelope-from=appleprincess@appleprincess.io; helo=forward104o.mail.yandex.net X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 18 Mar 2021 08:36:24 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastien Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616071122; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9zlq6FEs1Bvyf6j60u2htfdBfApXIgjEjn0GtenHn7s=; b=KBnHplkMJkVB7DPsbhzCXKvr+Ylefi4A8jWjYrs5ci9fkw+7qnrzazxA2O2eTHQyZhptz+ CjJje5rUpaU9l0GtVlffHr2MK7SSpHa/CAxewjQ2hVN0zy7OzQLs4o0D/cyAAS+HLd9Xii z6q9bq2kGSQCWM5L2VU1pGp2KejfGT1zq4YaFdq9MRhSzf0WJpo/8A8GyRvzaFLxBZGZc9 9u4M8SvJZr2byVfq0wmOIHP/rjSvGdIT8bsk51dvHblQGxoqAGnYqRYtPBU1Y9YiPWLQ53 hdyLwP3Lo3ZjeHAlWdn+S6caEl05/jkMC+qGp6n+jLE0Stb/CgLiqhbk4OhwPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616071122; a=rsa-sha256; cv=none; b=Y//JAN4GpbDEx0Er9qs1F/wW+sCiJiKmPNCwfyzA+xlmzA60TS5O6x8yxNRGPssqQgFixh SA6T+0vrJ0dtUBddeU/+d/LSUnvnaedBr5BsJUcZmeBa25RNaVgrRgIn5fopD2MhLLsu/Q Nbx4GnRsAN1eD8RoPy9dGc6SM9qKx749GPZGqiHBXKlVRLHHMUSpHk+GddgPJL4bvJaZrJ +QKkn+nQVJS1jWuATNhqrKkMZja0kU6SxaFDUOHQfxMzCbr+/xx2ieV/jXzE5+AvNfksTW 7aLqJL1DXVEZhBavtwsN/pY4dBTK5KBoBBl0iVbwU4YkmBh2A6S4/aTKb+uKvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=appleprincess.io header.s=mail header.b=xhJQ9C7g; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=appleprincess.io header.s=mail header.b=xhJQ9C7g; dmarc=pass (policy=none) header.from=appleprincess.io; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B3F7E17177 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: B92xGxgaJkZW This is a multi-part message in MIME format. --------------7007892D491EA120E5097DF3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit As subject says, it does not get updated, so I did. --------------7007892D491EA120E5097DF3 Content-Type: text/x-patch; charset=UTF-8; name="0001-ob-smiles.el-Update-org-babel-API.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-ob-smiles.el-Update-org-babel-API.patch" >From 24fe077429a83c4c4a48d873b03627782de0b883 Mon Sep 17 00:00:00 2001 From: Lein Matsumaru 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: - + +(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 "%s" 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 --------------7007892D491EA120E5097DF3--