From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SIkAKYm4amPgUQAAbAwnHQ (envelope-from ) for ; Tue, 08 Nov 2022 21:14:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iBkDKYm4amOqKQAA9RJhRA (envelope-from ) for ; Tue, 08 Nov 2022 21:14:01 +0100 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 6E40F24E47 for ; Tue, 8 Nov 2022 21:14:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osUxu-00088Y-0K; Tue, 08 Nov 2022 15:12:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osT57-0000BJ-OT for emacs-orgmode@gnu.org; Tue, 08 Nov 2022 13:12:17 -0500 Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osT4u-0007ke-8x for emacs-orgmode@gnu.org; Tue, 08 Nov 2022 13:12:17 -0500 Received: from tosh-laptop (unknown [IPv6:2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp6-g21.free.fr (Postfix) with ESMTPS id 46F507802D7 for ; Tue, 8 Nov 2022 19:11:56 +0100 (CET) Received: by tosh-laptop (sSMTP sendmail emulation); Tue, 08 Nov 2022 19:17:51 +0100 From: Bruno Barbier To: emacs-orgmode@gnu.org Subject: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil Date: Tue, 08 Nov 2022 19:17:50 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a01:e0c:1:1599::15; envelope-from=perso.bruno.barbier@free.fr; helo=smtp6-g21.free.fr X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, MISSING_MID=0.497, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action Message-Id: X-Mailman-Approved-At: Tue, 08 Nov 2022 15:12:55 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667938441; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=cwlkdwMTAQJMozWSjB0QHh8PkL5ns8ZwfNHTFU3EgYQ=; b=AcA9izR+CIcqm6pH6SL6UAlY/at6TeB30ZOkbyWzEq7yPUrLmPKUkhtYoQ1kg4N+rsgdwK afUWuhVA2O0s2ppNT1aCS/f3decK5JanJUAaNwHtWsaOZ8ihbocfsiwn9kOAcsp5gHd0Es yq+2b8STqit+hn0DF7Sqf0W1z9+rkatejXFGrbzn4nqlooEJRSGV52omn/lXuP7cTMFHy6 g8SA5A/ccCBt5l0gLXPy00akLRv2BZMGt/gth7n2EXQhgBbxwaPdJdsd8Nsq/Iv1vKXbq1 Lq31mjmZSMHYBzQeg191oQ71SuZ6+IvmlI/ywz28L9Z3EABLEtlVYBqLqRc8Fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667938441; a=rsa-sha256; cv=none; b=DoSx1zum4FyC6Q2nl90g9holeyRmRe0AJo4sPrNm/j8l1Yp3yjW+BUXUrQjlaC/xpIudwD xpaiVBgyBy9H5qk1i0md8qMvk5g5lmkPTuxmef9+/4oGbm8KJdal6g4PbQ4HdWwV5+OyeT xQ9jHdl4K6/XwJD4cwE7e9lWMstB+0/Hx9AhPeUaal8GIp0qJlmeUcZRJkHSIbU7+Bts8/ 20sBeTTboLMmpSK02D82Q82YD8pYT7lSK8B7sTk0VhUVJDlTGzPHFhzu6WxXYzVvfuFtG5 p3P8s9o4vOGYM55h0my/5cC84UIVRXiDm/8O16sw9/9Hm+IG+TbEM1zDv4Behw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=free.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.38 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=free.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6E40F24E47 X-Spam-Score: 1.38 X-Migadu-Scanner: scn0.migadu.com X-TUID: Jg5ZVnT7WA5S --=-=-= Content-Type: text/plain Hi, Here is a small patch for a corner case in `org-babel-insert-result'. Bruno --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-org-babel-insert-result-Fix-wrong-type-argument-mark.patch Content-Description: Patch org-babel-insert-result: Fix wrong-type-argument markerp nil >From 288e2631ef60eeaee32f1107754aeb521247d54b Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Sun, 6 Nov 2022 13:57:40 +0100 Subject: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil lisp/ob-core.el (org-babel-insert-result): Don't reset the marker `end' if it is not defined. --- lisp/ob-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 22d60cfe6..91938d7e5 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2596,7 +2596,7 @@ (defun org-babel-insert-result (result &optional result-params info hash lang ex (message "Code block returned no value%s." time-info) (message "Code block produced no output%s." time-info)) (message "Code block evaluation complete%s." time-info)))) - (set-marker end nil) + (when end (set-marker end nil)) (when outside-scope (narrow-to-region visible-beg visible-end)) (set-marker visible-beg nil) (set-marker visible-end nil))))))) -- 2.37.4 --=-=-=--