From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#10397: [PATCH] Under Remote Desktop, NUMCOLORS is unreliable; workaround Date: Thu, 29 Dec 2011 17:27:48 +0100 Message-ID: References: <69c9ec930ef1d48655624d437aa66d0fce275d3e.1325166766.git.dancol@dancol.org> <4EFC9416.6090005@dancol.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1325176173 32114 80.91.229.12 (29 Dec 2011 16:29:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2011 16:29:33 +0000 (UTC) Cc: 10397@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 17:29:28 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RgIr7-0001D1-Ls for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 17:29:25 +0100 Original-Received: from localhost ([::1]:43444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgIr7-00024D-3b for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 11:29:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgIqz-00021F-AM for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 11:29:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgIqu-0000nP-4H for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 11:29:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgIqu-0000nJ-2B for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 11:29:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RgIte-0005co-97 for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 11:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2011 16:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10397-submit@debbugs.gnu.org id=B10397.132517628321576 (code B ref 10397); Thu, 29 Dec 2011 16:32:02 +0000 Original-Received: (at 10397) by debbugs.gnu.org; 29 Dec 2011 16:31:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgIt0-0005bw-On for submit@debbugs.gnu.org; Thu, 29 Dec 2011 11:31:23 -0500 Original-Received: from mail-pw0-f44.google.com ([209.85.160.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgIsy-0005bp-Nb for 10397@debbugs.gnu.org; Thu, 29 Dec 2011 11:31:21 -0500 Original-Received: by pbdd12 with SMTP id d12so8230628pbd.3 for <10397@debbugs.gnu.org>; Thu, 29 Dec 2011 08:28:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=R51y+DForfzsz5205vMFxGkb1yB8eX1+UD2RFAjGo5k=; b=x40iNNsOePSxqftOf5xiveZ//yJeDIaD/fcUwsTICllu2Kf4vuS+WBaafAeND2Osb7 bBQHv1ulIBuTDof6E9Trxn0pdc9IVxFVVG44pgtPAYpDZv8/AVURZJNBYb7Re0psBx/u yRzXFbHSsVYaVJ3Q6r/HfEDCA5lfTRh9w11fw= Original-Received: by 10.68.75.132 with SMTP id c4mr62930443pbw.23.1325176109177; Thu, 29 Dec 2011 08:28:29 -0800 (PST) Original-Received: by 10.142.247.28 with HTTP; Thu, 29 Dec 2011 08:27:48 -0800 (PST) In-Reply-To: <4EFC9416.6090005@dancol.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 29 Dec 2011 11:32:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55275 Archived-At: On Thu, Dec 29, 2011 at 17:23, Daniel Colascione wrote: > Why? What's the point of adding the extra complexity? > Setting cap to -1 leads to this line > > =C2=A0 =C2=A01 << min (dpyinfo->n_planes * dpyinfo->n_cbits, 24); > > which produces a reasonable result for direct color displays. > Why keep using NUMCOLORS, which we know to be broken? No, you said that NUMCOLORS is known to be broken in a very specific case. In the general, non-RemoteDektop case, it works. Can you guarantee that for every non-palettized display, it will produce the same number? Because otherwise you're changing the current behavior for people who's not affected by the RemoteDeskopt-related bug. =C2=A0 =C2=A0 Juanma