all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ulrich Deiters <ulrich.deiters@uni-koeln.de>
To: help-gnu-emacs@gnu.org
Subject: Re: PSGML broken?
Date: Sat, 14 Jan 2023 23:12:13 +0100	[thread overview]
Message-ID: <2f50c9b6-e358-2b01-0d52-c07f67545d9e@uni-koeln.de> (raw)
In-Reply-To: <83bkn07w6l.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]

> 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 attach an XML template for letters, which invokes some DTDs.
The DTDs should be stored in a directory named $ATXHOME/xml. The
editor should be invoked as "emacs -l cfg_emacs_aux.el doc.xml".

I suspect that the new Emacs balks at something in my cfg_emax_aux.el .

Regards,

Ulrich


[-- Attachment #2: doc.xml --]
[-- Type: text/xml, Size: 252 bytes --]

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE letter SYSTEM "$ATXHOME/xml/letter.dtd">
<letter>
<from><leader symbol="space">&today;</from>

<to> </to>

<re></re>

<salutation></salutation>

<body>
<par></par>
</body>

<closing></closing>
</letter>

[-- Attachment #3: letter.dtd --]
[-- Type: application/xml-dtd, Size: 2114 bytes --]

[-- Attachment #4: common1.dtd --]
[-- Type: application/xml-dtd, Size: 1249 bytes --]

[-- Attachment #5: common2.dtd --]
[-- Type: application/xml-dtd, Size: 4940 bytes --]

[-- Attachment #6: entities.dtd --]
[-- Type: application/xml-dtd, Size: 1177 bytes --]

[-- Attachment #7: cfg_emacs_aux.el --]
[-- Type: text/x-emacs-lisp, Size: 1109 bytes --]

; customization of editor behaviour (SGML/XML-specific items)
; (modify as needed!)

(setq inhibit-startup-screen t)

; (setq-default major-mode 'sgml-mode)	; deadly under openSUSE Leap 15.0


(defun sgml-preferences()		; (sgml-preferences)
  (setq sgml-set-face t)
  (setq sgml-auto-insert-required-elements t)
  (setq sgml-indent-step 0)
  (setq sgml-auto-activate-dtd t)
  (turn-on-auto-fill)
  (setq fill-column 80)
  (setq sgml-markup-faces '(
    (start-tag . font-lock-keyword-face)
    (end-tag . font-lock-keyword-face)
    (comment . font-lock-comment-face)
    (pi . font-lock-constant-face) ;; <?xml?>
    (sgml . font-lock-type-face)
    (doctype . bold)
    (entity . italic)
    (shortref . font-lock-reference-face)
  ))
)
(add-hook 'sgml-mode-hook 'sgml-preferences t)

; provide XEmacs-like context menus
(defun go-bind-markup-menu-to-mouse3 ()
; (define-key sgml-mode-map [(down-mouse-3)] 'sgml-tags-menu)
  (define-key global-map [(down-mouse-3)] 'sgml-tags-menu)
)
(add-hook 'sgml-mode-hook 'go-bind-markup-menu-to-mouse3 t)

(find-file "doc.xml")			; load ArchiTeX text file
(sgml-mode)

  reply	other threads:[~2023-01-14 22:12 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-09 18:26 PSGML broken? Ulrich Deiters
2023-01-09 20:17 ` Thibaut Verron
2023-01-09 22:19   ` Ulrich Deiters
2023-01-10  1:13     ` Emanuel Berg
2023-01-10  7:57     ` Michael Albinus
     [not found]     ` <ea5f839c-ca91-e08b-fd74-0e0dfd247246@gmail.com>
2023-01-10 22:42       ` Ulrich Deiters
2023-01-13 10:19         ` Arash Esbati
2023-01-13 12:37           ` Ulrich Deiters
2023-01-13 12:49             ` Arash Esbati
2023-01-13 15:12               ` Ulrich Deiters
2023-01-14 11:43                 ` Arash Esbati
2023-01-14 19:12                   ` Ulrich Deiters
2023-01-14 19:28                     ` Eli Zaretskii
2023-01-14 22:12                       ` Ulrich Deiters [this message]
2023-01-15  6:45                         ` Eli Zaretskii
2023-01-15 10:24                           ` Ulrich Deiters
2023-01-15 10:51                             ` Eli Zaretskii
2023-01-15 16:37                               ` Ulrich Deiters
2023-01-15 10:57                     ` Arash Esbati
  -- strict thread matches above, loose matches on Subject: below --
2014-12-05 21:45 Ulrich Deiters
2014-12-06  1:21 ` Alexis
2014-12-06 17:32   ` Ulrich Deiters
2014-12-06 22:06 ` Stefan Monnier
2014-12-07  1:15   ` Ulrich Deiters
2014-12-07  8:31 ` Andreas Röhler
2014-12-07 10:21   ` Florian v. Savigny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2f50c9b6-e358-2b01-0d52-c07f67545d9e@uni-koeln.de \
    --to=ulrich.deiters@uni-koeln.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.