diff options
| author | Philip Kaludercic | 2021-06-09 17:58:52 +0200 |
|---|---|---|
| committer | Philip Kaludercic | 2021-06-10 17:22:58 +0200 |
| commit | 567e288eb9e89c768ff7ed6de256319007432ef7 (patch) | |
| tree | c48a20544b9dfbce2bea96bb8b0084adeb55a3fb | |
| parent | ab49a9a6342eb6a4a1c0032a5848dd8538c6ccea (diff) | |
| download | emacs-567e288eb9e89c768ff7ed6de256319007432ef7.tar.gz emacs-567e288eb9e89c768ff7ed6de256319007432ef7.zip | |
Implement message-ids extension
* rcirc.el (rcirc-implemented-capabilities): Add to list of
implemented extensions
(rcirc-print): Insert property denoting message ID
| -rw-r--r-- | lisp/net/rcirc.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 918b716bc78..12e1fc3b2e4 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -579,6 +579,7 @@ See `rcirc-connect' for more details on these variables.") | |||
| 579 | '("message-tags" ;https://ircv3.net/specs/extensions/message-tags | 579 | '("message-tags" ;https://ircv3.net/specs/extensions/message-tags |
| 580 | "server-time" ;https://ircv3.net/specs/extensions/server-time | 580 | "server-time" ;https://ircv3.net/specs/extensions/server-time |
| 581 | "batch" ;https://ircv3.net/specs/extensions/batch | 581 | "batch" ;https://ircv3.net/specs/extensions/batch |
| 582 | "message-ids" ;https://ircv3.net/specs/extensions/message-ids | ||
| 582 | ) | 583 | ) |
| 583 | "A list of capabilities that rcirc supports.") | 584 | "A list of capabilities that rcirc supports.") |
| 584 | (defvar-local rcirc-requested-capabilities nil | 585 | (defvar-local rcirc-requested-capabilities nil |
| @@ -1766,9 +1767,10 @@ connection." | |||
| 1766 | (save-excursion | 1767 | (save-excursion |
| 1767 | (save-restriction | 1768 | (save-restriction |
| 1768 | (narrow-to-region (point) (point)) | 1769 | (narrow-to-region (point) (point)) |
| 1769 | (insert (rcirc-format-response-string process sender response | 1770 | (insert (propertize (rcirc-format-response-string process sender response |
| 1770 | nil text) | 1771 | nil text) |
| 1771 | (propertize "\n" 'hard t)) | 1772 | 'rcirc-msgid (rcirc-get-tag "msgid")) |
| 1773 | (propertize "\n" 'hard t)) | ||
| 1772 | 1774 | ||
| 1773 | ;; squeeze spaces out of text before rcirc-text | 1775 | ;; squeeze spaces out of text before rcirc-text |
| 1774 | (fill-region (point-min) (point-max)) | 1776 | (fill-region (point-min) (point-max)) |