<blockquote>
<p>So do C/C++ files.</p>
</blockquote>
<p>Sorry, I meant that first you would see if the file extension is <code>.m</code>. Then you would do the #import/#inclue check.</p>
<blockquote>
<p>The filetype_extensions.conf is in alphabetical order by filetype name, so Matlab wins over Objective-C. Geany devs don't know which is most popular with an individual user, so its alphabetical, bat as you note above you can change it to your preference.</p>
</blockquote>
<p>That's fine if this is the intended design of Geany.</p>
<p>However, for new users to Geany, they will have to find where to make this change and change it. From a design perspective, this seems like a strange burden on users, where they need to delete a file association in the settings for their file association to work. This would be particularly troublesome if you're using both Matlab/Octave and Objective-C files. You'd be better off editing only your Objective-C files in one editor, and then only editing your Matlab/Octave files in another editor.</p>
<p>Either way, since I think I'm the first person to report this issue, I'm thinking that no one seems to use Linux (or Geany) for editing Objective-C files, so it probably doesn't matter, and this issue can be closed.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1896#issuecomment-405029729">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJwNJ03DRaaQDvNx35i1Ou6TSBwsrks5uGgs1gaJpZM4VPXi-">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ29OHR3H7D5OiPOdm0jhBdj_2-I1ks5uGgs1gaJpZM4VPXi-.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@esotericpig in #1896: \u003e So do C/C++ files.\r\n\r\nSorry, I meant that first you would see if the file extension is `.m`. Then you would do the #import/#inclue check.\r\n\r\n\u003e The filetype_extensions.conf is in alphabetical order by filetype name, so Matlab wins over Objective-C. Geany devs don't know which is most popular with an individual user, so its alphabetical, bat as you note above you can change it to your preference.\r\n\r\nThat's fine if this is the intended design of Geany.\r\n\r\nHowever, for new users to Geany, they will have to find where to make this change and change it. From a design perspective, this seems like a strange burden on users, where they need to delete a file association in the settings for their file association to work. This would be particularly troublesome if you're using both Matlab/Octave and Objective-C files. You'd be better off editing only your Objective-C files in one editor, and then only editing your Matlab/Octave files in another editor.\r\n\r\nEither way, since I think I'm the first person to report this issue, I'm thinking that no one seems to use Linux (or Geany) for editing Objective-C files, so it probably doesn't matter, and this issue can be closed."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1896#issuecomment-405029729"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1896#issuecomment-405029729",
"url": "https://github.com/geany/geany/issues/1896#issuecomment-405029729",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany] Minor: Objective-C files (*.m) parsed as Matlab/Octave (*.m) (#1896)",
"sections": [
{
"text": "",
"activityTitle": "**Jonathan Bradley Whited**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@esotericpig",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1896,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1896\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1896#issuecomment-405029729"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 356350142\n}"
}
],
"themeColor": "26292E"
}
]</script>