Commit 43314bf6 authored by Lute Kamstra's avatar Lute Kamstra
Browse files

(define-generic-mode): Let generic-mode-list be a list of strings;

test membership with equal.
parent 0ace9c9e
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
......@@ -215,8 +215,7 @@ FUNCTION-LIST is a list of functions to call to do some additional setup.
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)
......
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