emacs/var/elfeed/db/data/62/621164a2b5b9ab00dafdd77744076b3a20792f27
2022-01-03 12:49:32 -06:00

41 lines
2.8 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>Following my <a href="https://www.manueluberti.eu/emacs/2021/11/27/vc/">previous
article</a> on VC, I felt like
proposing a key binding for <code class="language-plaintext highlighter-rouge">vc-git-stash</code> to the Emacs developers was something
that could turn out to be useful for other VC users.</p>
<p>As it is usually recommended to do in these cases<sup id="fnref:1"><a class="footnote" href="https://www.manueluberti.eu/feed#fn:1" rel="footnote">1</a></sup>, I filed my request using
<kbd>M-x report-emacs-bug</kbd>:
<a href="https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52158">#52158</a>. You can see that
I specifically mentioned <code class="language-plaintext highlighter-rouge">mu-vc-git-stash</code>, the thin wrapper I coded to have VC
stashing commands easily reachable, in order to back my proposal with the custom
code I used to scratch a tiny itch.</p>
<p><a href="https://lars.ingebrigtsen.no/">Lars Ingebrigtsen</a>, one of the Emacs
co-maintainers, replied to me quickly<sup id="fnref:2"><a class="footnote" href="https://www.manueluberti.eu/feed#fn:2" rel="footnote">2</a></sup> suggesting that I can use <kbd>C</kbd>
if I put my cursor on the <code class="language-plaintext highlighter-rouge">Stash:</code> line of the <code class="language-plaintext highlighter-rouge">vc-dir</code> buffer. That led me to
discover that if I move the cursor onto a line pointing to a stash I can press
<kbd>P</kbd> to pop it with <code class="language-plaintext highlighter-rouge">vc-git-stash-pop-at-point</code>. The outcome should be
obvious: I can get rid of <code class="language-plaintext highlighter-rouge">mu-vc-git-stash</code>.</p>
<p>Why wasnt I using these key bindings before? As I wrote on the bug tracker,
<kbd>C-h m</kbd> in <code class="language-plaintext highlighter-rouge">vc-dir</code> buffers does not document them and I did not find
them explained in the <code class="language-plaintext highlighter-rouge">28.1.10.2 VC Directory Commands</code> section of the manual
either. If the documentation is not added, I may get in touch with the Emacs
maintainers to see if I can contribute it myself. Unless of course the
documentation is already there and its just my reading and searching skills
failing me.</p>
<h3 id="notes">Notes</h3>
<div class="footnotes">
<ol>
<li id="fn:1">
<p>I was once advised to use this approach on <code class="language-plaintext highlighter-rouge">emacs-devel</code>. <a class="reversefootnote" href="https://www.manueluberti.eu/feed#fnref:1">↩</a></p>
</li>
<li id="fn:2">
<p>This is something Emacs core developers do all the time and I dont think
its appreciated enough. They always reply to my questions, even the ones
that on second thoughts I consider silly. <a class="reversefootnote" href="https://www.manueluberti.eu/feed#fnref:2">↩</a></p>
</li>
</ol>
</div>