# HG changeset patch # User Juri Linkov # Date 1255305038 0 # Node ID 627cf97fdea20009e97ef25d35a71696c0e82f46 # Parent 59dc4314dfa420a9fde5ada1464d30e656ff72de (read-file-local-variable-value): Provide default value only for bound variables. diff -r 59dc4314dfa4 -r 627cf97fdea2 lisp/ChangeLog --- a/lisp/ChangeLog Sun Oct 11 15:01:27 2009 +0000 +++ b/lisp/ChangeLog Sun Oct 11 23:50:38 2009 +0000 @@ -1,3 +1,8 @@ +2009-10-11 Juri Linkov + + * files-x.el (read-file-local-variable-value): + Provide default value only for bound variables. + 2009-10-11 Michael Albinus * net/tramp.el (tramp-local-host-p): Function shall return nil for diff -r 59dc4314dfa4 -r 627cf97fdea2 lisp/files-x.el --- a/lisp/files-x.el Sun Oct 11 15:01:27 2009 +0000 +++ b/lisp/files-x.el Sun Oct 11 23:50:38 2009 +0000 @@ -92,7 +92,8 @@ nil 'set-variable-value-history (format "%S" (cond ((eq variable 'unibyte) t) - (t (symbol-value variable)))))))))) + ((boundp variable) + (symbol-value variable)))))))))) (defun read-file-local-variable-mode () "Read per-directory file-local variable's mode using completion.