From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.help
Subject: Re: PSGML broken?
Date: Sun, 15 Jan 2023 08:45:10 +0200
Message-ID: <835yd870uh.fsf@gnu.org>
References: <dcce8aea-3b3b-12f4-85f2-aba0c07671eb@gmx.de>
 <CAFsi02RcNSCkiY7Lzt4NUvT-L4OPmVksrMc7QDCBbHmzjprTAQ@mail.gmail.com>
 <48566c3d-1b27-9e93-c7c3-670a2302234e@uni-koeln.de>
 <ea5f839c-ca91-e08b-fd74-0e0dfd247246@gmail.com>
 <28e2242f-4342-ef6b-bac6-5812051f7889@uni-koeln.de> <86k01qn3cl.fsf@gnu.org>
 <3663b0c5-f840-f669-8cf3-bcc47756ce92@uni-koeln.de> <86lem661lc.fsf@gnu.org>
 <65427237-3fb9-6d65-a33c-c9206bd73718@uni-koeln.de> <86fscdpci7.fsf@gnu.org>
 <cb34e273-03dc-ecc9-2c2e-87fe2eefdcbb@uni-koeln.de> <83bkn07w6l.fsf@gnu.org>
 <2f50c9b6-e358-2b01-0d52-c07f67545d9e@uni-koeln.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="27092"; mail-complaints-to="usenet@ciao.gmane.io"
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 15 07:46:03 2023
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geh-help-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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1pGwmJ-0006rM-86
	for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 15 Jan 2023 07:46:03 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-gnu-emacs-bounces@gnu.org>)
	id 1pGwlX-0004AX-2M; Sun, 15 Jan 2023 01:45:15 -0500
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 <eliz@gnu.org>) id 1pGwlQ-0004AC-JZ
 for help-gnu-emacs@gnu.org; Sun, 15 Jan 2023 01:45:09 -0500
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>) id 1pGwlQ-0006zy-83
 for help-gnu-emacs@gnu.org; Sun, 15 Jan 2023 01:45:08 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=67dD+tcnizFnQ58k7ec4mEpWh2UQHxGPrfZltcqurJU=; b=MaCmJ4XBUUjhJRtgiD0l
 v+O7m4ocuGvX8+lo/EKi0pAIvMHSNbMjvvcHrw1tGatQZipZdrH9jzet29wkit0sGWizm2dyxKRVt
 p6xc1IYGlobylTHiG0U/DTXOyGznJCxXAVAgaogZhQz7AaWkB+ySvUR9X06n2V9p4+WFnfCKrdA32
 HrZijZGZBI7w55ya6OsBqMcuoUndB9DIgjZMeqUV2KRAQPW/hqwNY4xcCrZA0IYUfKXFgVvOrJBl4
 eVd7TZJKJmHPvzWC1E7R05ncDUWnEc1ZvKbFvSSK5snXLBrqEOdYh/s5Lsyrr39i13NAbX8jwZMsP
 0TNTZd6/3VtI8w==;
Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>) id 1pGwlN-00058g-CG
 for help-gnu-emacs@gnu.org; Sun, 15 Jan 2023 01:45:07 -0500
In-Reply-To: <2f50c9b6-e358-2b01-0d52-c07f67545d9e@uni-koeln.de> (message from
 Ulrich Deiters on Sat, 14 Jan 2023 23:12:13 +0100)
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.help:142241
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/142241>

> Date: Sat, 14 Jan 2023 23:12:13 +0100
> From: Ulrich Deiters <ulrich.deiters@uni-koeln.de>
> 
> > Can you tell enough details for us to try to help you more efficiently?
> > Like (1) what was the PSGML version you had installed before, (2) what
> > exactly doesn't work -- show some file, tell how you try to use PSGML,
> > and what happens that shouldn't?  Also, are you sure "M-x sgml-mode"
> > invokes PSGML and not the sgml-mode that comes with Emacs?
> 
> … with pleasure!
> 
> The old psgml version, which is still shipped with openSUSE Leap
> versions <= 15.4, is 1.3.2. The most recent version is 1.3.5.
> 
> The Emacs version shipped with openSUSE Leap 15.3 was 25.3.1.
> The version shipped with Leap 15.4 is 27.2, and the latest version
> that I got from GNU is 28.2.
> 
> emacs-25.3.1 with psgml-1.3.2 works.
> emacs-27.2 with psgml-1.3.2 fails.
> emacs-28.2 with psgml-1.3.5 fails.
> 
> When I run emacs-25.3.1 on one of my XML files, it indicates that it is
> in the SGML mode ("SGML" written on the bottom line, SGML menu in the 
> menu bar). Whether this an emacs-built-in SGML or PSGML disguised as
> SGML I cannot say.

I can: it's the sgml-mode that comes with Emacs.  PSGML shows "PSGML"
on the mode line.

So I think what you should do is:

  . start Emacs
  . type "M-x load-library RET psgml RET

Then try visiting your XML files and see if things work better now.
If they do, I suggest to add this to your init file:

  (autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
  (autoload 'xml-mode "psgml" "Major mode to edit XML files." t)

(These two lines are from the PSGML manual, which comes with the
package; did you read it?)  This should cause Emacs to use PSGML for
sgml-mode and xml-mode, and you should see what you were used to see
in Emacs 25.