From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iCyuEgvkFmBGKgAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 17:08:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gDIrDgvkFmCSRQAA1q6Kng (envelope-from ) for ; Sun, 31 Jan 2021 17:08:27 +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 BBA099404E8 for ; Sun, 31 Jan 2021 17:08:26 +0000 (UTC) Received: from localhost ([::1]:48338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6GD3-00064U-B5 for larch@yhetil.org; Sun, 31 Jan 2021 12:08:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6GCg-000644-OE; Sun, 31 Jan 2021 12:08:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6GCg-0007xU-Ge; Sun, 31 Jan 2021 12:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6GCg-0000Tq-Bs; Sun, 31 Jan 2021 12:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44824: 27.1; Org export as pdf and open file does not open it Resent-From: Maxim Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sun, 31 Jan 2021 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44824 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: moreinfo To: 44824@debbugs.gnu.org Received: via spool by 44824-submit@debbugs.gnu.org id=B44824.16121128431795 (code B ref 44824); Sun, 31 Jan 2021 17:08:02 +0000 Received: (at 44824) by debbugs.gnu.org; 31 Jan 2021 17:07:23 +0000 Received: from localhost ([127.0.0.1]:57868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6GC2-0000Ss-TC for submit@debbugs.gnu.org; Sun, 31 Jan 2021 12:07:23 -0500 Received: from mail-lf1-f51.google.com ([209.85.167.51]:44566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6GBy-0000Sc-7A for 44824@debbugs.gnu.org; Sun, 31 Jan 2021 12:07:22 -0500 Received: by mail-lf1-f51.google.com with SMTP id p21so19532848lfu.11 for <44824@debbugs.gnu.org>; Sun, 31 Jan 2021 09:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=DD8d4lHYpebU6qRKkbM/jbZ8awnyaFEKC6RsBx9ekaA=; b=rVLzB8exTneGWbZD+uKMhJaS3b9Xz4iGt775J6sH89Z8GYWm0EYuLFjcHWuOai6ojY KHCa+baJkWxdvZqonsIvqb1lyzTi+jr261iFgZDsmQr+4q4ZcwvpPyVnbnwIFH7YjbxN ZrKl2kAq7qSSsaDCRbhxNs6T5jBM32CwAtyufbhEw0xjPeAg+Rlw3WO68K5oUSEE3Cqx Hizf6xRpLRJRyevRgMBjyjvImt+ps4YOzJCjMPEq16jkZ0/Tr3E7U/Z6EFocMVeE+5M5 2qOYufpVr61oL7JpfmenZaQ4+0D+zArTXLKPJQIZy0gcWxH1ErbyhH2veoDtnyUeZS+K XaNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DD8d4lHYpebU6qRKkbM/jbZ8awnyaFEKC6RsBx9ekaA=; b=oSgl22QZM2rmh27MdQ3taknvu7y7H65RVsrA99BKvnIWi3JI34Ob83YixsWqtOplK7 K1WCCE/8bfl2VIw+wS0WqkORAkBC4nIODXJ+EGUhsw4q2lm9qh+wAvOSf38xZQZQCZe1 WJqyQ4WLygq+kF7qNPlxj+SHZ9LOc4Xg/7/FBA83omzhv9e0mF+RiGbqCK4Oj7c4XPp6 +nENQQeAek3G1lKVZjj11jwfg+xSqjz38yeN8D91SPkIG8sOrDvpp7YkdOoAl7vEXUJj EJ1uEx8pfK1Aih9dW5YTYYfgnsqkVRvA5AfD8dZo+UUXNlMvTsfXjZRRx1VjwTPwfS3P /stA== X-Gm-Message-State: AOAM530YZnLjbMAkdZWbJeW8X/8tgMeBQh9jtWsFrtnwCU0l1IY3ZSNU aPMGb8DuE9HdvhhaEcrlBcCLE1JmMeQ= X-Google-Smtp-Source: ABdhPJzGC2CPNO3posdyflz6ccLnSffMPdYrj9OX7JOfw/Mc1KJUPvx60A4J4z9zwogF22VsM9yv9g== X-Received: by 2002:a05:6512:234d:: with SMTP id p13mr6397058lfu.87.1612112831865; Sun, 31 Jan 2021 09:07:11 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.181]) by smtp.googlemail.com with ESMTPSA id n4sm802642ljg.101.2021.01.31.09.07.11 for <44824@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jan 2021 09:07:11 -0800 (PST) From: Maxim Nikulin X-Google-Original-From: Maxim Nikulin References: <87y2gfcape.fsf_-_@gnus.org> <87a6st7oi1.fsf@gnus.org> <108399a5-66ad-eee6-572b-b3f2181e4e6c@gmail.com> <87lfccxs5a.fsf@gnus.org> <875z3f2bwx.fsf@gnus.org> <838s8aak8j.fsf@gnu.org> <83sg6i8rht.fsf@gnu.org> <5f1a0018-56a4-7f00-68bc-eeb93631f102@gmail.com> <83lfca8k4e.fsf@gnu.org> <83y2g96ta6.fsf@gnu.org> <7635bde2-8590-f555-0d3b-7fa818d812c6@gmail.com> <83o8h56p7o.fsf@gnu.org> Message-ID: <618feb1b-9c84-3fec-67cd-218b52d71489@gmail.com> Date: Mon, 1 Feb 2021 00:07:10 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83o8h56p7o.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org 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-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=rVLzB8ex; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: BBA099404E8 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: Fb3JlunZyZkn On 31/01/2021 23:33, Eli Zaretskii wrote: >> >>>> To fix the problem it is better to use (make-process :connection-type >>>> 'pipe ...) that unfortunately has no higher level wrappers. >>> >>> Wouldn't it work to let-bind process-connection-type to nil around the >>> function that starts the async subprocess? >> ... > Well, I think we should try this, because if it works, it will show us > a way to fix the problem. (I don't see how lexical-binding could > interfere with let-binding.) It is not a great problem to use make-process: https://lists.gnu.org/archive/html/emacs-orgmode/2021-01/msg00364.html I think that at least a :sentinel should be added to improve error reporting. The code just before these lines has another problem (I hope it is really rare): https://lists.gnu.org/archive/html/emacs-orgmode/2021-01/msg00353.html I would avoid shell since direct execution of the handler should be more robust, e.g. quoting of arguments is not necessary. Unfortunately RFC on mailcap states that command is executed by shell. On the other hand only a few of viewer entries have commands that could not be handled without shell.