# HG changeset patch # User Kim F. Storm # Date 1167526133 0 # Node ID a8f469237c7e5519c4eb30608ee59315c4372a25 # Parent eda5cae57c32565025fb7299b32281848352fe76 *** empty log message *** diff -r eda5cae57c32 -r a8f469237c7e etc/NEWS --- a/etc/NEWS Sun Dec 31 00:38:43 2006 +0000 +++ b/etc/NEWS Sun Dec 31 00:48:53 2006 +0000 @@ -5544,6 +5544,15 @@ ** Major mode mechanism changes: +++ +*** If new variable `auto-mode-case-fold' is set to a non-nil value, +Emacs will perform a second case-insensitive search through +`auto-mode-alist' if the first case-sensitive search fails. +This means that a file FILE.TXT is opened in text-mode, and a file PROG.PY +is opened in python-mode. Note however, that independent of this +setting, *.C files are usually recognized as C++ files. +It also has no effect on systems with case-insensitive file names. + ++++ *** New variable `magic-mode-alist' determines major mode for a file by looking at the file contents. It takes precedence over `auto-mode-alist'. diff -r eda5cae57c32 -r a8f469237c7e lisp/ChangeLog --- a/lisp/ChangeLog Sun Dec 31 00:38:43 2006 +0000 +++ b/lisp/ChangeLog Sun Dec 31 00:48:53 2006 +0000 @@ -1,3 +1,9 @@ +2006-12-31 Kim F. Storm + + * files.el (auto-mode-case-fold): New defcustom. + (set-auto-mode): If non-nil, perform second case-sensitive pass + through auto-mode-alist if first pass failed. + 2006-12-30 Richard Stallman * emacs-lisp/easy-mmode.el (define-global-minor-mode): Doc fix. @@ -5,7 +11,7 @@ 2006-12-30 Ken Manheimer * allout.el (allout-encrypt-string): Handle symmetric-key - passphrase caching but leave keypair caching to pgg. + passphrase caching but leave keypair caching to pgg. 2006-12-30 Michael Albinus diff -r eda5cae57c32 -r a8f469237c7e man/ChangeLog --- a/man/ChangeLog Sun Dec 31 00:38:43 2006 +0000 +++ b/man/ChangeLog Sun Dec 31 00:48:53 2006 +0000 @@ -1,3 +1,7 @@ +2006-12-31 Kim F. Storm + + * major.texi (Choosing Modes): Document auto-mode-case-fond. + 2006-12-30 Kim F. Storm * killing.texi (CUA Bindings): Fix typo.