From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kIvtDzcWYGKqRAEAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 16:18:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8MrLDzcWYGJ4UwAA9RJhRA (envelope-from ) for ; Wed, 20 Apr 2022 16:18:31 +0200 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 D311110CE5 for ; Wed, 20 Apr 2022 16:18:30 +0200 (CEST) Received: from localhost ([::1]:52840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhBA5-0006Zt-U6 for larch@yhetil.org; Wed, 20 Apr 2022 10:18:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhAMp-0006HG-Mr for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 09:27:38 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:44018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhAMo-0004Wk-8f for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 09:27:35 -0400 Received: by mail-pj1-x1032.google.com with SMTP id j8-20020a17090a060800b001cd4fb60dccso2024249pjj.2 for ; Wed, 20 Apr 2022 06:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:message-id:date:mime-version; bh=2M37sc6xUKQEs46r5AX+9t33o7uwSJ/k9Fii8q6aFg4=; b=WZiQNSXH4zCk/bCsHwcWzTgoQYI1LK2xpOYKXS5XWa5mD9bkyxrTmqB0SLjK9lUMtS re3QVORRcR5yvNtnVuebd1Tqs7ddia72YFf1x2vvM6lXkWTEYFXDWlmYuuR1Sv+uaVEX /tHdQqbw7JKv+fka1SX9jNG/0er8LayptfsaYTiaImGrS/cVM1EVAJkBmLMCW7LxD7mM g/qc5DOpEtzUzYz30vWTtmjyjT4UdxV2VUJX35TkfrMNxKEkS/nNDv7k+l/5gS27bQ3p MtaThUeTYp1NEs6lAzm9rPhd9edCv4in/4jRpUgyIt0HlMynztmCphNi0iyQR6xfOiRs ferA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references :message-id:date:mime-version; bh=2M37sc6xUKQEs46r5AX+9t33o7uwSJ/k9Fii8q6aFg4=; b=d6d/7rToU2hNaPgY2Nk+NCP/S99sIdWP0vAXuVc1iK0cUlATOKgq5jv5W8iOr87L7T 3xXrVduGyJfUYHUvkRS/fdhQ73VxlkvOeEO/h9Ugl5OOp3bpGe+d032xgLQOuv5zY5Yb 7Le37LlLonLdHKCkYv1FHN8Nn0IiScgXxbcYcl6OIYVOgGAEAIsvvNr9AlloEtH1Qf4X RoBF+WLJbnvRLVm3BFgSjAsCCdl8k9hsnNeGw0+iYojVhTbthGRzcC1N+7v7oJpxp6uF FfZ0CJSn83CgaWIZanPHfJb+ssWs/Ew77PIblwtXQku/tL+czw/cGkT4m9wrfN0GujAY QRRQ== X-Gm-Message-State: AOAM533wSsDrJ7ZK1G2JlII69ilAznUFPchDDHtuHglTSYhQ8TEGwejW qltdMWLw7/28TiSAHb5mkXTzmZt3Mse4gg== X-Google-Smtp-Source: ABdhPJxjPfHKqDYhLsD9bYCmafIYV10jgxuKiVZJ+Lvlnb5L9Pz3huWmhGQK5svhZyZYSh/BgskGxg== X-Received: by 2002:a17:90a:d0c1:b0:1d2:c00a:8656 with SMTP id y1-20020a17090ad0c100b001d2c00a8656mr4479035pjw.235.1650461252780; Wed, 20 Apr 2022 06:27:32 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id v1-20020a62c301000000b00505bc0b970dsm20325229pfg.178.2022.04.20.06.27.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 06:27:32 -0700 (PDT) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: [PATCH v2 35/38] test-ol/org-toggle-link-display: Fix compatibility with old Emacs In-Reply-To: References: Message-Id: <41816a9547d71f2b599f47246139a7da7859b15f.1650460489.git.yantar92@gmail.com> Date: Wed, 20 Apr 2022 21:28:25 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650464310; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=C6KB91M4/6FKQi1PdnOVyEOfXt/DmYdZ5k+TVlsodvw=; b=QtFmhXvFLLbKmOz8WQIK85591H/uwz9oShRhtRGAAKvk7DKl9zMsmnn+ybp4BY4AyC+X8q BnYhTmZarm6GI6yHiUr+Xg5dMwObAEgYSkwlGrbNpm+iSWD9R6U7yF1noJ2KJ7ChGXwx+p jfPV9Pviq3rk12sTyTWHoCjAE0sOEYGh6TMtofj34K9XIZF/4ZCM+sT+8QFpPor8KgpQJ/ YX675srtCZ4gd8CUSL6wFQSZQsXEvwK3nwo7LGKhg6GrldUPIlpmMXyqUx6+KTNRHZh+eS 552wLNW9l/w7ME3iwqmaEkEJ7A/xtFwu2CwIPd6b8dnRC43vjcId7odM0tah0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650464310; a=rsa-sha256; cv=none; b=ricyN1ootmu+yTu69vdyWeOA/qZ1TMQuPYf+8bV76Y0wz5WuUX8uKs9mLS8/VHibN2vU53 0fpCMWsGQVg9KppdSrSZsJ2iLZGD9MgIhKiYM2V/pcmYaX1mqpQ5HhY+VzoEvNQcfWFz1K veUo5nBp3zkoSCm32WSNMLkg0Enw2q4ZP+vVgYeZR9IkUcJjstyauo/A9ypGa7QM7yVo5X o6lSZW2SMgdbYRGikULXklr0tbi+mToiaOfqiXFWfvW6moc6SlrYHOr5QE/G7g/+bcyE3R DYQTVQGyuFH5DQcP1Mgq+8T4FPnX5oJrgWu1Rv2abxHnJcyJ0bfy/7kQFiDprg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=WZiQNSXH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 7.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=WZiQNSXH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: D311110CE5 X-Spam-Score: 7.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: J2UbYyOdf1V8 * testing/lisp/test-ol.el (test-ol/org-toggle-link-display): Use back-compatible `org-xor' instead of `xor'. --- testing/lisp/test-ol.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testing/lisp/test-ol.el b/testing/lisp/test-ol.el index 343631623..429bb52ee 100644 --- a/testing/lisp/test-ol.el +++ b/testing/lisp/test-ol.el @@ -59,19 +59,19 @@ (ert-deftest test-ol/org-toggle-link-display () (dotimes (_ 2) (goto-char 1) (re-search-forward "\\[") - (should-not (xor org-link-descriptive (org-invisible-p))) + (should-not (org-xor org-link-descriptive (org-invisible-p))) (re-search-forward "example") - (should-not (xor org-link-descriptive (org-invisible-p))) + (should-not (org-xor org-link-descriptive (org-invisible-p))) (re-search-forward "com") - (should-not (xor org-link-descriptive (org-invisible-p))) + (should-not (org-xor org-link-descriptive (org-invisible-p))) (re-search-forward "]") - (should-not (xor org-link-descriptive (org-invisible-p))) + (should-not (org-xor org-link-descriptive (org-invisible-p))) (re-search-forward "\\[") (should-not (org-invisible-p)) (re-search-forward "link") (should-not (org-invisible-p)) (re-search-forward "]") - (should-not (xor org-link-descriptive (org-invisible-p))) + (should-not (org-xor org-link-descriptive (org-invisible-p))) (org-toggle-link-display))))) -- 2.35.1 -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg