From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uOsgLNP9iGJXbgEAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 16:57:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AEYQLNP9iGK8SgEA9RJhRA (envelope-from ) for ; Sat, 21 May 2022 16:57:23 +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 6699C38C6D for ; Sat, 21 May 2022 16:57:23 +0200 (CEST) Received: from localhost ([::1]:40624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsQXi-0004ei-Is for larch@yhetil.org; Sat, 21 May 2022 10:57:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsQX7-0004eT-6A for emacs-orgmode@gnu.org; Sat, 21 May 2022 10:56:45 -0400 Received: from ciao.gmane.io ([116.202.254.214]:37544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsQX5-0002Mt-8m for emacs-orgmode@gnu.org; Sat, 21 May 2022 10:56:44 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nsQX1-0005aR-9o for emacs-orgmode@gnu.org; Sat, 21 May 2022 16:56:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Bug in 9.5.3 org--file-default-apps Date: Sat, 21 May 2022 21:56:30 +0700 Message-ID: References: <963d5f94-3fdf-a01b-bc91-edc99222cb34@gmail.com> <87czgeaxir.fsf@localhost> <6615610d-93ae-171f-b554-3f4cc79354cc@gmail.com> <87a6bhc1w6.fsf@localhost> <86692975-4d5f-6933-3227-c6b208f76862@gmail.com> <877d6lbsg5.fsf@localhost> <7c75b724-1ea2-5e3e-cbe6-e1895fd35bd3@gmail.com> <877d6j2htv.fsf@localhost> <87ilq14p6p.fsf@localhost> <87v8u0396t.fsf@localhost> <87ilpz3bi0.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US In-Reply-To: <87ilpz3bi0.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1653145043; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=GKI5DUqUxLeEPYyfXY9++vqC7+WUrqG04CmqKhwQfW4=; b=Qf8uIg8kJEzAWEkeJy0uns01tuYsYAuJgh0PWrlHjH7ElTURvX8kREh9eYEmKxO+eWlTJc E5npOPxMPwoN77yE7GTMxAjQ09iymD/kB/oqRWqUBhTG/qXIzcoJBrluEGNdCnoFbWGhff HXAoMgZHij/jg1v2Zk8lm4/cHP3j+sBGT+rtpfYC18OWRhcqQKSHH1yqs90Koqv1JPVBu2 khn1TlW4ZxAB3iY6ufjdYV36wFWWJ9qI/tUbel2QDwjy+UJBwOoyneRmh+yRmQdCUbF6Zy 5GARJFkwFFNbTDKaMMJf8z7I/g8pmbf1kqm0sShQmiQT2zTn7nEeVTINMLu+yA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653145043; a=rsa-sha256; cv=none; b=uOcm68bR7nHZRppPvp36dAiCgKyj7zTxzqNvlHYyxMqcv1uN8mzFwCgKFHI5SoNzgIFgty K8mg07jUj1qKry2YHuFDkgn1bFzdiY/+p+6l4ilu/nY3UAzOJXXBmK5nUgV+b/PBQnquEF IFaOIdLEsysvY6KfumdSUqtHPJMmPE5RoBGNa/4veDu7suLm1uCBO9ATqOC1ySDO3MaGmc y21jAoutrTJmsOFIE38yVF/SijT3pa90e5M3pKx7llKjRGSEAZq8jnGH/ismuEzTUkYWCl ac9gf47RxK8vR7v85R8mMTVNI+mMb5PVTWKb13qTaed56fiCNoM3weRUSsaMUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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: 2.65 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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: 6699C38C6D X-Spam-Score: 2.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: EYUwGiNmXC/W On 21/05/2022 08:44, Ihor Radchenko wrote: > Max Nikulin writes: > >> It is the same with and without -Q and no, I have not customized >> `mailcap-user-mime-data', its value is nil, easy customization interface >> tells that it is the standard value. There is a chance that debian has >> some patch, but most of debian specific is disabled when -Q option is used. > > Interesting. In any case, it confirms that mailcap behaviour depends on > both Emacs settings and also system settings. You should be even more surprised, if I say that [[file:~/tstorg]] link is opened in emacs buffer in shell-script mode (emacs-27.1, org main HEAD) despite (mailcap-mime-info nil) nil actually it is a minimal LXC container with no mime-support package installed, so /etc/mailcap file is absent. Notice `mailcap-mime-data' has the following entries for a long time ("text" ("plain" (viewer . view-mode) (type . "text/plain")) ("plain" (viewer . fundamental-mode) (type . "text/plain")) The source of the problem is that Emacs-27 was released with the following bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40247 mailcap-mime-data erased when parsing mime parts So `mailcap-parse-mailcaps' called from `mailcap-mime-info' erases predefined associations in Emacs-27.