I thought Mehmed Ali came to power after the French had been driven out. I read al-Jabarti's chronicle of Napoleon's campaign there for my History of Islam in Africa class and al-Jabarti never mentions Mehmed Ali, just various idiotic Mameluke rulers.