GNU bug report logs - #78263
[PATCH 1/3] Ignore OSC sequences in term instead of printing them

Previous Next

Package: emacs;

Reported by: Stephane Zermatten <szermatt <at> gmail.com>

Date: Mon, 5 May 2025 15:21:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


Message #38 received at 78263 <at> debbugs.gnu.org (full text, mbox):

From: Jared Finder <jared <at> finder.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Stéphane Zermatten <szermatt <at> gmail.com>, per <at> bothner.com,
 78263 <at> debbugs.gnu.org
Subject: Re: bug#78263: [PATCH 1/3] Ignore OSC sequences in term instead of
 printing them
Date: Sun, 01 Jun 2025 22:21:15 -0700
Only minor comments, otherwise the patch generally looks good.

> +(defcustom term-osc-handlers '(("0" . ansi-osc-window-title-handler)
> +                               ("2" . ansi-osc-window-title-handler)
> +                               ("7" . ansi-osc-directory-tracker)
> +                               ("8" . ansi-osc-hyperlink-handler))

The variable ansi-osc-handlers in ansi-osc.el doesn't handle OSC 0 (set 
icon and title), but here it's handled.  I would think the two should be 
identical.  Also what's the rationale for duplicating ansi-osc-handlers 
instead of just adding a new custom variable that tells term to look at 
asci-osc-handlers?

> +(ert-deftest term-ignore-osc()

Style nit: there should be a space between the symbol term-ignore-osc 
and the ().  This should look like a defun of no arguments.


Apologies for taking so long to get to this.

  -- MJF




This bug report was last modified 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.