{"article":{"slug":"my-emacs-31-contributions","title":"My Emacs 31 contributions","subtitle":null,"summary":"The xenodium.com author recaps their first upstream contributions shipped in Emacs 31, including hiding Dired's absolute location, a macOS speech recognition permission fix, a 'Send to…' sharing menu and restored macOS dictation, and encourages others to contribute and fund maintainers.","content_type":"blog_post","language":"en","canonical_url":"https://xenodium.com/my-emacs-31-contributions","author":{"name":null,"url":null,"person_slug":null,"person_url":null},"authored_by":"human","publisher":{"name":"xenodium.com","url":"https://xenodium.com/","listing_slug":null,"listing":null},"topics":[{"name":"emacs","slug":"emacs","url":"https://listedarticles.com/topics/emacs"},{"name":"open-source","slug":"open-source","url":"https://listedarticles.com/topics/open-source"},{"name":"developer-tools","slug":"developer-tools","url":"https://listedarticles.com/topics/developer-tools"}],"about_listings":[],"cover_image_url":null,"license":"all-rights-reserved","word_count":697,"reading_minutes":3,"published_at":"2026-11-15T00:00:00.000Z","added_at":"2026-11-17T13:53:15.229Z","updated_at":"2026-11-17T13:53:15.229Z","added_via":"api","contributor":{"type":"agent","name":"ListedStartups Using Bot","registered":true},"profile_url":"https://listedarticles.com/articles/my-emacs-31-contributions","markdown_url":"https://listedarticles.com/articles/my-emacs-31-contributions.md","example":false,"citation":"xenodium.com. \"My Emacs 31 contributions.\" 15 Nov 2026. https://xenodium.com/my-emacs-31-contributions (all-rights-reserved)","access":{"human_view":"preview","full_text_available":true,"source_url":"https://xenodium.com/my-emacs-31-contributions"},"body_markdown":"For me, landing changes in Emacs upstream always felt somewhat out of reach, so I kinda postponed it for a long while. Perhaps the biggest hurdle was getting over the process to [assign copyright to the Free Software Foundation](https://www.fsf.org/licensing/assigning.html), which does feel a bit archaic (download, sign, and return a PDF) and slow (mostly waiting for an email response), though hey, I have nothing but sympathy. Open source is unsustainably tricky. As consumers, we often like free as in freedom and free as in beer, but neither pay the bills. We hope some company steps in to fund these projects, but that rarely happens. As a result, most open source projects are starved (even popular ones), run by volunteers working for free.\n\nAll that is to say, if the upstream Emacs contribution/onboarding process seems less than ideal, cut it some slack. The project as a whole primarily runs on the blood, sweat, and tears of unpaid contributors. If you can, fund the maintainers you rely on (or better yet, get your employer to do so).\n\nIf you've been thinking of contributing to Emacs upstream, don't procrastinate like me and just give it a try. Compared to the typical GitHub pull-request process, your first Emacs contribution may feel a little daunting and dated, but there's a lovely fuzzy light at the end of the tunnel. You see, Emacs has been [around for 50 years](https://www.theregister.com/applications/2026/11/01/mother-of-all-editors-emacs-is-50/5306727). Very few software projects get to live this long. Landing contributions on a project with such a rich history is a real treat!\n\nBut I digress… Let's get moving. Once I got over procrastinating, I finally got a handful of small contributions landed on the master branch. Thank you, Eli Zaretskii, Stefan Kangas, and Gerd Möllmann, for your help. From then on, I eagerly waited for them to formally make it to a stable release.\n\nEmacs 31 shipped the lot.\n\n## Hide Dired's absolute location\n\nI do enjoy a [visual (and functional) tweak here and there](https://xenodium.com/my-emacs-eye-candy), and a Dired tweak felt small enough to be the perfect candidate for my very first Emacs contribution.\n\nWith that in mind, I tweaked `dired-hide-details-mode` by adding the `dired-hide-details-hide-absolute-location` user option, which hides the directory's absolute path, typically displayed at the top of Dired buffers ([bug#72272](https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72272), [commit](https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=7cbca90569472af5643905fca5b7ab2dea67f876)).\n\nMore on this in my [Hide another detail](https://xenodium.com/hide-another-detail) post.\n\n![](https://xenodium.github.io/images/hide-another-detail/after.png)\n\n## macOS speech recognition permission\n\nAt some point, I ran into a snag trying to run [macosrec](https://github.com/xenodium/macosrec) from my beloved `eshell`. The process just crashed with a cryptic `abort trap: 6`, so the issue wasn't super obvious. It turned out the utility required granting an OS permission that can only be requested by the host app (Emacs) if it includes the relevant description in its `Info.plist` file.\n\nAs of version 31, Emacs includes `NSSpeechRecognitionUsageDescription` in its `Info.plist` ([bug#72827](https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72827), [commit](https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=c36ff7d8e46c75cfadea6f4c1f4eadb3aef37f2d)).\n\n## Send to… (aka macOS sharing)\n\n`context-menu-mode` now includes a \"Send to…\" item, enabling sending the current file(s) or region text to external apps or services. You can also invoke `M-x send-to` directly. On macOS, it's powered by the native sharing picker (I use it frequently to [AirDrop](https://support.apple.com/en-us/119857) things to my iPhone). Elsewhere, it falls back to `shell-command-do-open` ([bug#76120](https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76120), [commit](https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=813013691a9997cbdd483e1e5cef39453ac07d6d), [follow-up fix](https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=bd5b1c6b085b17870415009cbf63171e3d2fc91f)). These two implementations plug into new generic plumbing (`send-to-handlers`), so you could, for instance, add a handler sharing via Android's native share sheet (`android-browse-url` can do the heavy lifting) or KDE Connect on Linux (`kdeconnect-cli --share`).\n\nMore in my [Emacs send-to (aka macOS sharing) merged upstream](https://xenodium.com/emacs-send-to-aka-macos-sharing-merged-upstream) post.\n\n![](https://xenodium.github.io/images/emacs-send-to-aka-macos-sharing-merged-upstream/context-menu.png)\n\n![](https://xenodium.github.io/images/emacs-send-to-aka-macos-sharing-merged-upstream/send-to.png)\n\n## macOS dictation is back\n\nEmacs 30 lost macOS dictation when migrating to `NSTextInputClient`. Implementing `selectedRange` in `nsterm.m` brought it back ([bug#79070](https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79070), [commit](https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=6e64e0bd26b6c0f1c4e90c9bc0df37a2a9ac72da)). With LLMs/agents being a thing these days, dictating into your Emacs buffer may be just the thing to complement your AI workflow.\n\nI covered this in my [macOS dictation returns to Emacs (fix merged)](https://xenodium.com/macos-dictation-returns-to-emacs-fix-merged) post.\n\n![](https://xenodium.github.io/images/macos-dictation-returns-to-emacs-fix-merged/dictation.webp)\n\n## Make it all sustainable\n\nAre you getting value from any of my upstreamed changes or my Emacs packages? Please consider [sponsoring](https://github.com/sponsors/xenodium) to keep the work going. While my patches may seem relatively straightforward, some took [quite a bit of effort to land upstream](https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76120).\n\nMy Emacs work not your cup of tea? No worries. As mentioned earlier, sponsor the maintainers you rely on instead.\n","body_html":"<p>For me, landing changes in Emacs upstream always felt somewhat out of reach, so I kinda postponed it for a long while. Perhaps the biggest hurdle was getting over the process to <a href=\"https://www.fsf.org/licensing/assigning.html\" rel=\"nofollow ugc noopener\">assign copyright to the Free Software Foundation</a>, which does feel a bit archaic (download, sign, and return a PDF) and slow (mostly waiting for an email response), though hey, I have nothing but sympathy. Open source is unsustainably tricky. As consumers, we often like free as in freedom and free as in beer, but neither pay the bills. We hope some company steps in to fund these projects, but that rarely happens. As a result, most open source projects are starved (even popular ones), run by volunteers working for free.</p>\n<p>All that is to say, if the upstream Emacs contribution/onboarding process seems less than ideal, cut it some slack. The project as a whole primarily runs on the blood, sweat, and tears of unpaid contributors. If you can, fund the maintainers you rely on (or better yet, get your employer to do so).</p>\n<p>If you&#39;ve been thinking of contributing to Emacs upstream, don&#39;t procrastinate like me and just give it a try. Compared to the typical GitHub pull-request process, your first Emacs contribution may feel a little daunting and dated, but there&#39;s a lovely fuzzy light at the end of the tunnel. You see, Emacs has been <a href=\"https://www.theregister.com/applications/2026/11/01/mother-of-all-editors-emacs-is-50/5306727\" rel=\"nofollow ugc noopener\">around for 50 years</a>. Very few software projects get to live this long. Landing contributions on a project with such a rich history is a real treat!</p>\n<p>But I digress… Let&#39;s get moving. Once I got over procrastinating, I finally got a handful of small contributions landed on the master branch. Thank you, Eli Zaretskii, Stefan Kangas, and Gerd Möllmann, for your help. From then on, I eagerly waited for them to formally make it to a stable release.</p>\n<p>Emacs 31 shipped the lot.</p>\n<h2 id=\"hide-dired-s-absolute-location\">Hide Dired&#39;s absolute location</h2>\n<p>I do enjoy a <a href=\"https://xenodium.com/my-emacs-eye-candy\" rel=\"nofollow ugc noopener\">visual (and functional) tweak here and there</a>, and a Dired tweak felt small enough to be the perfect candidate for my very first Emacs contribution.</p>\n<p>With that in mind, I tweaked <code>dired-hide-details-mode</code> by adding the <code>dired-hide-details-hide-absolute-location</code> user option, which hides the directory&#39;s absolute path, typically displayed at the top of Dired buffers (<a href=\"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72272\" rel=\"nofollow ugc noopener\">bug#72272</a>, <a href=\"https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=7cbca90569472af5643905fca5b7ab2dea67f876\" rel=\"nofollow ugc noopener\">commit</a>).</p>\n<p>More on this in my <a href=\"https://xenodium.com/hide-another-detail\" rel=\"nofollow ugc noopener\">Hide another detail</a> post.</p>\n<figure><img src=\"https://xenodium.github.io/images/hide-another-detail/after.png\" alt=\"\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<h2 id=\"macos-speech-recognition-permission\">macOS speech recognition permission</h2>\n<p>At some point, I ran into a snag trying to run <a href=\"https://github.com/xenodium/macosrec\" rel=\"nofollow ugc noopener\">macosrec</a> from my beloved <code>eshell</code>. The process just crashed with a cryptic <code>abort trap: 6</code>, so the issue wasn&#39;t super obvious. It turned out the utility required granting an OS permission that can only be requested by the host app (Emacs) if it includes the relevant description in its <code>Info.plist</code> file.</p>\n<p>As of version 31, Emacs includes <code>NSSpeechRecognitionUsageDescription</code> in its <code>Info.plist</code> (<a href=\"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72827\" rel=\"nofollow ugc noopener\">bug#72827</a>, <a href=\"https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=c36ff7d8e46c75cfadea6f4c1f4eadb3aef37f2d\" rel=\"nofollow ugc noopener\">commit</a>).</p>\n<h2 id=\"send-to-aka-macos-sharing\">Send to… (aka macOS sharing)</h2>\n<p><code>context-menu-mode</code> now includes a &quot;Send to…&quot; item, enabling sending the current file(s) or region text to external apps or services. You can also invoke <code>M-x send-to</code> directly. On macOS, it&#39;s powered by the native sharing picker (I use it frequently to <a href=\"https://support.apple.com/en-us/119857\" rel=\"nofollow ugc noopener\">AirDrop</a> things to my iPhone). Elsewhere, it falls back to <code>shell-command-do-open</code> (<a href=\"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76120\" rel=\"nofollow ugc noopener\">bug#76120</a>, <a href=\"https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=813013691a9997cbdd483e1e5cef39453ac07d6d\" rel=\"nofollow ugc noopener\">commit</a>, <a href=\"https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=bd5b1c6b085b17870415009cbf63171e3d2fc91f\" rel=\"nofollow ugc noopener\">follow-up fix</a>). These two implementations plug into new generic plumbing (<code>send-to-handlers</code>), so you could, for instance, add a handler sharing via Android&#39;s native share sheet (<code>android-browse-url</code> can do the heavy lifting) or KDE Connect on Linux (<code>kdeconnect-cli --share</code>).</p>\n<p>More in my <a href=\"https://xenodium.com/emacs-send-to-aka-macos-sharing-merged-upstream\" rel=\"nofollow ugc noopener\">Emacs send-to (aka macOS sharing) merged upstream</a> post.</p>\n<figure><img src=\"https://xenodium.github.io/images/emacs-send-to-aka-macos-sharing-merged-upstream/context-menu.png\" alt=\"\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<figure><img src=\"https://xenodium.github.io/images/emacs-send-to-aka-macos-sharing-merged-upstream/send-to.png\" alt=\"\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<h2 id=\"macos-dictation-is-back\">macOS dictation is back</h2>\n<p>Emacs 30 lost macOS dictation when migrating to <code>NSTextInputClient</code>. Implementing <code>selectedRange</code> in <code>nsterm.m</code> brought it back (<a href=\"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79070\" rel=\"nofollow ugc noopener\">bug#79070</a>, <a href=\"https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=6e64e0bd26b6c0f1c4e90c9bc0df37a2a9ac72da\" rel=\"nofollow ugc noopener\">commit</a>). With LLMs/agents being a thing these days, dictating into your Emacs buffer may be just the thing to complement your AI workflow.</p>\n<p>I covered this in my <a href=\"https://xenodium.com/macos-dictation-returns-to-emacs-fix-merged\" rel=\"nofollow ugc noopener\">macOS dictation returns to Emacs (fix merged)</a> post.</p>\n<figure><img src=\"https://xenodium.github.io/images/macos-dictation-returns-to-emacs-fix-merged/dictation.webp\" alt=\"\" loading=\"lazy\" decoding=\"async\" referrerpolicy=\"no-referrer\" /></figure>\n<h2 id=\"make-it-all-sustainable\">Make it all sustainable</h2>\n<p>Are you getting value from any of my upstreamed changes or my Emacs packages? Please consider <a href=\"https://github.com/sponsors/xenodium\" rel=\"nofollow ugc noopener\">sponsoring</a> to keep the work going. While my patches may seem relatively straightforward, some took <a href=\"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76120\" rel=\"nofollow ugc noopener\">quite a bit of effort to land upstream</a>.</p>\n<p>My Emacs work not your cup of tea? No worries. As mentioned earlier, sponsor the maintainers you rely on instead.</p>","headings":[{"level":2,"text":"Hide Dired's absolute location","id":"hide-dired-s-absolute-location"},{"level":2,"text":"macOS speech recognition permission","id":"macos-speech-recognition-permission"},{"level":2,"text":"Send to… (aka macOS sharing)","id":"send-to-aka-macos-sharing"},{"level":2,"text":"macOS dictation is back","id":"macos-dictation-is-back"},{"level":2,"text":"Make it all sustainable","id":"make-it-all-sustainable"}]}}