+2005-03-14 Lute Kamstra <lute@gnu.org>
+
+ * generic.el (define-generic-mode): Let generic-mode-list be a
+ list of strings; test membership with equal.
+
2005-03-14 Kim F. Storm <storm@cua.dk>
* simple.el (next-line, previous-line): Add optional try-vscroll
;;; generic.el --- defining simple major modes with comment and font-lock
;;
-;; Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
+;; Copyright (C) 1997, 1999, 2004, 2005 Free Software Foundation, Inc.
;;
;; Author: Peter Breton <pbreton@cs.umb.edu>
;; Created: Fri Sep 27 1996
See the file generic-x.el for some examples of `define-generic-mode'."
;; Add a new entry
- (unless (assq name generic-mode-list)
- (push (list (symbol-name name)) generic-mode-list))
+ (add-to-list 'generic-mode-list (symbol-name name))
;; Add it to auto-mode-alist
(dolist (re auto-mode-list)