Commit 9fed2b18 authored by Richard M. Stallman's avatar Richard M. Stallman

(save_excursion_restore): Don't call Vrun_hooks if nil.

parent fd186f07
......@@ -324,10 +324,13 @@ save_excursion_restore (info)
tem1 = current_buffer->mark_active;
current_buffer->mark_active = Fcdr (tem);
if (! NILP (current_buffer->mark_active))
call1 (Vrun_hooks, intern ("activate-mark-hook"));
else if (! NILP (tem1))
call1 (Vrun_hooks, intern ("deactivate-mark-hook"));
if (!NILP (Vrun_hooks))
{
if (! NILP (current_buffer->mark_active))
call1 (Vrun_hooks, intern ("activate-mark-hook"));
else if (! NILP (tem1))
call1 (Vrun_hooks, intern ("deactivate-mark-hook"));
}
return Qnil;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment