unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [mp26@os.inf.tu-dresden.de: Patch for sgml-mode.el]
@ 2007-11-23  4:36 Richard Stallman
  2007-11-23 15:02 ` Fwd: Patch for sgml-mode.el Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2007-11-23  4:36 UTC (permalink / raw)
  To: emacs-devel

Would someone please DTRT then ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
	autolearn=failed version=3.1.0
Message-ID: <47457D57.7010008@os.inf.tu-dresden.de>
Date: Thu, 22 Nov 2007 14:00:07 +0100
From: Martin Pohlack <mp26@os.inf.tu-dresden.de>
MIME-Version: 1.0
To: bug-gnu-emacs@gnu.org
Content-Type: multipart/mixed; boundary="------------040006040108080505080703"
Subject: Patch for sgml-mode.el

This is a multi-part message in MIME format.
- --------------040006040108080505080703
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Hi,

sgml-mode.el currently contains such lines:

(define-derived-mode sgml-mode text-mode '(sgml-xml-mode "XML" "SGML")

and

(define-derived-mode html-mode sgml-mode '(sgml-xml-mode "XHTML" "HTML")
.

This violates that the third argument of define-derived-mode shall be a
string.  Furthermore, it results in "mode-name" not being a string for
html buffers.

The attached small patch against current CVS fixes these problems.

Cheers,
Martin Pohlack


- --------------040006040108080505080703
Content-Type: text/plain;
 name="sgml-mode_mode-name-fix.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sgml-mode_mode-name-fix.diff"

- --- sgml-mode.el	2007-11-22 13:52:32.000000000 +0100
+++ /usr/share/emacs/23.0.60/lisp/textmodes/sgml-mode.el	2007-11-22 13:50:10.000000000 +0100
@@ -408,7 +406,7 @@
 	 (eq (char-before) ?<))))
 
 ;;;###autoload
- -(define-derived-mode sgml-mode text-mode '(sgml-xml-mode "XML" "SGML")
+(define-derived-mode sgml-mode text-mode (if sgml-xml-mode '"XML" '"SGML")
   "Major mode for editing SGML documents.
 Makes > match <.
 Keys <, &, SPC within <>, \", / and ' can be electric depending on
@@ -1890,7 +1888,7 @@
 
 \f
 ;;;###autoload
- -(define-derived-mode html-mode sgml-mode '(sgml-xml-mode "XHTML" "HTML")
+(define-derived-mode html-mode sgml-mode (if sgml-xml-mode '"XHTML" '"HTML")
   "Major mode based on SGML mode for editing HTML documents.
 This allows inserting skeleton constructs used in hypertext documents with
 completion.  See below for an introduction to HTML.  Use

- --------------040006040108080505080703--
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-12-02 21:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-23  4:36 [mp26@os.inf.tu-dresden.de: Patch for sgml-mode.el] Richard Stallman
2007-11-23 15:02 ` Fwd: Patch for sgml-mode.el Stefan Monnier
2007-11-23 15:26   ` Martin Pohlack
2007-11-23 16:26     ` Stefan Monnier
2007-11-23 19:55   ` Glenn Morris
2007-11-30  4:46     ` Stefan Monnier
2007-11-30 20:58       ` Glenn Morris
2007-12-01  3:16         ` Stefan Monnier
2007-12-02 21:59           ` Glenn Morris
2007-12-01  4:07         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).