/[emacs]/emacs/lisp/generic.el
ViewVC logotype

Diff of /emacs/lisp/generic.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26 by rms, Sat Nov 27 19:01:41 2004 UTC revision 1.27 by lute, Mon Mar 14 11:06:20 2005 UTC
# Line 1  Line 1 
1  ;;; generic.el --- defining simple major modes with comment and font-lock  ;;; generic.el --- defining simple major modes with comment and font-lock
2  ;;  ;;
3  ;; Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.  ;; Copyright (C) 1997, 1999, 2004, 2005 Free Software Foundation, Inc.
4  ;;  ;;
5  ;; Author:  Peter Breton <pbreton@cs.umb.edu>  ;; Author:  Peter Breton <pbreton@cs.umb.edu>
6  ;; Created: Fri Sep 27 1996  ;; Created: Fri Sep 27 1996
# Line 215  FUNCTION-LIST is a list of functions to Line 215  FUNCTION-LIST is a list of functions to
215  See the file generic-x.el for some examples of `define-generic-mode'."  See the file generic-x.el for some examples of `define-generic-mode'."
216    
217    ;; Add a new entry    ;; Add a new entry
218    (unless (assq name generic-mode-list)    (add-to-list 'generic-mode-list (symbol-name name))
     (push (list (symbol-name name)) generic-mode-list))  
219    
220    ;; Add it to auto-mode-alist    ;; Add it to auto-mode-alist
221    (dolist (re auto-mode-list)    (dolist (re auto-mode-list)

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26