From: Steve Wainstead <swainstead@emphasys-software.com>
To: Alan Third <alan@idiocy.org>
Cc: Steve Wainstead <swain@socialserve.com>, 14719@debbugs.gnu.org
Subject: bug#14719: 24.3; Crashing when setting frames to random colors
Date: Mon, 25 Sep 2017 09:30:30 -0400 [thread overview]
Message-ID: <FFD0ED50-70AB-42EC-B0ED-E474619E24A3@emphasys-software.com> (raw)
In-Reply-To: <m2d16enc9m.fsf@breton.holly.idiocy.org>
[-- Attachment #1: Type: text/plain, Size: 1718 bytes --]
I’m running 25.2.1 these days and have not experienced it; and I’ve been using the code below once again, so your timing is actually perfect! If I do see it again I will email you a stack trace from the Crash Reporter.
> On Sep 25, 2017, at 9:22 AM, Alan Third <alan@idiocy.org> wrote:
>
> Steve Wainstead <swain@socialserve.com> writes:
>
>> 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.
>
> Hi, sorry it's taken so long for someone to come back to you.
>
> I can't reproduce this crash, are you still experiencing it?
> --
> Alan Third
>
---
Steve Wainstead
Software Engineer
Socialserve.com by Emphasys Software
(704) 709-2868
swainstead@emphasys-software.com
[-- Attachment #2: Type: text/html, Size: 3714 bytes --]
next prev parent reply other threads:[~2017-09-25 13:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-25 22:00 bug#14719: 24.3; Crashing when setting frames to random colors Steve Wainstead
2013-07-03 17:54 ` bug#14719: Full lisp used that causes the crash Steve Wainstead
2013-07-03 19:21 ` bug#14719: Crash log Steve Wainstead
2017-09-25 13:22 ` bug#14719: 24.3; Crashing when setting frames to random colors Alan Third
2017-09-25 13:30 ` Steve Wainstead [this message]
2017-09-25 16:52 ` Alan Third
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FFD0ED50-70AB-42EC-B0ED-E474619E24A3@emphasys-software.com \
--to=swainstead@emphasys-software.com \
--cc=14719@debbugs.gnu.org \
--cc=alan@idiocy.org \
--cc=swain@socialserve.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.