changeset 64350:9bb757d6c7df

(select_frame_for_redisplay): Use find_symbol_value.
author Richard M. Stallman <rms@gnu.org>
date Fri, 15 Jul 2005 18:11:34 +0000
parents 1c727f4fdfb0
children 924e4bdb2664
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Jul 15 17:37:27 2005 +0000
+++ b/src/xdisp.c	Fri Jul 15 18:11:34 2005 +0000
@@ -10085,7 +10085,9 @@
 	    (BUFFER_LOCAL_VALUEP (val)
 	     || SOME_BUFFER_LOCAL_VALUEP (val)))
 	&& XBUFFER_LOCAL_VALUE (val)->check_frame)
-      Fsymbol_value (sym);
+      /* Use find_symbol_value rather than Fsymbol_value
+	 to avoid an error if it is void.  */
+      find_symbol_value (sym);
 
   for (tail = XFRAME (old)->param_alist; CONSP (tail); tail = XCDR (tail))
     if (CONSP (XCAR (tail))
@@ -10096,7 +10098,7 @@
 	    (BUFFER_LOCAL_VALUEP (val)
 	     || SOME_BUFFER_LOCAL_VALUEP (val)))
 	&& XBUFFER_LOCAL_VALUE (val)->check_frame)
-      Fsymbol_value (sym);
+      find_symbol_value (sym);
 }