]> git.eshelyaron.com Git - emacs.git/commitdiff
fix symbol_subr + better naming
authorAndrea Corallo <akrl@sdf.org>
Wed, 20 Nov 2019 20:51:11 +0000 (21:51 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:08 +0000 (11:38 +0100)
src/comp.c

index 3e5f8f29901079ab5ef6f5975e3a2573550f9132..fc8ec4069876f2973bb98c215f7231694ccb7fec 100644 (file)
@@ -228,15 +228,15 @@ bcall0 (Lisp_Object f)
 static Lisp_Object
 symbol_subr (Lisp_Object symbol)
 {
-  Lisp_Object subr = Fsymbol_function (symbol);
+  Lisp_Object maybe_subr = Fsymbol_function (symbol);
 
-  if (SUBRP (subr))
-    return subr;
+  if (SUBRP (maybe_subr))
+    return maybe_subr;
 
-  if (!NILP (CALL1I (ad-has-any-advice, symbol)))
-    subr = CALL1I (ad-get-orig-definition, symbol);
+  if (!NILP (CALL1I (advice--p, maybe_subr)))
+    maybe_subr = CALL1I (ad-get-orig-definition, symbol);
 
-  return SUBRP (subr) ? subr : Qnil;
+  return SUBRP (maybe_subr) ? maybe_subr : Qnil;
 }
 
 static gcc_jit_field *