French President Emmanuel Macron on Thursday pledged to stay in office until his term ends in 2027 and assured that he will announce the name of a new prime minister in the next few days following the resignation of ousted Prime Minister Michel Barnier after a historic no-confidence motion.