I hope you do understand that these are works of Gandhi & he stood by what he wrote. Now quoting out of context and without bearing in mind the timeline, anything can be given a negative connotation. I can direct you to website / writing saying the same thing about “holy books”. Does that mean that these "holy books"are racist and barbaric. Hope you do undertsand.
Well let me given a taste of that …
The presidential speech by Allama Iqbal … which is perhaps the genises of Paksitan theory… he writes
I would like to see the Punjab, North-West Frontier Province, Sind and Baluchistan amalgamated into a single State. Self-government within the British Empire, or without the British Empire, the formation of a consolidated North-West Indian Muslim State appears to me to be the final destiny of the Muslims, at least of North-West India.
For India, it means security and peace resulting from an internal balance of power; for Islam, an opportunity to rid itself of the stamp that Arabian Imperialism was forced to give it, to mobilise its law, its education, its culture, and to bring them into closer contact with its own original spirit and with the spirit of modern times.
Of course no mention of Kashmir … but then that is not my point. The way he has described the creation of Paksitan, an enclave for muslims … carved from India. But today if you look at history of Paksitan, they will go around saying they were always separate from Indian and the Arabs were their saviours… However he doesn’t think so …Specifically refering to Arab imperialism, which in current Pakistan history you find no mention of.
Read http://www.columbia.edu/itc/mealac/pritchett/00islamlinks/txt_iqbal_1930.html