diff options
Diffstat (limited to 'itches/emacs')
| -rw-r--r-- | itches/emacs/development.org | 17 | ||||
| -rw-r--r-- | itches/emacs/emoji.org | 2 | ||||
| -rw-r--r-- | itches/emacs/language-support.org | 7 | ||||
| -rw-r--r-- | itches/emacs/tracker.org | 48 |
4 files changed, 67 insertions, 7 deletions
diff --git a/itches/emacs/development.org b/itches/emacs/development.org index a1fe3f2..a3e05da 100644 --- a/itches/emacs/development.org +++ b/itches/emacs/development.org @@ -46,6 +46,23 @@ trick, e.g. &submit=Search! &idxname=$LIST #+end_example + ⇒ + #+begin_src elisp + (defun mhonarc-to-messageid (url) + "Retrieve the Message-ID from an article archived on MHonArc." + (interactive + (list + (let* ((default (or (thing-at-point-url-at-point) + (and (derived-mode-p 'eww-mode) + (shr-url-at-point nil)))) + (prompt (if default + (format "URL? (%s) " default) + "URL? "))) + (read-string prompt nil nil default)))) + (with-current-buffer (url-retrieve-synchronously url) + (search-forward-regexp "^<!--X-Message-Id: \\(.+\\) -->$") + (message (xml-substitute-numeric-entities (match-string 1))))) + #+end_src - public-inbox: trivial *** TODO HTTP archive → Message-ID - <https://lists.gnu.org>: cf. =X-Message-Id= comment in HTML diff --git a/itches/emacs/emoji.org b/itches/emacs/emoji.org index a66ec87..0d163c7 100644 --- a/itches/emacs/emoji.org +++ b/itches/emacs/emoji.org @@ -7,7 +7,7 @@ Bug#35781 fixed by Yamamoto Mitsuharu. * TODO Check whether combining sequences work -For example:, regional flags, ZWJ sequences from +For example: regional flags, ZWJ sequences from - ZWJ sequences from <https://unicode.org/emoji/charts/emoji-zwj-sequences.html>: diff --git a/itches/emacs/language-support.org b/itches/emacs/language-support.org index 8ec766e..375b657 100644 --- a/itches/emacs/language-support.org +++ b/itches/emacs/language-support.org @@ -9,8 +9,6 @@ Default to "mixed" (rely on tests to ensure user-visible change). **** TODO create variable to choose style Users could customize it or set it with directory-local variables. *** TODO add heuristic to pick the "right" style -** Fontify f-strings -E.g. =f'an {expression} that should be highlighted'=. * Shell scripts @@ -36,10 +34,7 @@ foo_bar \ ${foo}bar \ indentisfoobar #+end_src - - -* Makefile -** Recognize [[http://austingroupbugs.net/view.php?id=330][POSIX "immediate-expansion"]] operator ~::=~ +Reported by Dario Gjorgjevski in bug#44592. * Assembly diff --git a/itches/emacs/tracker.org b/itches/emacs/tracker.org index ba198b0..bec0311 100644 --- a/itches/emacs/tracker.org +++ b/itches/emacs/tracker.org @@ -154,6 +154,54 @@ Fixed by Dmitry. :TestAdded: t :END: My commit message ran afoul of debbugs.el's =M-m= again. +*** ERC +**** TODO Support SASL authentication +Got bitten by this when trying to connect to irc.freenode.net from +=alyon-654-1-454-60.w109-213.abo.wanadoo.fr=: +#+begin_quote +ERROR from irc.freenode.net: Closing Link: +alyon-654-1-454-60.w109-213.abo.wanadoo.fr (SASL access only) +#+end_quote + +This was requested in [[bug:29108]]. Lars closed this report because +while there is a third-party package to implement the feature, its +author did not respond when prompted for copyright assignment. + +I did not have the patience to look at the package; instead I went +straight to [[https://ircv3.net/specs/extensions/sasl-3.1][the description of SASL on ircv3.net]] and the [[https://tools.ietf.org/html/rfc4616#section-2][RFC for the +=PLAIN= mechanism]], and cobbled this silly patch: + +#+begin_src diff +diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el +index 1d5506e281..0da677ac18 100644 +--- a/lisp/erc/erc.el ++++ b/lisp/erc/erc.el +@@ -6052,7 +6052,17 @@ erc-login + erc-session-server + erc-session-user-full-name)) + (if erc-session-password +- (erc-server-send (format "PASS %s" erc-session-password)) ++ (progn ++ (erc-server-send "CAP REQ :sasl") ++ (erc-server-send "AUTHENTICATE PLAIN") ++ (erc-server-send ++ (concat "AUTHENTICATE " (base64-encode-string ++ (string-join (list ++ (user-login-name) ++ (erc-current-nick) ++ erc-session-password) ++ "\0")))) ++ (erc-server-send "CAP END")) + (message "Logging in without password")) + (erc-server-send (format "NICK %s" (erc-current-nick))) + (erc-server-send +#+end_src + +AFAICT this is enough to get me authenticated on Freenode. It looks +like it's not too hard to implement? + +Ideally Emacs's builtin =sasl.el= should be reused; that would let ERC +support better SASL mechanisms than =PLAIN=. *** Gnus **** DONE [[bug:40520]] Prevent duplicate thread titles :PROPERTIES: |
