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 ms0.migadu.com with LMTPS id sy3KCnvatWBsCgEAgWs5BA (envelope-from ) for ; Tue, 01 Jun 2021 08:58:03 +0200 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 aN+tBXvatWC+GQAA1q6Kng (envelope-from ) for ; Tue, 01 Jun 2021 06:58:03 +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 661EA12DC6 for ; Tue, 1 Jun 2021 08:58:02 +0200 (CEST) Received: from localhost ([::1]:59490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnyLg-0005jP-38 for larch@yhetil.org; Tue, 01 Jun 2021 02:58:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnyKj-0005ib-VS; Tue, 01 Jun 2021 02:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnyKj-0007AO-O7; Tue, 01 Jun 2021 02:57:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnyKj-0005nx-M3; Tue, 01 Jun 2021 02:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#12972: 24.3.50; Move `org-open-file' and associated code out of Org mode Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Tue, 01 Jun 2021 06:57:01 +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: To: "Drew Adams" Received: via spool by 12972-submit@debbugs.gnu.org id=B12972.162253059122265 (code B ref 12972); Tue, 01 Jun 2021 06:57:01 +0000 Received: (at 12972) by debbugs.gnu.org; 1 Jun 2021 06:56:31 +0000 Received: from localhost ([127.0.0.1]:35575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnyKE-0005n3-Qy for submit@debbugs.gnu.org; Tue, 01 Jun 2021 02:56:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnyKD-0005mn-2L for 12972@debbugs.gnu.org; Tue, 01 Jun 2021 02:56:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MZn2g4W6UPirdgx4fLUATM0bG6sgAPAdTP0GPr5SPXw=; b=b861i8m1jh+KItfIbBlbwCqSxE mHzi1TKcfSdy2/UrSyGw2N7SWWn+FehgCdimEqVKyQToOxB6RkRwubhZ/O2XfHv0Oi5oHTHtev8/W wjzbhrNO91d+OFFxA/O2+JqTnNY+Pc+NgSrrfbNXjCuaM6HF2w3xEOKquEy1a3F+OTIA=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnyK3-0004sm-Ul; Tue, 01 Jun 2021 08:56:22 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: 75 Dollar Bill's _I Was Real_: "I Was Real" Date: Tue, 01 Jun 2021 08:56:19 +0200 In-Reply-To: (Drew Adams's message of "Fri, 23 Nov 2012 11:13:19 -0800") Message-ID: <87r1hmdqek.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Cc: 12972@debbugs.gnu.org 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=1622530682; 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: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=MZn2g4W6UPirdgx4fLUATM0bG6sgAPAdTP0GPr5SPXw=; b=CR1TuwZmHmnrV27CAbQUDbwsKRGmyNmbSxjFXo8HlKe14rQRNWPWPELKCzyfhlCnRdaItH TCaq5PcfMukSlMBtvoCxCMVlBSQ92yCOLWt2J2dUipwTmCbqL0SQo31DFbj1bbfzWIPlEo 057D8R9k1HnZSzPTvYFdj/xrFP9LxCJSwQxe/yeh4mnXBLOK2CZA08u9Dg16YQETfbDwI2 knGuhU7eC6H9bOoJQsJopfeP27hMRntpiU7f1uXag9uyZpmmy6kvGobwm3UjpbVywYdrOq gTPx2PiCsofTK6TfKyFCZVp6P7j74IabCr26oSBeTJAXEy54PAugOWbx34GiyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622530682; a=rsa-sha256; cv=none; b=WCBPtHZNV+nI/sYj8dbjp17QT66ChIIX/gnNtCMrAdX4UhLEl2yNILysD6jQr2JBn/KdtK VPbdywTtNPkZtgWbyN41EpUQUSzTNpdjH2Jy25X/z69wIx/gZxluMEuXsKak2Rrf73gd/Z TrWTWkCBlbq9crlBondgKpKLE7h99Xqkw8e703DZo/MtqKnOiFRgLhPYzWxw1ifWjpWvZK DZUB5+I9rEkXRbYwrWs9ZzIjCXV/wuTsT+n4ex5TCocqMTcy0+vXBxAxMetXh2eXi1IktK /tb8118OIhYHJ/NLWLUXTlwGC/CkJTY6JKzo3lb5IqWD0svYGRCwgH+6nGVrtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnus.org header.s=20200322 header.b=b861i8m1; 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.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnus.org header.s=20200322 header.b=b861i8m1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gnus.org (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: 661EA12DC6 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: n9HcaEffoKbj "Drew Adams" writes: > IIUC, `org-open-file' and its associated code, such as `org-file-apps', > `org-default-apps', and `org-apps-regexp-alist', have nothing > particularly to do with Org mode. They constitute general-purpose code > for opening files using associated programs. Code that uses them > should not need to load the Org code, and this code should be > maintained separately for general use. `org-open-file' is too Org-specific to move out of Org. But there should be a command to do what it essentially does outside of Org -- that is, use ~/.mailcap to determine what viewer to use. So I've now added this to Emacs 28 under the name `mailcap-view-file'. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no