One of the questions on the application is whether a person has previously applied for a visa in Thailand.  if the previous application was under a different first name, with a different gender marker on the passport, what should the answer be? 
TLDR : Answer Summary
The consensus among commenters is clear: if you have previously applied for a visa in Thailand, regardless of changes in your name or gender identity, you should answer 'yes' to the application question. It's advised to be transparent about your visa history to avoid potential complications with immigration.
NON-O RETIREMENT VISA RESOURCES / SERVICES
- Go to the Retirement Visa Section for information on requirements, including age restrictions, financial requirements, and necessary documentation.
- For immediate assistance, contact Thai Visa Centre directly via LINE at @ThaiVisaCentre or Email them.
- Explore recent discussions by using the Non-O Retirement Visa tag in the search box at the top of the page.
- Join the Thai Visa Advice Facebook Group to ask your questions, and get advice from others.