summaryrefslogtreecommitdiff
path: root/lisp/osc.el
Commit message (Collapse)AuthorAgeFilesLines
* Minor touch-ups of some recent OSC stuffMatthias Meulien2022-09-191-5/+5
| | | | | | | * lisp/comint.el (comint-osc-handlers): (comint-osc-hyperlink-map): Use defvaralias (bug#57821). * lisp/osc.el: Fix some comments.
* ; Fix doc strings in osc.elEli Zaretskii2022-09-181-23/+24
| | | | | | | | * lisp/osc.el (osc-filter-region, osc-apply-on-region) (osc-window-title-handler, osc-directory-tracker) (osc-hyperlink-handler, osc-for-compilation-buffer) (osc-compilation-filter): Fix doc strings. `
* Fix osc.el compilation warningLars Ingebrigtsen2022-09-181-0/+2
| | | | * lisp/osc.el (compilation-filter-start): Avoid compilation warning.
* OSC escape sequences filter for compilation bufferMatthias Meulien2022-09-181-0/+48
| | | | | | | | | * lisp/osc.el (osc-control-seq-regexp): Regexp matching OSC control sequence. (osc-filter-region): Filter out OSC control sequences from region. (osc-for-compilation-buffer): Determines what to do with OSC escape sequences in compilation output. (osc-compilation-filter): Implement OSC escape sequence handling for compilation output (bug#57821).
* Handle OSC command to set window titleMatthias Meulien2022-09-181-3/+16
| | | | | | | | | * lisp/osc.el (osc-handlers): Bind osc-window-title-handler to OSC command 2. (osc-window-title): Local variable storing string extracted from OSC command 2. (osc-window-title-handler): Copy text from OSC command 2 to osc-window-title (bug#57821).
* Extract support of OSC escape sequences from comintMatthias Meulien2022-09-181-0/+127
* 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).