status-update-june-2022.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /><meta name="keywords" content="GNU, Emacs, Libre Software, Hurd, Guile, Guix" /><meta name="description" content="GNUcode.me is a website focusing on libre software projects, especially the GNU project." /><link type="application/atom+xml" rel="alternate" title="GNUcode.me -- Feed" href="/feed.xml" /><a rel="me" href="https://fosstodon.org/@thegnuguy"></a><link type="text/css" href="css/footer.min.css" rel="stylesheet"></link><link type="text/css" href="css/header.min.css" rel="stylesheet"></link><link type="text/css" href="css/main.min.css" rel="stylesheet"></link><title>Status Update June 2022 — GNUcode.me</title></head><body><header><nav><ul><li><a href="index.html">GNUcode.me</a></li><li><a href="services.html">Services</a></li><li><a href="about.html">About</a></li><li><a href="business-ideas.html">Business-ideas</a></li></ul></nav></header><h1>Status Update June 2022</h1><main><section class="basic-section-padding"><article><h3>by Joshua Branson — July 07, 2022</h3><div><p>Sorry for the belated status update.</p><p>For June I finally submitted my opensmtpd-records code to be reviewed by guix
  2. properly. I am fairly happy about that. Here is the url:</p><p><a href="https://issues.guix.gnu.org/56046">https://issues.guix.gnu.org/56046</a></p><p>I also created a short video showing people how you could play with the current
  3. code base.</p><p><a href="https://video.hardlimit.com/w/p/bmbYAkQ84BBfF4aAZNAPcR?playlistPosition=8&amp;resume=true">https://video.hardlimit.com/w/p/bmbYAkQ84BBfF4aAZNAPcR?playlistPosition=8&amp;resume=true</a></p><h1>I also fixed Emacs again. Somehow I lost the ability to send email via Emacs,</h1><p>which is super annoying. I committed everything to git, so hopefully I won’t do
  4. that again anytime soon. Here is the gist of how I set up email again:</p><pre><code>;; I need to use imap to read my dismail inbox...for some reason, my local gnus
  5. ;; cannot read my local dovecot Inbox...No idea why.
  6. (setq gnus-select-method '(nnimap &quot;imap.dismail.de&quot;))
  7. (setq gnus-secondary-select-methods
  8. '(
  9. ;; I would like to use gnus as my maildir, but imap works just fine for now.
  10. ;; (nnmaildir &quot;dismail.de&quot;
  11. ;; (nnir-search-engine notmuch)
  12. ;; (nnir-notmuch-additional-switches &quot;search&quot;)
  13. ;; (directory &quot;~/.mail/dismail/&quot;))
  14. ;; (nnmaildir &quot;fastmail&quot; (directory &quot;~/.mail/&quot;))
  15. ;; (nntp &quot;news.gwene.org&quot;)
  16. (nntp &quot;news.gmane.io&quot;)
  17. ;; this makes gnus startup super slow!!! (nnmaildir
  18. ;; &quot;dismail.de&quot; (directory &quot;~/.mail/dismail.de/&quot;))
  19. (nnimap &quot;gnucode.me&quot;
  20. (nnimap-stream ssl)
  21. (nnimap-address &quot;imap.gnucode.me&quot;)
  22. (nnimap-user &quot;joshua&quot;))
  23. ;; this is the right config, but I'm not certain how to set up a dovecot username and password
  24. (nnimap &quot;localDismail&quot;
  25. (nnimap-address &quot;localhost&quot;)
  26. (nnimap-stream network)
  27. (nnimap-server-port 143)
  28. )))
  29. ;; use msmtp
  30. ;; from the emacs wiki: https://www.emacswiki.org/emacs/GnusMSMTP
  31. (setq message-send-mail-function 'message-send-mail-with-sendmail)
  32. ;; we substitute sendmail with msmtp
  33. (setq sendmail-program &quot;/home/joshua/.guix-profile/bin/msmtp&quot;)
  34. ;; This is needed to allow msmtp to do its magic:
  35. (setq message-sendmail-f-is-evil 't)
  36. ;;need to tell msmtp which account we're using
  37. (setq message-sendmail-extra-arguments '(&quot;--read-envelope-from&quot;))</code></pre><h1>I created a simple debbugs function to help me search for guix packages:</h1><pre><code>;; setting up debbugs
  38. (require 'debbugs-autoloads)
  39. ;; send mail function so &quot;C&quot; in the debbugs-gnu-mode works
  40. (setq send-mail-function 'message-send-mail-with-sendmail)
  41. ;; the below doesn't seem to work
  42. (setq debbugs-gnu-default-packages '(&quot;guix&quot; &quot;guix-patches&quot;))
  43. ;; my defun for searching for a package my bug #
  44. ;; TODO make this seach by default NOT search for closed bugs
  45. ;; press x for now.
  46. (defun my-debbugs-search ()
  47. (interactive)
  48. (let (string)
  49. (setq debbugs-gnu-suppress-closed t)
  50. (setq string (read-string &quot;Search String: &quot;))
  51. (debbugs-gnu-search string nil nil &quot;guix&quot; nil)))
  52. (defalias 'my-open-bugs 'debbugs-gnu-tagged)
  53. my-open-bugs</code></pre><p><code>M-x my-dubbugs-search RET 56046 RET</code> is a pretty cool way to search for open
  54. guix bug reports. Also <code>M-x debbugs-gnu-search</code> is broken on doom emacs. It
  55. keeps prompting you for more input. It never lets you search. Weird.</p><p>I also found out that in the debbugs-gnu-mode (the buffer that appears after you
  56. search for bugs), you can type in “t” to tag yourself to open bugs. This is an
  57. easy way to remind yourself, which buys you want. Then <code>M-x my-open-bugs</code> or
  58. <code>M-x debbugs-gnu-tagged</code> shows you a buffer of bugs that you are currently
  59. interested in.</p><p>I also learned that I can unarchive, tag, close, and do various other things to bugs by
  60. pressing the &quot;C&quot; key inside a debbugs-gnu-mode buffer. I actually closed one of my
  61. old bug reports from inside emacs the other day: <code>M-x my-debbugs-search RET 39271</code></p><h1>I also played with a proposed patch from Ludo yesterday:</h1><p><code>M-x my-debbugs-search 56114</code>. Basically, it lets you build a gexp and show the
  62. output file from the repl. It’s a really nifty patch, and I hope it gets merged
  63. soon.</p><p>In order to play with the proposed patch, I had to learn how to apply patches
  64. from debbugs to my local guix-src branch:</p><p>First find the patch via issues.guix.gnu.org or debbugs.</p><p>guix install emacs-debbugs</p><p>M-x my-debbugs-search BugNumber RET</p><p>Find the email via debbugs, and type in O m to save the file.</p><p>Then open up M-x magit-status RET w m to apply the patch.</p><p>magit may give you an odd error. But you can always check the log. Sometimes it
  65. applies the patch, and still gives you an error. In my case, it applied the
  66. patch that I wanted to play with, but then magit thought there were other
  67. patches that I may want to apply. Magit was stuck in &quot;applying patches mode&quot;,
  68. and would not let me re-order commits. My fixed this error by typing &quot;w s&quot;. &quot;w&quot;
  69. is appylying patches mode. &quot;s&quot; is skip. This fixed the error, and applied the
  70. patch successfully.</p><p>This method works fairly well, if you are applying one patch. But to apply a patch
  71. series, it may be a be a tedious process.</p><p>That’s where this irc conversation comes in handy:</p><pre><code> gnucode │ is there an easy way to apply a patch from debbugs-gnu to my local guix repository?
  72. unmatched-paren │ gnucode: download the mbox and `git am` away :)
  73. gnucode │ unmatched-paren that seems very tedious...
  74. unmatched-paren │ curl might be able to make it easier
  75. gnucode │ It would be nice if I could apply the patch from emacs and debbugs...just my 2 cents.
  76. morganw │ I think there is an Emacs package which can apply git patches that are in a mail message.
  77. unmatched-paren │ I use aerc which allows me to download and apply the mbox automatically, not sure whether $EMACS_MAIL_CLIENT can do that
  78. unmatched-paren │ aerc command is :pipe -mb git am -3&lt;Enter&gt;
  79. unmatched-paren │ &quot;pipe the mbox into git am three-way&quot;
  80. gnucode │ unmatched-paren are you using mbox to read the guix email achives?
  81. unmatched-paren │ gnucode: what do you mean?
  82. unmatched-paren │ i think aerc uses maildir by default
  83. gnucode │ ok. Maybe I should give aerc a try. I keep wanting to use emacs for most of my email and everything needs. But I have a really hard time figuring out how to use it.
  84. gnucode │ I used to be able to send email via emacs...now I can't.
  85. morganw │ gnucode: I think this is one some people use: https://git.kyleam.com/piem
  86. unmatched-paren │ aerc uses vi commands, fyi
  87. gnucode │ I am using evil-mode
  88. unmatched-paren │ ah
  89. unmatched-paren │ gnucode: I'm afraid my patch adding aerc hasn't been merged yet though
  90. unmatched-paren │ because of the general lack of vi users around here :)
  91. morganw │ It believe that if you use Gnus there is also a built in command to send the message buffer to a pipe and so something with it.
  92. morganw │ *do something
  93. morganw │ Or possibly it was built into message mode, I think I tried it once but I don't remember the exact process.
  94. unmatched-paren │ maybe there's a way to pipe the mbox too
  95. gnucode │ I just found this: https://emacs.stackexchange.com/questions/36885/how-do-i-apply-a-patch-from-gnus-to-a-git-repo
  96. gnucode │ seems promising
  97. unmatched-paren │ nice!
  98. ulfvonbelow │ M-&gt; C-&lt;space&gt; M-&lt; M-| &lt;your command here&gt;
  99. ulfvonbelow │ that works with any buffer btw
  100. rekado_ │ gnucode: I use mu4e (which uses gnus message mode to display emails) and wired up the mu4e-action-git-apply-mbox action.
  101. gnucode │ rekado_: do you ever use debbugs?
  102. rekado_ │ I dog-food mumi / issues.guix.gnu.org
  103. gnucode │ rekado_: hahah.</code></pre><p>See you next time!</p></div></article></section></main><footer><p>© 2020 Joshua Branson. The text on this site is free culture under the Creative Commons Attribution Share-Alike 4.0 International license.</p><p>This website is build with Haunt, a static site generator written in Guile Scheme. Source code is <a href="https://notabug.org/jbranso/gnucode.me">available.</a></p><p>The color theme of this website is based off of the famous <a href="#3f3f3f" target="_blank">zenburn</a> theme.</p></footer></body>