Commit ac5231e6 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(reb-mode): Don't use define-derived-mode. Call kill-all-local-variables.

parent dda7c010
......@@ -232,9 +232,16 @@ Except for Lisp syntax this is the same as `reb-regexp'.")
(define-key reb-mode-map "\C-c\C-b" 'reb-change-target-buffer)
(define-key reb-mode-map "\C-c\C-u" 'reb-force-update)))
(define-derived-mode reb-mode nil "RE Builder"
"Major mode for interactively building Regular Expressions."
(defun reb-mode ()
"Major mode for interactively building Regular Expressions.
(setq major-mode 'reb-mode
mode-name "RE Builder")
(use-local-map reb-mode-map)
(run-hooks 'reb-mode-hook))
(define-derived-mode reb-lisp-mode
emacs-lisp-mode "RE Builder Lisp"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment