From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Neidhardt Newsgroups: gmane.emacs.bugs Subject: bug#34346: 26.1; Big hang when opening text (racket) files with .art extension (image-mode) Date: Wed, 06 Feb 2019 21:53:26 +0100 Message-ID: <875ztwej09.fsf@ambrevar.xyz> References: <87ftt1m73g.fsf@ambrevar.xyz> <83womcsyub.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="120302"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.0; emacs 26.1 Cc: 34346@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 06 21:57:19 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1grUFz-000VBj-0V for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Feb 2019 21:57:19 +0100 Original-Received: from localhost ([127.0.0.1]:58452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grUFy-0002Vt-0a for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Feb 2019 15:57:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grUFa-0002QJ-PZ for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 15:56:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grUCp-0001QF-2t for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 15:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grUCp-0001Q9-04 for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 15:54:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1grUCo-0005t6-F0 for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 15:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Feb 2019 20:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34346 X-GNU-PR-Package: emacs Original-Received: via spool by 34346-submit@debbugs.gnu.org id=B34346.154948641822601 (code B ref 34346); Wed, 06 Feb 2019 20:54:02 +0000 Original-Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 20:53:38 +0000 Original-Received: from localhost ([127.0.0.1]:36195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grUCQ-0005sT-58 for submit@debbugs.gnu.org; Wed, 06 Feb 2019 15:53:38 -0500 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:43139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grUCL-0005sB-5V for 34346@debbugs.gnu.org; Wed, 06 Feb 2019 15:53:34 -0500 X-Originating-IP: 90.92.41.33 Original-Received: from bababa (lfbn-1-12225-33.w90-92.abo.wanadoo.fr [90.92.41.33]) (Authenticated sender: mail@ambrevar.xyz) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 5DEBB240007; Wed, 6 Feb 2019 20:53:27 +0000 (UTC) In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155193 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Not sure I understand: are you saying that hello.art uses an extension > of some image files, but is not an image? If so, why is that a bug -- > these things can happen with any file, and removing an extension just > because there's one example to the contrary isn't necessarily a good > idea. >=20 > Or did I miss something? Sorry if this was unclear. Extensions and actual content don't necessary match the auto-mode-alist map= ping. If the extension does not match Emacs' expectations, it should not freeze i= t for a minute and almost halt the computer to a grind. In other words, Emacs should fail gracefully when image-mode does not make = sense with the actual content of the file. Does that make sense? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlxbSUYACgkQm9z0l6S7 zH8neAf/YoXrg4CXZZROBDpnVrMzLsY0bekw0SY41fN+arkupESNPpJ6mFuByP9q LKaRW3b5PAp01hJiDsx/bLs0S9lR//NaiUwodW28QDSU/7fn/BDhZavGoyKm/7GK /pTLsydCk2P6m85nSp1/OUO5x9L5cGG3S9bN45SgkoD3ikvnyrYiQGg+x16CE5D+ HJcxRHkg5NEJiEoA2akSwWdKaQKJiN0ppRmKxytYT5q7C1PbHoG9mYCP+RSL/rtn hb6RB37PD1W8DLO6fj1O4VdJTdJLPbTrOtEGCrdkzZZ5kj3kxzohHFsBsN5SBtXz 2aL4lV2EVpgDub7ptMTLvRg8I6OBTQ== =qxvx -----END PGP SIGNATURE----- --=-=-=--