From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 QPJ6DKaBi2LA9wAAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 14:44:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qABgC6aBi2KvBAAAG6o9tA (envelope-from ) for ; Mon, 23 May 2022 14:44:22 +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 C000FD37D for ; Mon, 23 May 2022 14:44:21 +0200 (CEST) Received: from localhost ([::1]:40514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt7Q4-00077i-Oy for larch@yhetil.org; Mon, 23 May 2022 08:44:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt7Mh-0005rL-Uq for emacs-orgmode@gnu.org; Mon, 23 May 2022 08:40:53 -0400 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]:41886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nt7Me-0006xR-JS for emacs-orgmode@gnu.org; Mon, 23 May 2022 08:40:50 -0400 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-f1eafa567cso14839718fac.8 for ; Mon, 23 May 2022 05:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=irVvlpoNGDPlPlNy7gKYmWaNnxARHh3i5OYKRhAwm14=; b=ei86WwImqYL8JpNz2PbWDXe/U+EJk6t4fXJ6rUVtmdsuPYkOrr5xWXRXO6mNw9aEXe CmsOiWYpkrL3mxTvUJHza8w/I4BxH3KxYH41JbuevilVHgcsfzjZFmfW1t23VI5NHn0o hQ93Z1hfqWVzeb+up+S7zgkVh0YRgUiwkmrmGRSQymu4epPGqiG0wi3uzlIhUub+xN8R 67XCh0TVkpR2Txr1Uom1TdsRpFPvRW6HeKkKVvSJBmd1fgSMdu5Zm1iNnC71b08zcLH5 QemZvI7r2+jfWwmEXf66XFJYOEUNJ5G0HPrgAfSQoBZ6iZwjnDr9oRUHehOJss1YJG+K YnPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=irVvlpoNGDPlPlNy7gKYmWaNnxARHh3i5OYKRhAwm14=; b=y9pYog1ScT2sVcDKb/75+nlNPLZN0mZcYt2ALiJ+BwLrJMPi4fjV1Zt5v2TCmY3KOe 4n0rKL7EIFdR8qi6FJtA/SeJkcYMLrBWDtlaX6lO1Z7BtgzCV0bw9PHq/XcKiISw3eIQ ZYySj211E+ztYdN54hWjt0K52848d+iFVTdyZKKW1WtuK1BAcm2rzt9MG4VXtJY3OWkD mZRPUqpfKKsg3iyFQy3626E6pxtWulsdym5t643ZkWd1jmSwuPmhgQRGZfunlGvzjksB 5VFxpayKBzqWZs2/ds2nCtqGUJ7GTiOc1VGaCeEuZLBY2aNTSJpp+7+wP7zRPCR4T1bG xwPA== X-Gm-Message-State: AOAM530BTyx5VAxiyH08Rr9il5KoBZIq4BXKiDhasY0HHX6YKku8Xu7b Q2LbY2WO/lSucgUrdu0MrYs= X-Google-Smtp-Source: ABdhPJxeY57PDvKm2HMjb2AnfSxJcXveKjrEhY7qdk6AFtPBBxxMsE9c1Uxo5f9eENC5QBS+jyFNPA== X-Received: by 2002:a05:6870:f713:b0:d2:8adb:aaeb with SMTP id ej19-20020a056870f71300b000d28adbaaebmr12139864oab.111.1653309646177; Mon, 23 May 2022 05:40:46 -0700 (PDT) Received: from [10.65.33.48] ([96.44.191.132]) by smtp.gmail.com with ESMTPSA id q2-20020a9d7c82000000b0060b07fdeee0sm2081167otn.60.2022.05.23.05.40.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 05:40:45 -0700 (PDT) Message-ID: <0d8e9eb3-8b4f-127b-2293-2dfd182cd2cf@gmail.com> Date: Mon, 23 May 2022 08:40:43 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Bug in 9.5.3 org--file-default-apps Content-Language: en-US To: Ihor Radchenko , Max Nikulin Cc: emacs-orgmode@gnu.org 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> From: Craig STCR In-Reply-To: <87ilpz3bi0.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4860:4864:20::31; envelope-from=craig.stcr1@gmail.com; helo=mail-oa1-x31.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, NICE_REPLY_A=-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=1653309862; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=irVvlpoNGDPlPlNy7gKYmWaNnxARHh3i5OYKRhAwm14=; b=X5JaBkVTnhcVWXqCnNTrAXQl3qXI0lqDQVOa2Z8J49eDOk82absr9Fa7NEDKLo5gYDWRwL qXOb20N/Z00fT5olAsgpfsaasuKnA++kSPPouDkqhDdKDC0BP74jPCxdqZc2uFNDAfujlQ cKOSZpdbgtHMjORGF1ihkJXkIMHfVG0E6P/9c9/OdXeZk914iEQza5wS9F98DvFRhAOnqz 4+tnxcyeY4BbwZiPXsu8YQjVB0YmOHIQfTXhAN4SItgz/mb+GcUIyWIixykOJZA8rTvAND FysHd8oqYKhL222huQYQrhvj7p0dyhmby9g0ZuWOZkcVonSJTuPHsey/AbNHFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653309862; a=rsa-sha256; cv=none; b=MfJ0OQq9HljH4oEM2FRYil2Es0ld+rLVi6kwJRSdrZcZXDIZVhJObuHfq20I6wKe0rJac7 o+BQneAeBtrkQP/IFTl5xZG44E+cjD+LjChgV0BmbUj/efCszkWckhTfUZcbBXbpokOus2 OjQEDzzXTy3OWQsUFuRnX3KS+U8pOOWd6Bmjr2PUADrpnx2wdT0ERIEZ0o2hZq0khDSgva f910eeYfF9lmqSS2eCA61ebOpj0GsyJ2w3Mfo/PfWrhMhhC7qsQ4ZPM7qV2CVib2OJ9mIn bpOEC4v7P8wVQqZLc/9ZajG0QCaDmzuy/JLqVcf4vNn9LhHAqI+AQP5KcOGtIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ei86WwIm; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ei86WwIm; dmarc=pass (policy=none) header.from=gmail.com; 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: C000FD37D X-Spam-Score: -4.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: G1ElgS/Yjb9b Thanks all for your help! On 5/20/22 9:44 PM, Ihor Radchenko wrote: > Dear Craig, ... or provide plain/text handler in ~/.mailcap. > OK, I did a first-try on this and was unsuccessful, but I'm sure it's user error.  I need to refresh my knowledge on how to customize user-local mime database, and that will write-out a new ~/.mailcap, etc, I think?  I've done it before, but it was awhile ago, and I wasn't paying attention to ~/.mailcap when I did it.  I know for Gnome I can create a .desktop file.  But I know there's a way to customize user-local mime database without Gnome desktop.  I'll take a closer look when I have a little more time. On 5/20/22 9:44 PM, Ihor Radchenko wrote: > However, I am not sure what to do on Windows/Mac. Maybe try a quick-and-dirty, cross-platform solution that checks non-binary files for a first-line shebang?  Could use existing Emacs hooks that determine major-mode when opening files. Again, thanks all for your help! Best, -Craig