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: Wed, 20 Sep 2023 17:57:51 +0800 Message-ID: <87il85tbds.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> <87h6nquwfx.fsf@yahoo.com> <87zg1h8aar.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="5673"; 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 Wed Sep 20 11:58:41 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 1qityj-0001DE-38 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Sep 2023 11:58:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qityD-0004yy-Qz; Wed, 20 Sep 2023 05:58:09 -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 1qityB-0004y0-4k for emacs-devel@gnu.org; Wed, 20 Sep 2023 05:58:07 -0400 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qity8-0002Ke-NA for emacs-devel@gnu.org; Wed, 20 Sep 2023 05:58:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695203882; bh=nlhmzgiPxUE+x2oyXiQlm04Fo/e2t9uG3aY1Ie0zfls=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=cuVUKIxOz/VpoeiWDYX3mSL15foecfvn2a37Qj2DT4S4nnYidRaTytCUd0dmhi+m7rxbYOLl3FlPsdKLFhtxQ7eTJCO/HuthgR8BW4zLvIDDrbEGztosktegrVGIdlw3N0HZYpJqp2r69YLA9aCksMdL5GxySRObooN4m906ogu9O//8WruUmsLQ5IsPbq3D+1JRNuq8jT8IW8g1QRApA2F2GetMphAnlddbzrXvo1ISrUuPy2xx+q2qWS26Sh3QrmppfvvlZuO0I1nkgYx7ZYuEzGqR26dFIOT4xCTp15x6xyrdsWeeolv6o8AGjiMZe4fh9XwcPVivXVHD96JVEw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695203882; bh=RQXcuY6EtCBAdFHKp5gQDQaGU9vi+qdyAQl7NspG47e=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=enAK8Sr10YhBwWyr23jJ2X3hOeJxm4TcASiK/L1Nyh0bOro9UfIejjCfv+A9mkUUNste2r5uZmjXuagsUkcqOYzN948Aj5M3eH5Srao8JZUmYN81BMxdNcITaEMQvAmR1my0g6QpYDLutem6PGEK57dWL+qoO48MHDVvwFBphTaZPQpKJETf0zFcM/j9EdmQ1+O0sc+YPuSmugDEDbxifAjldlyZCpt8cN87JxGSrpK8RkQNNytfsV0wVuB5nP2z15LbsWAmSHMOaoW79OjotgF6YFympJVeZ3HovTuNeQzT6eTKdOZkjG7Ro66t8O6Grn2BZXPptMEd3EByZOgO7A== X-YMail-OSG: xXICJeQVM1mm05vQ.yc7wv5Xo7BaMInm5kf27tyzmWZJvI4Gbva177OXN5Dfbuz KyTc2N8M6tH_IeVybbR5kvAiaaU1jDoNSLwyH8Vmq8EAD380ByVtgiGKA2UP4.lR0taex9cP6ptl slNYv2PUQZT_mfv3DYJ.X1mnf4rVPw5HHvq3MVnrjnHhMl3q1Oda29TtcyOMq0jYDo7riePyDAjv rDjsgkO7AXJGA4FZstJpGEeZUDrCvarTuSthYT2j9s9r1m.L2U4M8dNqcAvBg44uYywBE5xgC4Ja AWKwwbU6KbsUSbB62Tsg6LqmpAkFuSbAIaNV334YllO41sQoyBmQF6vALzYg214Xw.uRQ5WUYncy lzdopN6qaRA8UqPPtapVqYzMQUAmyqUlO72S0lHRobvC0_SZqIrrH.VlPFNd1ynRlZPGPF5q2m1e pcy47yba2152r8Jpce8d93Pum0mRk1YYmEc3gKdeeiQWulr2ip3poLk.N1AFUk.FKpIMhLDybtRi 39vUqrHnEwqnCdmqWOEENll7i8Jf8ma_mPOuOOBpHIXufeUbw6KR4l1LfVYtPzZ.6Bw1mWWRxHES V6_.6szbRm_53i2aUeTzIlWi97uhf4E9LzRqeXKGYzI9JdACDljSAOFDLFtRgE.SAqrby_uYdOJO 6cTTmbK3.VX5JzXF_htPB8r.yzJZjYGlR5I4Wb4o9hem14OOiDU8ozShApHOzAMqW4zqSUXkfhB7 fhg9GJK9Wug7UomVwfGjnzOdlRFssWtng6veTVq7Gdx9.J9ytwX8xpo0_5b9tZJvJ2ASlL7JxIfw HynlCqiSDfiYQ8gelYQWEkiDdhlOYZy6J0rn.mfR9q X-Sonic-MF: X-Sonic-ID: b15d3495-86e6-4784-9d1a-abf81a37b5a2 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Wed, 20 Sep 2023 09:58:02 +0000 Original-Received: by hermes--production-sg3-55c667b499-tw4nx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f8a1b6d201a9493b315a02ff57151126; Wed, 20 Sep 2023 09:57:57 +0000 (UTC) In-Reply-To: <87zg1h8aar.fsf@localhost> (Ihor Radchenko's message of "Wed, 20 Sep 2023 09:26:52 +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.191.146; envelope-from=luangruo@yahoo.com; helo=sonic304-20.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:310811 Archived-At: Ihor Radchenko writes: > AFAIK, this is not the case. At least, for .desktop file on Linux. > Emacs opens all text/plain documents, but not all text/* documents. > In addition Emacs opens > > text/english;text/x-makefile;text/x-c++hdr;text/x-c++src; > text/x-chdr;text/x-csrc;text/x-java;text/x-moc; > text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; > > which is a closed list. If we have something like, for example, > text/markdown, it will not be open by Emacs without explicit declaration > in the .desktop file. Then maybe that should be fixed, because under Android, Emacs opens all text/* files. (Given that Emacs is usually the sole functioning text editor when installed on Android systems.) > I thought that mimetypes is the common standard: > https://www.iana.org/assignments/media-types/media-types.xhtml > If not, it is indeed a problem. Does the IANA standard encompass Clojure files?