From 810f33f50b7c47250e41fb23387a96d862162452 Mon Sep 17 00:00:00 2001 From: Lucien Pullen Date: Thu, 18 May 2017 01:54:05 -0600 Subject: [PATCH] * psgml.el (sgml-validate): use (compilation-start) for recent emacs The procedure (compile-internal) has been deprecated since Emacs v22 and is removed in at least v24.4. --- psgml.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/psgml.el b/psgml.el index 9ab7eef..eb98071 100644 --- a/psgml.el +++ b/psgml.el @@ -1133,9 +1133,11 @@ and move to the line in the SGML document that caused it." nil nil 'sgml-validate-command-history))) (if sgml-offer-save (save-some-buffers nil nil)) - (compile-internal command "No more errors" "SGML validation" - nil - sgml-validate-error-regexps)) + (if (< emacs-major-version 22) + (compile-internal command "No more errors" "SGML validation" + nil + sgml-validate-error-regexps) + (compilation-start command nil nil sgml-validate-error-regexps))) ;;;; Autoloads and hooks -- 2.3.4