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

Diff of /emacs/lisp/files.el

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

revision 1.766 by monnier, Wed May 11 16:24:55 2005 UTC revision 1.767 by teirllm, Thu May 12 23:09:33 2005 UTC
# Line 1728  or from Lisp without specifying the opti Line 1728  or from Lisp without specifying the opti
1728  in that case, this function acts as if `enable-local-variables' were t."  in that case, this function acts as if `enable-local-variables' were t."
1729    (interactive)    (interactive)
1730    (or find-file (funcall (or default-major-mode 'fundamental-mode)))    (or find-file (funcall (or default-major-mode 'fundamental-mode)))
1731    (report-errors "File mode specification error: %s"    (let ((enable-local-variables (or (not find-file) enable-local-variables)))
1732      (set-auto-mode))      (report-errors "File mode specification error: %s"
1733    (report-errors "File local-variables error: %s"        (set-auto-mode))
1734      (let ((enable-local-variables (or (not find-file) enable-local-variables)))      (report-errors "File local-variables error: %s"
1735        (hack-local-variables)))        (hack-local-variables)))
1736    (if (fboundp 'ucs-set-table-for-input) ; don't lose when building    (if (fboundp 'ucs-set-table-for-input) ; don't lose when building
1737        (ucs-set-table-for-input)))        (ucs-set-table-for-input)))
# Line 1992  if REGEXP matches the text at the beginn Line 1992  if REGEXP matches the text at the beginn
1992  to decide the buffer's major mode.  to decide the buffer's major mode.
1993    
1994  If FUNCTION is nil, then it is not called.  (That is a way of saying  If FUNCTION is nil, then it is not called.  (That is a way of saying
1995  \"allow `auto-mode-alist' to decide for these files.")  \"allow `auto-mode-alist' to decide for these files.)")
1996    
1997  (defun set-auto-mode (&optional keep-mode-if-same)  (defun set-auto-mode (&optional keep-mode-if-same)
1998    "Select major mode appropriate for current buffer.    "Select major mode appropriate for current buffer.

Legend:
Removed from v.1.766  
changed lines
  Added in v.1.767

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