From a9dd575408cbc905c0c79ee91b045c79d0e971a7 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sun, 5 Aug 2012 11:03:31 +0800 Subject: [PATCH] * files.el (set-auto-mode): Fix invalid setq call. --- lisp/ChangeLog | 4 ++++ lisp/files.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fb1f0868d5b..22fedc4095c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2012-08-05 Chong Yidong + + * files.el (set-auto-mode): Fix invalid setq call. + 2012-08-04 Stefan Monnier * isearch.el: Misc simplification; use defstruct. diff --git a/lisp/files.el b/lisp/files.el index 0c895669542..2b4ae460c3e 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2734,7 +2734,7 @@ we don't actually set it to the same mode the buffer already has." (cadr mode)) (setq mode (car mode) name (substring name 0 (match-beginning 0))) - (setq name)) + (setq name nil)) (when mode (set-auto-mode-0 mode keep-mode-if-same) (setq done t)))))) -- 2.39.2