help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSGML broken?


From: Eli Zaretskii
Subject: Re: PSGML broken?
Date: Sun, 15 Jan 2023 08:45:10 +0200

> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]