From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 19 10:35:36 2020 Received: (at submit) by debbugs.gnu.org; 19 Sep 2020 14:35:36 +0000 Received: from localhost ([127.0.0.1]:47739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJdxg-0005fO-2A for submit@debbugs.gnu.org; Sat, 19 Sep 2020 10:35:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:34944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJdxc-0005fD-98 for submit@debbugs.gnu.org; Sat, 19 Sep 2020 10:35:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJdxb-0000Ug-Iy for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 10:35:32 -0400 Received: from sonic304-22.consmr.mail.ir2.yahoo.com ([77.238.179.147]:42120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJdxX-0003kk-OP for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 10:35:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1600526123; bh=CrDozIEWNe6DaI9aQe62kMz1EqHSFbghJc5zGdoxc10=; h=From:To:Subject:Date:References:From:Subject; b=MU9oWC79xZEDwvKkXvFGjHfpTxGKhNCRnsMz/WWLScVR+GyoMt+KNuZ/KMqTuTxjCYo1B4ayeAxGnwUQjq2YUer8wmalkj+Dezh1L5DXC9YvqpiZ2XG/Zh2PxbXH2YSU33OJPscujmK+9HPVFu8VV+3s1C3ksAxVqFFML9d0sIFkWHXajuE0Ksf/9tmr7j3NqEKiudkPcsMuf1ogQW/EgrSJYxnjaCFwbjFkHFAsnUpp9zGghS8xHgAMboaXxNh6/P850eN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UI03.sj_EkR8C8Ftb_zzs.u8qKdL2hGZTtrmhcBkf3OY4nz3u.6bXSLhYMntYzlSjmRM q2gjGCNZx6aN51GeweKaNUq2DcDSyVBnAW4ObhvX3lsTLC6ISM356kpwajqo2QGas5wUhEEdwgcu fBjdtLREHRqUWpHNMuo57G.Np9X3C2y8yZNTRyGdnzXA86mKHJJJiIbuez6OzSpJ7NOUj5f61LB7 m0Q.IVhpoa6E5HxeGH81GHhD7Lc_ohRn_Nl2lPkrziTKvzvATQnI8w4ZR.vCxRUgWrWWTJX.A6Yy GMd9KYVTr4QVLe94rFKRQInefRP0juBEB9cvJ6rrwOIpvlT9kwe47f.V4NgO740dOa7IYpNrQw8a A2odsXkD7nEFSoE_mwt4jmWo.49lT5XprPyOWsuKUBoox2RVBMuKk6wcsFl60HyTz37IW2C2S6qU 6kHhTZY4SaLvLXi6pekyYuW2dERAXNiidUBOnv0dMFIJQM7ACBGHsPG8_1Bhp8oGeekKK8ZKgYvP DhlxF0wwWkmHRSzGUsDA3KOluqV5Z2.cADsoryuUp8ohHJi5ZuHpuIGJqAdegrlaspO8LJ1bjtOT tT5Da8VDeW7YD8NMcQyhCZgxK3Nk- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Sat, 19 Sep 2020 14:35:23 +0000 Received: by smtp401.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 170fc89362b6e0420424e449366cade5; Sat, 19 Sep 2020 14:35:18 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: bug-gnu-emacs@gnu.org Subject: 27.1; [PATCH] Files with lowercase doctype are not in mhtml-mode by default Date: Sat, 19 Sep 2020 16:35:14 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" References: X-Mailer: WebService/1.1.16583 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 2993 Received-SPF: pass client-ip=77.238.179.147; envelope-from=mardani29@yahoo.es; helo=sonic304-22.consmr.mail.ir2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/19 10:35:23 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain This is a regression caused by the fix for bug 36401. Steps to reproduce: emacs -Q M-x browse-url-emacs RET https://www.gnu.org/software/emacs/ RET Expected results: The HTML contents of the Emacs website are shown, and the buffer is in mhtml-mode. Actual results: The HTML contents of the Emacs website are shown, but the buffer is in fundamental-mode. The proposed solution to accomodate both wanted behaviors is to extend the regular expression to cover a "DOCTYPE" in a case-insensitive way. The standard says that's also supported: https://html.spec.whatwg.org/multipage/syntax.html#the-doctype I've attached a patch with the proposed solution, on top of emacs-27. Let me know if you'd want to apply it on top of master instead. Thanks. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Put-files-in-mhtml-mode-when-they-have-DOCTYPE-case-.patch >From aeaa1e3f8f3f68ec28488664ed2d507288f0e97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= Date: Sat, 19 Sep 2020 16:18:50 +0200 Subject: [PATCH] Put files in mhtml-mode when they have ]*>[ \t\r\n]*<[ \t\r\n]*" comment-re "*\\)?" "[Hh][Tt][Mm][Ll]")) . mhtml-mode) - ("") + (normal-mode) + (should (eq major-mode 'mhtml-mode)) + (erase-buffer) + (insert "") + (normal-mode) + (should (eq major-mode 'mhtml-mode)))) + (provide 'files-tests) ;;; files-tests.el ends here -- 2.28.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 19 13:17:23 2020 Received: (at 43511) by debbugs.gnu.org; 19 Sep 2020 17:17:23 +0000 Received: from localhost ([127.0.0.1]:47984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJgUF-0007ed-5k for submit@debbugs.gnu.org; Sat, 19 Sep 2020 13:17:23 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJgUC-0007Xa-7Y for 43511@debbugs.gnu.org; Sat, 19 Sep 2020 13:17:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=7PUc1B25E5bpwEZWXay2R6BMhXae8ZvHn6X0nHthQ1w=; b=d+lvsstAQ94XtsNgnzISvZU6zb hB1J/RSQfYZqKywgoCXM7vI6wFucnRkooVb/Dauu+pc9alDhPt7J6uLzPfV90aa/q+iG6LUWbKyVU zayXUI0L99ZVh3Tylu0B7H36QyigRKZFusz0X9zYEZqW9jb48dk4r4icHuof5ytTh1Vo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJgU1-0002Eu-Hj; Sat, 19 Sep 2020 19:17:14 +0200 From: Lars Ingebrigtsen To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#43511: 27.1; [PATCH] Files with lowercase doctype are not in mhtml-mode by default References: X-Now-Playing: Frankie Goes To Hollywood's _Liverpool_: "Kill The Pain" Date: Sat, 19 Sep 2020 19:17:08 +0200 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Sat, 19 Sep 2020 16:35:14 +0200") Message-ID: <87pn6hn0tn.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Martín writes: > I've attached a patch with the proposed solution, on top of > emacs-27. Let me know if you'd want to apply it on top of master > instead. Thanks; I've applied it to Emacs 28. While this is a regression, I don't think the impact it has is large enough to warrant putting it in Emacs 27.2. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43511 Cc: 43511@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Daniel Mart=C3=ADn writes: > I've attached a patch with the proposed solution, on top of > emacs-27. Let me know if you'd want to apply it on top of master > instead. Thanks; I've applied it to Emacs 28. While this is a regression, I don't think the impact it has is large enough to warrant putting it in Emacs 27.2. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 19 13:17:27 2020 Received: (at control) by debbugs.gnu.org; 19 Sep 2020 17:17:27 +0000 Received: from localhost ([127.0.0.1]:47987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJgUI-0007hf-Hr for submit@debbugs.gnu.org; Sat, 19 Sep 2020 13:17:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJgUH-0007cO-JC for control@debbugs.gnu.org; Sat, 19 Sep 2020 13:17:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/JMoBGlMUP77HCS7S1wD/CAusT3ORA2mGPqYSbUon48=; b=Cy6jgXY6mGbrvb9or/brK5VUcM pASUeVSZEgYp8LBnUuyC9mD/HwRcpR6wukyxBNRJiewQCAkP5Uy2vX8jHJ0ZoWTnUZZMIOC7M7hNo qEyj3A1kc+F3rq5jV5Saf7MHcPDbS+rj6WEUfDyB5DRZhPkXswrDbB1BAxip7MaO1+B0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJgU9-0002FL-RD for control@debbugs.gnu.org; Sat, 19 Sep 2020 19:17:20 +0200 Date: Sat, 19 Sep 2020 19:17:16 +0200 Message-Id: <87o8m1n0tf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43511 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 43511 fixed close 43511 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 43511 fixed close 43511 28.1 quit From unknown Sat Jun 21 10:42:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Oct 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator