In 1868 he was elected rector of St Andrews University, defeating Disraeli by a majority of fourteen.
Finally she studied anatomy privately at the London hospital, and with some of the professors at St Andrews University, and at the Edinburgh Extra-Mural school.
In June 1547 St Andrews yielded to the French fleet, and the prisoners, including Knox, were thrown into the galleys on the Loire, to remain in irons and under the lash for at least nineteen months.
At St Andrews University he came under the influence of Dr Chalmers.
Under the act of 1899 the University College of Dundee was incorporated with St Andrews University, and Queen Margaret College became a part of the university of Glasgow, the buildings and endowments, used for women students exclusively, being handed over to the University Court.
Cupar belongs to the St Andrews district group of burghs for returning one member to parliament, the other constituents being Crail, the two Anstruthers, Kilrenny, Pittenweem and St Andrews.
It is the seat of Fort Worth University (coeducational), a Methodist Episcopal institution, which was established as the Texas Wesleyan College in 1881, received its present name in 1889, comprises an academy, a college of liberal arts and sciences, a conservatory of music, a law school, a medical school, a school of commerce, and a department of oratory and elocution, and in 1907 had 802 students; the Polytechnic College (coeducational; Methodist Episcopal, South), which was established in 1890, has preparatory, collegiate, normal, commercial, and fine arts departments and a summer school, and in 1906 had 12 instructors and (altogether) 696 students; the Texas masonic manual training school; a kindergarten training school; St Andrews school (Protestant Episcopal), and St Ignatius Academy (Roman Catholic).
Among his numerous publications may be specially mentioned the '.two works (each in three series), Recreations of a Country Parson (1859, 1861 and 1878), and Graver Thoughts of a Country Parson (1862-1865 and 1875); he also wrote Twenty-five Years at St Andrews (1892), and St Andrews and Elsewhere (1894).
The rudiments of Latin he obtained at the grammar school of Montrose, after leaving which he learned Greek for two years under Pierre de Marsilliers, a Frenchman whom John Erskine of Dun had induced to settle at Montrose; and such was Melville's proficiency that on going to the university of St Andrews he excited the astonishment of the professors by using the Greek text of Aristotle, which no one else there understood.
He graduated at the university of St Andrews in 1603, and in 1610 was appointed professor of rhetoric and philosophy and questor of the faculty.