From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Wainstead Newsgroups: gmane.emacs.bugs Subject: bug#14719: 24.3; Crashing when setting frames to random colors Date: Tue, 25 Jun 2013 15:00:09 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372198333 27701 80.91.229.3 (25 Jun 2013 22:12:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2013 22:12:13 +0000 (UTC) To: 14719@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 26 00:12:13 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrbTB-0001df-99 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2013 00:12:13 +0200 Original-Received: from localhost ([::1]:43786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrbTA-0004Li-R5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Jun 2013 18:12:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrbT4-0004Lc-Ui for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 18:12:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrbT1-0004Ba-A8 for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 18:12:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrbT1-0004BU-6r for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 18:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UrbT0-0003mC-JQ for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 18:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Steve Wainstead Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jun 2013 22:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14719 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137219828914466 (code B ref -1); Tue, 25 Jun 2013 22:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jun 2013 22:11:29 +0000 Original-Received: from localhost ([127.0.0.1]:41209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrbSS-0003lF-9I for submit@debbugs.gnu.org; Tue, 25 Jun 2013 18:11:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38847) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UrbHu-0003UO-7Y for submit@debbugs.gnu.org; Tue, 25 Jun 2013 18:00:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrbHh-0000XC-KY for submit@debbugs.gnu.org; Tue, 25 Jun 2013 18:00:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrbHh-0000X6-Gb for submit@debbugs.gnu.org; Tue, 25 Jun 2013 18:00:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrbHd-000255-0t for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 18:00:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrbHZ-0000Ug-58 for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 18:00:16 -0400 Original-Received: from mail.socialserve.com ([66.129.73.133]:50199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrbHZ-0000UG-12 for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2013 18:00:13 -0400 Original-Received: from swain.socialserve.com (swain.socialserve.com [10.0.8.64]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: swain) by mail.socialserve.com (Postfix) with ESMTPSA id 5C9232A4C4 for ; Tue, 25 Jun 2013 18:00:11 -0400 (EDT) X-Mailer: Apple Mail (2.1508) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Tue, 25 Jun 2013 18:11:27 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:75595 Archived-At: I have a Lisp function that is run every time I do M-x compile: ;; choose random colors every time we compile, just for fun (defun sw-make-random-hex-color-string () "Return a string in the form of #FFFFFF. Choose the number for #xffffff randomly using Emacs Lisp's builtin function (random)." ;; seed our random number generator: current datetime plus Emacs's ;; process ID (random t) (format "#%06x" (random #xffffff)) ) (defun sw-randomize-frame-colors () "Change foreground and background colors of the current frame to random colors." (interactive) (let ( (fg-color (sw-make-random-hex-color-string)) (bg-color (sw-make-random-hex-color-string)) (color-distance #x3fffff) ) (set-foreground-color fg-color) (set-background-color bg-color) ) ) I *think* sometimes the color values come out the same and it causes Emacs to crash. I'm not sure because it's almost instantaneous when I run compile. Note that color-distance is unused, a feature I've yet to implement. In GNU Emacs 24.3.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37) of 2013-03-20 on swain.socialserve.com Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure '--with-ns'' Important settings: locale-coding-system: nil default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: display-time-mode: t desktop-save-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: y M-x s e SPC t SPC f o r e r e d M-x s e t SPC b a c k r e d M-x s e t SPC b a c k g r o u n d SPC c o l o r b l a c k M-x s e t SPC f o r e g o l d e n r o d C-e k C-x o C-n C-e M-b C-x . C-g C-x k C-x 1 M-x s e t SPC c u r c r e d C-e C-n C-n C-n C-n C-n C-n C-n C-n M-x b u g s C-g M-x r e p o r t - e m a c s - b u g Recent messages: Using the CPython shell Local value of py-indent-offset set to 4 Using the CPython shell Desktop: 9 buffers restored. For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Type C-x 1 to delete the help window. Local value of py-indent-offset set to 4 Using the CPython shell Mark set Quit [2 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils find-func etags help-mode vc-git imenu csv-mode-autoloads package derived diff-mode- two-column edmacro kmacro python-mode info-look info cl-macs gv easymenu compile cl comint ansi-color ring byte-opt warnings bytecomp byte-compile cconv advice help-fns cl-lib advice-preload server time ibuffer desktop paren time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) --- Steve Wainstead SocialServe.com