Uyghurs
Rian Thum explored the concepts of identity among the ancestors of the modern Uyghurs in Altishahr (the native Uyghur name for eastern Turkestan or southern Xinjiang) before the adoption of the name "Uyghur" in the 1930s, referring to them by the name "Altishahri" in his article "Modular History: Identity Maintenance before Uyghur Nationalism". Thum indicated that Altishahri Turkis did have a sense that they were a distinctive group separate from the Turkic Andijanis to their west, the nomadic Turkic Kirghiz, the nomadic Mongol Qalmaq, and the Han Chinese Khitay before they became known as Uyghurs. There was no single name used by them to refer to themselves, the various native names Altishahris used to refer to themselves were Altishahrlik (Altishahr person), yerlik (local), Turki, and Musulmān (Muslim), the term Musulmān in this situation did not signify religious connotations, because the Altishahris would exclude other Muslim peoples like the Kirghiz when referring to themselves as Musulmān. Dr. Laura J Newby has also noted that the sedentary Altishahri Turkic people felt themselves as a separate group from other Turkic Muslims since at least the 19th century.
Uyghurs in Pakistan
Some members of ethnic minorities of China, primarily Muslim Uyghurs and Tajiks from Xinjiang, have historically migrated to and settled in the northern parts of Pakistan. The earliest migrants, numbering in the thousands, came in as traders during the late 19th and early 20th centuries when the area that is Pakistan was still under British rule. Most of these Uyghurs used to have warehouses and residences in towns in the North and in parts of upper Punjab and used to travel between Kashgar and Yarkand and these places, regularly. Others came in the 1940s in fear of communist persecution. A few hundred more fled to Pakistan in the aftermath of a failed uprising in Khotan in 1954. Later waves of migration came in 1963 and again in 1974. Some Pakistani descendants who previously lived in Xinjiang, especially at Kashgar, have also moved back to Pakistan with their Uyghur spouses.