]> git.eshelyaron.com Git - emacs.git/commitdiff
(run-hook-with-args): Fix previous code.
authorKarl Heuer <kwzh@gnu.org>
Tue, 25 Jul 1995 20:27:48 +0000 (20:27 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 25 Jul 1995 20:27:48 +0000 (20:27 +0000)
src/eval.c

index 00f821a085a07aa35fe2fd40dba1c74fa9fa260c..53f69ab15e4b07ea3af7e7dda015ce39f73d926c 100644 (file)
@@ -1836,11 +1836,7 @@ To make a hook variable buffer-local, use `make-local-hook', not\n\
   Lisp_Object sym, val;
 
   sym = args[0];
-  CHECK_SYMBOL (sym, 0);
-  val = XSYMBOL (sym)->value;
-  if (BUFFER_LOCAL_VALUEP (val)
-      || SOME_BUFFER_LOCAL_VALUEP (val))
-    val = swap_in_symval_forwarding (sym, val);
+  val = find_symbol_value (sym);
   if (EQ (val, Qunbound) || NILP (val))
     return Qnil;
   else if (!CONSP (val) || EQ (XCONS (val)->car, Qlambda))