]> git.eshelyaron.com Git - emacs.git/commit
Extract support of OSC escape sequences from comint
authorMatthias Meulien <orontee@gmail.com>
Sun, 18 Sep 2022 11:54:46 +0000 (13:54 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 18 Sep 2022 12:49:27 +0000 (14:49 +0200)
commit7354f4e3e657e41781b04640797a47c3aaba1457
tree53eae091972f3d5c51f5b73efc2dcee9f89afad6
parent39cc0c2f234ccac782a722d0ee998c4f57e0f65f
Extract support of OSC escape sequences from comint

* lisp/comint.el (osc): Now requires osc.el.
(comint-osc-directory-tracker): Alias to osc-directory-tracker.
(comint-osc-hyperlink-handler): Alias to osc-hyperlink-handler.
(comint-osc-hyperlink-map): Alias to osc-hyperlink-map.
(comint-osc-handlers): Alias to osc-handlers.
(comint-osc-hyperlink): Alias to osc-hyperlink.
(comint-osc-process-output): Rewritten to call osc-apply-on-region.
* lisp/osc.el (osc-handlers): Clone comint-osc-handlers.
(osc--marker): Clone comint-osc--marker.
(osc-apply-on-region): Implementation taken from comint-osc-process-output.
(osc-directory-tracker): Clone from comint-osc-directory-tracker.
(osc-hyperlink-map): Clone from comint-osc-hyperlink-map.
(osc-hyperlink): Clone from comint-osc-hyperlink.
(osc-hyperlink--state): Clone from comint-osc-hyperlink--state.
(osc-hyperlink-handler): Clone from comint-osc-hyperlink-handler.
* test/lisp/osc-tests.el (osc): Test osc-apply-region (bug#57821).
lisp/comint.el
lisp/osc.el [new file with mode: 0644]
test/lisp/osc-tests.el [new file with mode: 0644]