From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: semente Newsgroups: gmane.emacs.bugs Subject: bug#29716: 25.1; Wrong brackground-mode on gnome-terminal Date: Sun, 07 Jan 2018 21:24:58 -0200 Message-ID: <87wp0tckvp.fsf@cafe.lan> References: <87shcd56jv.fsf@cafe.lan> <87y3m4btbi.fsf@users.sourceforge.net> <83k1xotltn.fsf@gnu.org> <878tdq7jdn.fsf@cafe.lan> <87po6utly6.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1515367457 19799 195.159.176.226 (7 Jan 2018 23:24:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2018 23:24:17 +0000 (UTC) Cc: 29716@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 08 00:24:13 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYKIV-0004Zf-21 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jan 2018 00:24:11 +0100 Original-Received: from localhost ([::1]:48779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYKKS-0005WJ-To for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jan 2018 18:26:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYKKM-0005W0-EW for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2018 18:26:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYKKI-0003CF-Bm for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2018 18:26:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYKKI-0003CA-7m for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2018 18:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eYKKI-0006Pd-1N for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2018 18:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: semente Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jan 2018 23:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29716 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 29716-submit@debbugs.gnu.org id=B29716.151536750624588 (code B ref 29716); Sun, 07 Jan 2018 23:26:01 +0000 Original-Received: (at 29716) by debbugs.gnu.org; 7 Jan 2018 23:25:06 +0000 Original-Received: from localhost ([127.0.0.1]:39976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYKJN-0006OW-TZ for submit@debbugs.gnu.org; Sun, 07 Jan 2018 18:25:06 -0500 Original-Received: from mx1.riseup.net ([198.252.153.129]:42471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYKJM-0006OO-G4 for 29716@debbugs.gnu.org; Sun, 07 Jan 2018 18:25:04 -0500 Original-Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id B67391A0890; Sun, 7 Jan 2018 15:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1515367503; bh=zN8CHIugOmR3mZb3kG37HXWEBC7zcA+4HY0BbvDEwQg=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=jJDxqBr4FUUo4HgExICFCu/wZAtKQ0wICdzQHKL+dTEHq4CB+xddWqGJ4ZxcWK0oE V2nXBRGsWAX/XaQ3WkbzGkIUFvkez7OTGVKvF20GxVHS/NK28x0CPt/yQFcSIYyIsu AHUW2XI0Ts/AZftY3jNksEG0Nr2qKfPP3u2x6/bM= X-Riseup-User-ID: 7F71AC2C6BF137E713D73E802550FC6CD906B58D9246C136880F59AF5C154D9A Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by piha.riseup.net with ESMTPSA id BB83122A65B; Sun, 7 Jan 2018 15:25:02 -0800 (PST) In-reply-to: <87po6utly6.fsf@users.sourceforge.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141886 Archived-At: Got this: background: rgb:2323/2727/2929^[ Anyway, I might just have found the issue. The patch set the version to 200 before evaluating the following code: (when (> version 4000) (xterm--query "\e]11;?\e\\" '(("\e]11;" . xterm--report-background-handler)))) So the expression above is never evaluated. I moved the `(setq version 200)' line to the line after the `(when ...)' expression and it is working now but don't know if it is exactly what you would do. Thank you once again! Noam Postavsky writes: > semente writes: > >> Hey Eli and Noam, sorry for the delay in give you a feedback >> but the >> patch unfortunately didn't work for me. > > Hmm, what does the evaluating the following produce? It should > pop up a > buffer *bug29716* showing something like "background: > rgb:ee00/e800/d500^[". > > (defun bug29716--report-background-handler () > (let ((str "") > chr) > ;; The reply should be: \e ] 11 ; rgb: NUMBER1 / NUMBER2 > / NUMBER3 \e \\ > (while (and (setq chr (read-event nil nil 2)) (not > (equal chr ?\\))) > (setq str (concat str (string chr)))) > (with-current-buffer (get-buffer-create "*bug29716*") > (insert (format "background: %s\n" str)) > (display-buffer (current-buffer))))) > > (xterm--query "\e]11;?\e\\" > '(("\e]11;" . > bug29716--report-background-handler))) > > If that works, is it possible you didn't test the patch > correctly? > (e.g., maybe you applied the patch, but didn't recompile?) > > If it doesn't work, I'm a bit confused, given what you reported > in #13. -- semente