From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id g7hMDHVK4GBbRgAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 13:31:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IEFqB3VK4GAbFAAAbx9fmQ (envelope-from ) for ; Sat, 03 Jul 2021 11:31:01 +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 8743B1289D for ; Sat, 3 Jul 2021 13:30:59 +0200 (CEST) Received: from localhost ([::1]:53994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzdrM-0002qv-Jp for larch@yhetil.org; Sat, 03 Jul 2021 07:30:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzdqV-0002qZ-8I; Sat, 03 Jul 2021 07:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzdqV-0008ST-0s; Sat, 03 Jul 2021 07:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzdqU-00082a-LI; Sat, 03 Jul 2021 07:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#12972: [PATCH] Avoid regression in mailcap-view-file similar to Bug#44824 Resent-From: Maxim Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sat, 03 Jul 2021 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12972 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: patch To: 12972@debbugs.gnu.org Received: via spool by 12972-submit@debbugs.gnu.org id=B12972.162531178130852 (code B ref 12972); Sat, 03 Jul 2021 11:30:02 +0000 Received: (at 12972) by debbugs.gnu.org; 3 Jul 2021 11:29:41 +0000 Received: from localhost ([127.0.0.1]:37978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzdq9-00081Y-5h for submit@debbugs.gnu.org; Sat, 03 Jul 2021 07:29:41 -0400 Received: from mail-lj1-f180.google.com ([209.85.208.180]:36514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzdq6-00081G-Qu for 12972@debbugs.gnu.org; Sat, 03 Jul 2021 07:29:39 -0400 Received: by mail-lj1-f180.google.com with SMTP id a6so17285939ljq.3 for <12972@debbugs.gnu.org>; Sat, 03 Jul 2021 04:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=m+ABobPGrlMRHd6M92VSJY25iLxCWMykU3frB5Ik1h8=; b=bMw+hflcyj87IU5FvJqKAxhOUFEfbzzx8K9OLfd9Ac/vA8u9ft+3nbiwX9/wzhY3PI XHz+KCGiXCnTa90z+QhY74nXAX0WptykykCYM4YycfFLmiC/+ydgWIO54vJcz1nxFq0i wge8EMOIsO8VnkuVmQF9Enhoqmnt+ZHhAOjvlM32keaNzt9Q4kwP6jmELcFabJL/f/Af 7mujSIZHDzkH8pWm/781gOQQZIx7oblK5aTNkfjXmN6Hbp/PoqxfETDIk7aIlSOv8+AN vuJH0f/KXIglMaDHwvMk0f6g9UOT+NpT3Rc1Qn/GmYOLoRLZ2pXDarxJe5gOW9qjMcCi 7DVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=m+ABobPGrlMRHd6M92VSJY25iLxCWMykU3frB5Ik1h8=; b=dfIB1uLcComY2Q4qmosuda2R2rz0OG9uEMpxH6MucFZIa8Xzms3Scbv/6UOnJ+2qnl VyJOGGUiHm2ZHxAduaxOeo+5e/xfaHL6WdJoBtzhDOp5ejPeGToSPxVxh8G20LmA8CPb NUiNWc0spV9/5GgnIr4SaV5C+5653VM8Nd7ffOe97Vc2bOWaQZL0FDeB0ILMaSIW3yzM M/iNpwYJMVZ/eEEv1oGBT28j1/KjkbzvTXIzvxMcUPA+ehzaXqXhSHKsDoEGEYJLu3Oi 2x2Lhy3k10SPEgFlo3f5hlLGzUMkR4Q8hlk0dXjgGXQB3gqfX/dj6SNZW8ka55sNlcOq ybHw== X-Gm-Message-State: AOAM533DRmAd/RGmvPYEesKs7drVDISUjJ2/4sOtF7pt0FF6n0718Uro W5WTc2UM4jv23xUwwatAsFWnxpvbAFs= X-Google-Smtp-Source: ABdhPJzfEh+wxEdYjwykyZKmrIqrjWKAoR/2sRI9lTuNI3P3+h+Noq+CVz1kgC5/Q4WjWJfYR71vsg== X-Received: by 2002:a2e:9608:: with SMTP id v8mr2050749ljh.206.1625311772366; Sat, 03 Jul 2021 04:29:32 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id u24sm522268lfc.162.2021.07.03.04.29.31 for <12972@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Jul 2021 04:29:31 -0700 (PDT) References: <87r1hmdqek.fsf__16088.3597027109$1622530682$gmane$org@gnus.org> <835yxtlw14.fsf__2546.8955327355$1625164803$gmane$org@gnu.org> <1ddf1c46-0a28-4a2d-cc40-094ff74ee0ac@gmail.com> <837di8ki24.fsf__46278.4886871063$1625229533$gmane$org@gnu.org> <831r8gk4m0.fsf__14172.0669272885$1625246977$gmane$org@gnu.org> From: Maxim Nikulin Message-ID: <1825a6f3-0175-2d67-5608-41c9fb93889b@gmail.com> Date: Sat, 3 Jul 2021 18:29:30 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <831r8gk4m0.fsf__14172.0669272885$1625246977$gmane$org@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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625311859; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=m+ABobPGrlMRHd6M92VSJY25iLxCWMykU3frB5Ik1h8=; b=Qr0U3WEGdiVXXsXpfCWcfqahaaIGWUdgAjOQnNmGqfWVhQWQyfKG4p2UerBe3rcnyTEe2z xwVLei6+xkeVj1v9uy4O/+BgcNDysMumThi1ZY34imYmjm7rB97N2KEkyrzbODjnKqrJz/ eoBvlHF8DVVzHn7gzpg3kn7h+uz0d5yf2pMJcuAgbzYZyiwyDPjR5N/KZFeP7QiYttD/6T lIs7nINnDw4aVwZ7yIKrliKtcv1+AmuqiWynJbOAAesQhRgy1D7EmwxKCfoGLOexqRDx+Q JmoAyN/i+q2yWPApej42nw9TELK632UaGnrD9OjFCUnhp7BTfZZ+Gk2Bt2VMNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625311859; a=rsa-sha256; cv=none; b=KY7jDfgqJY/Q297ez8FbV6oz7DZ1GFWFrHM9ZAtsBL7odZsyTIfAoSOODLT130CcFH6stB w71q9amtDvWGg/AqK0s6/nJj+65cMzAgt14LeTjYCptXG2QcxPzhVQVZCjY6fA9oZqNzlt e1jRnHpvZG6nQV9qlwbjnwbNaX1q6NIQFS98jfeKyzKbiNFAfBH31m6U2SAp/abGwJ1ZGJ NWxGcv+0x7c++rxv8alt7LpzbmGejnIN08AzhvhKEI1CnqTxUCHTws7cMKOilMJSHQv61p V5+XQTd5dpeIeJm95QHpSEnpgW5C7tQJVbhIn8OLl/ttWY4txRMNbdn9brl7lg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=bMw+hflc; 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-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=bMw+hflc; 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: 8743B1289D X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: I0PTPhW/JRMB I am giving up with this issue. My summary. New function `mailcap-view-file' has a problem similar to Bug#44824 (kde-open5 and "gio open" called directly or through xdg-open are unreliable in Emacs, I consider it as fixed in Org mode) that was reported by several users and refused by developers as not reproducible at first. I tried my best to draw attention to this problem and then to suggest a change that fixes the obscure problem and improves error handling. I am unaware of any real negative consequences of my patch. It is up to Emacs developers to leave the new bug as is or to fix it in a way they like On 03/07/2021 00:28, Eli Zaretskii wrote: >> From: Maxim Nikulin Date: Fri, 2 Jul 2021 23:24:23 +0700 >> >> On 02/07/2021 19:37, Eli Zaretskii wrote: >>>> From: Maxim Nikulin Date: Fri, 2 Jul 2021 19:21:55 +0700 >>>> >>>>> And with other handlers, this could be an >>>>> incompatible behavior change if the handler behaves differently when >>>>> its standard handles are connected to a pipe rather than a terminal >>>>> device. >>>> >>>> Example of such handler, please. >>> >>> Why do you need one? >> >> Because of I can not imagine such case for mailcap handler in Emacs yet >> and, accordingly to you, "this could be an incompatible behavior change". > > You don't need to imagine it, you just need to trust me that I know > what I'm talking about: it would be an incompatible change. Is it a kind of Church of Emacs that I have to just believe in you? Previous time you were trying to convince me that unconditional 'pipe is perfectly safe when I was unsure concerning behavior on Windows. You prefer to keep reasons of your objections unveiled. I see no issue with the patch. It can be by a few lines shorter but the price is worse user experience. I have no idea how to move further. Finally, the patch touches month-old unreleased code, so I see no point to discuss that it is "incompatible". P.S. It was my fault to use `make-process' in Org since the function is not available in Emacs-24. I'm sorry for that incompatibility.