changeset 39895:9c794d6eeb76

* play/gomoku.el (gomoku-mode): * textmodes/page-ext.el (pages-directory-mode): * textmodes/scribe.el (scribe-mode): Use define-derived-mode.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 13 Oct 2001 19:19:01 +0000
parents b27f7112ce6f
children 258ac90a4fed
files lisp/textmodes/page-ext.el
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/page-ext.el	Sat Oct 13 19:16:56 2001 +0000
+++ b/lisp/textmodes/page-ext.el	Sat Oct 13 19:19:01 2001 +0000
@@ -694,16 +694,11 @@
       (terpri))
     (end-of-line 1)))
 
-(defun pages-directory-mode ()
+(define-derived-mode pages-directory-mode nil "Pages-Directory"
   "Mode for handling the pages-directory buffer.
 
 Move point to one of the lines in this buffer, then use \\[pages-directory-goto] to go
 to the same line in the pages buffer."
-
-  (kill-all-local-variables)
-  (use-local-map pages-directory-map)
-  (setq major-mode 'pages-directory-mode)
-  (setq mode-name "Pages-Directory")
   (make-local-variable 'pages-buffer)
   (make-local-variable 'pages-pos-list)
   (make-local-variable 'pages-directory-buffer-narrowing-p))