From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#10397: [PATCH] Under Remote Desktop, NUMCOLORS is unreliable; workaround Date: Thu, 29 Dec 2011 14:59:11 -0800 Message-ID: <4EFCF0BF.1020907@dancol.org> References: <69c9ec930ef1d48655624d437aa66d0fce275d3e.1325166766.git.dancol@dancol.org> <4EFC9416.6090005@dancol.org> <4EFC987D.2020901@dancol.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5F291A41ACAE860C56CB61E1" X-Trace: dough.gmane.org 1325199624 20848 80.91.229.12 (29 Dec 2011 23:00:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2011 23:00:24 +0000 (UTC) Cc: 10397@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 30 00:00:18 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 1RgOxL-0004VD-3p for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2011 00:00:15 +0100 Original-Received: from localhost ([::1]:56350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgOxK-0003uN-Os for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 18:00:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgOxI-0003uI-7S for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 18:00:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgOxH-0000uG-Cj for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 18:00:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgOxH-0000uB-7I for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 18:00:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RgP02-0007D9-GJ for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 18:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2011 23:03: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.132519973327660 (code B ref 10397); Thu, 29 Dec 2011 23:03:02 +0000 Original-Received: (at 10397) by debbugs.gnu.org; 29 Dec 2011 23:02:13 +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 1RgOzF-0007C5-4E for submit@debbugs.gnu.org; Thu, 29 Dec 2011 18:02:13 -0500 Original-Received: from dancol.org ([96.126.100.184]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgOzD-0007Bx-Ha for 10397@debbugs.gnu.org; Thu, 29 Dec 2011 18:02:12 -0500 Original-Received: from c-24-18-179-193.hsd1.wa.comcast.net ([24.18.179.193] helo=edith.local) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RgOwQ-0008O4-GB; Thu, 29 Dec 2011 14:59:18 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: X-Enigmail-Version: 1.3.4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 29 Dec 2011 18:03: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:55285 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5F291A41ACAE860C56CB61E1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/29/11 8:45 AM, Juanma Barranquero wrote: > On Thu, Dec 29, 2011 at 17:42, Daniel Colascione wr= ote: >=20 >> I'm not convinced there aren't other bugs lurking in the code backing >> NUMCOLORS; after all, it's doing the same simple calculation we are, a= nd >> it's somehow doing it wrong. >=20 > You have also no proof. I don't see why should we try to fix bugs we > don't even know are real. Better to fiix the one you know it *is* > real, IMO. What about this: we'll distrust any NUMCOLORS response less than 256. You'll never use direct color with a bit depth that small, so any answer in that range must be bogus. This approach would address my concerns about wrong values other than exactly 20 being returned. --------------enig5F291A41ACAE860C56CB61E1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAk788MAACgkQ17c2LVA10Vs5wgCdEFP4KLm8Qk4WIyCBApE8BfTt 3aUAmwSgs4+MYG3P1boLMKxYmej2/3g4 =s9Wl -----END PGP SIGNATURE----- --------------enig5F291A41ACAE860C56CB61E1--