From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#47877: [PATCH] Respect sgml-xml-mode Date: Tue, 20 Apr 2021 18:45:18 -0500 Message-ID: References: <87eef7pgkl.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24071"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47877@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 21 01:46:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lZ04J-0006AE-Un for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 01:46:11 +0200 Original-Received: from localhost ([::1]:50184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZ04I-0003iW-JY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Apr 2021 19:46:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ049-0003hy-T4 for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 19:46:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44841) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZ049-0003YV-Jt for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 19:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZ049-0000OR-IG for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 19:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Apr 2021 23:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47877 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47877-submit@debbugs.gnu.org id=B47877.16189623261455 (code B ref 47877); Tue, 20 Apr 2021 23:46:01 +0000 Original-Received: (at 47877) by debbugs.gnu.org; 20 Apr 2021 23:45:26 +0000 Original-Received: from localhost ([127.0.0.1]:56387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZ03a-0000NP-3m for submit@debbugs.gnu.org; Tue, 20 Apr 2021 19:45:26 -0400 Original-Received: from mail-pf1-f180.google.com ([209.85.210.180]:43549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZ03Y-0000N7-FM for 47877@debbugs.gnu.org; Tue, 20 Apr 2021 19:45:24 -0400 Original-Received: by mail-pf1-f180.google.com with SMTP id p67so21938387pfp.10 for <47877@debbugs.gnu.org>; Tue, 20 Apr 2021 16:45:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=68NQi2R2xOE3PriMByfxgiX/sNestsYCIBNslSl7gd0=; b=HlKe8Q7pwu59oCX3cJ2JsRb2df36jao+JSWbaOJH6cx5eEL+Gair+1wS0Xr6qWGVyO Qm8cecB1iJR58jMqYRH8eVjMH7bv1UNWwPycKqnKcHMKwFUurHNTebBwEusjOLcubtlf 5IRDV3EkmWqelV+L9VglI9qPJLgq1iSpXSfbV3Arvk1aHvQgRUQBFXmrD3aV36EoiJGI LyNzoM/JRMIPMudJudDVldgT0EtxD787gyGeSBwAr5zaOnfFREx3Uro1MQIaF2+Ar5tL OrDaWiL6iUOOCNEwAHkE0znbAVktyaeJQ/yuOvVesdQ42YGBPYibwrCqXRYZKyOEIa9s X+yw== X-Gm-Message-State: AOAM532paqiEyLS01G3vXEYZYHsrLwWOAseJq59xkT+4DjKWmQrnb+Fh cep/+jiMiVriwvLt45ZAqm7Ra0Va8Hl3lH+tW48= X-Google-Smtp-Source: ABdhPJxOHrQhruvGFEGFfpReeEQcRojlJOOqb2QWLtJK6MjCiWmqr4jOmLVo26dgOqLt7CJLOMaky5OwuGKPQST0MTE= X-Received: by 2002:a62:5bc1:0:b029:20d:69a5:189 with SMTP id p184-20020a625bc10000b029020d69a50189mr27229592pfb.57.1618962318693; Tue, 20 Apr 2021 16:45:18 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 20 Apr 2021 18:45:18 -0500 In-Reply-To: <87eef7pgkl.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 18 Apr 2021 18:56:26 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204559 Archived-At: Philip Kaludercic writes: > sgml-xml-mode is a user option that is over-riden by smgl-mode. When I > customize sgml-xml-mode to be enabled for every sgml-mode derived mode > (specifically html-mode), it is disabled because a HTML file does not > have to be a valid XML file -- even if I would want it to be. > > This patch only sets sgml-xml-mode if we know that the current file is > an XML file, but leaves the default value if it cannot be said for sure. Thanks for the patch. Your explanation sounds reasonable, but could you perhaps provide a recipe for how to reproduce this problem (preferably starting from emacs -Q)?