From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Generic Elisp mechanism to declare file/URI handlers for Emacs Date: Tue, 19 Sep 2023 21:25:22 +0800 Message-ID: <87h6nquwfx.fsf@yahoo.com> References: <87v8d66r7l.fsf@localhost> <87led53q0c.fsf@thaodan.de> <87fs3bkho4.fsf@localhost> <835y47g2b2.fsf@gnu.org> <874jjrk48q.fsf@localhost> <87cyyfwqs5.fsf@yahoo.com> <87sf7ao1o0.fsf@localhost> <87wmwmv13q.fsf@yahoo.com> <87cyyenwge.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20582"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: =?utf-8?Q?Bj=C3=B6rn?= Bidar , eliz@gnu.org, stefankangas@gmail.com, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 19 15:26:57 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qiaki-00055J-JQ for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Sep 2023 15:26:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiajm-0003mW-7w; Tue, 19 Sep 2023 09:25:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiajX-0003k8-So for emacs-devel@gnu.org; Tue, 19 Sep 2023 09:25:44 -0400 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qiajS-0004ZT-AR for emacs-devel@gnu.org; Tue, 19 Sep 2023 09:25:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695129934; bh=F3SXJ7ppQe09Z9dfxaBrIlkpeMMLNc+u9pYF5Qx58zA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=iWsgqTx+QNXDIeC/3/RtR7F8Z2QciqsT4T9zgX8UNygLoXpiLIepbuUCFhp1ABozLTmtK91bbVSMRDh9rM6b/chu6zfvrLBpExho2S/N116zPrvFFKKxsI7FpOQKFSKgxj8lEPeJeoo2pKQuyVMVH7v99yy9bDAo3tx72UvI+zSF4Wu8K7Dh81My8kJH/QfY24SxWfuhMWXPF9G2isYm4nYIAVb0RIdqE9JrvmvNR/76vMQYJQxixb7WQsV82JlhCrBjrRT0yHw7xUHrGf/7tyrb7fdMAI6phHYmfhFeeTDS14MUZRNa2w+GmdbOS0kb7nLsAiX5ye8xgGQ1cszj+g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695129934; bh=uaonbMFsruDdKRykxDO6YdGdc1kxNDZtpS/UUVMbfdl=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=l5FJgDcLnHWBHKCmSgG4tKoJGtWCmHGqyyA7i9Pb8aUbXLI+OKSmUYles5aFELs5B/CoNmd0XcjMn6dXteuPK0YN/GWXBG9SLYOVrS2RBn5DAVZWIoyZdf1C+EpYPtylxBMxBSIkE3fC6viamJZZ9zGQJGY7t9IZP1ZmyVYLKeio3agU9laf0djuj7cp8MQyUt5wb787qbhvCVIrZf0vJ+oafcPsQT1+uo30MF5wPKJw6DxUx1kapf3T4P8HCb/BAB3CLnfhSC78rmpq47r3iqzODE8iTeiSDUtRcU8fOBpdXi32chINMtT3QrqKJBUuwe06HMCzgC/EwUi80F38vQ== X-YMail-OSG: nzI5WoMVM1mJ3YayLLvYSKdboQyMjVCu1jkWOR_W3GJVoug0wel3WSLXKxObx6y AAj99amvXVsHOHFZYrAyr4P.bsRUlg9mTN1Z2XDwXO0ssEmARLit1ugv3eMV22w0hdOD9RenSlI4 13C0renDptr5o73Vc7PU9WYRW72q77B.37lKxMM8zKYDZAd2Tno4nEsa6aUVPSMTctRQeiGmZ7DH L2JQY6XTrgm1CZpevzJs_Gsu.ypifyxKi1huXxvDxP3MP8j6MgIksJyT54mqy0IkaqQUoV1V33Nj 3a.rTvmALTOw.739m8pnhI_kgVZygqiM.5GFKVdSVhrO21XUQFOFauE8muMROTp2iu32OsvscyLo BN0PoTBHNGvJHlfeUhpfO4qjh0xyvpLQ6U6RcY2Eh4fjAp0jiK96poEp2hwGrareYGZhDyo43.cN WwFVyphMbduuZYku0U7LZrjTNSuEioJLM8CZmKvXsN48gR8dj2eduMkUy0hD_ZvUVwGJwE5zURn1 xDUWLbMr9t22I2VjZbo.C_J41wpBAMbKIdr6FvyV_IB_5EWyokKQGDpDil53R3EPgWEALgjt6Xk5 2z8RI_9Ekc05dAe.dkqQjEMIFRd_nnXY1dpN17PPdDb23BrJnaPYzK2i4cFR0FDGHMe001q4rYh6 hh8c7Xbld47tN7csiYuOEraUXWwVW6eEl95kRzEMbHNR3ZhlOlNwf2CKgsrkZE6CQ1B75ALTSOIF .6XKxcoTV95b8_Rs4aS19Q4DtaEFhTtMj47TFc_ajmZvH_YnZIfOMaZkgX7UC_cA3wDXh84IXxfB bldmwzkOHBmL8uNeK_jpdfiIj3rM.OB7VZdeDpNcZZ X-Sonic-MF: X-Sonic-ID: 43d60ab9-8073-4fbf-99fe-f590908b0cab Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Tue, 19 Sep 2023 13:25:34 +0000 Original-Received: by hermes--production-sg3-55c667b499-jt2w5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5b13bc37e48c7d1e7bede8f81157c3a4; Tue, 19 Sep 2023 13:25:28 +0000 (UTC) In-Reply-To: <87cyyenwge.fsf@localhost> (Ihor Radchenko's message of "Tue, 19 Sep 2023 13:06:57 +0000") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310760 Archived-At: Ihor Radchenko writes: > I agree that it is not difficult. But it is very easy to miss > implementing a new scheme on _all_ the supported OSes. For example, I > have no idea if Emacs even provides something similar to .desktop file > on MacOS and Windows. It does not. > I mostly thought about file type handling. > Wouldn't it be nice to allow built-in major modes also make Emacs > register as application capable to open the corresponding file > type/extension. > > For example, consider that we have built-in clojure-mode at some point. > Then, it will make sense to tell OS that Emacs is able to open .clj > files. Same for any other new major mode. > > Not every major mode author knows the specific ways how Emacs implements > file type handling in different OSes. Emacs opens all text documents, and Clojure files are a kind of text file. And be that as it may, operating systems use different names to designate each kind of text file, so expecting major mode authors to understand every one of those names is unreasonable anyway.