GNU bug report logs - #7373
`set-cursor-color’ doesn’t work on Emacs init files

Previous Next

Package: emacs;

Reported by: Li Zhai <mrzhaili <at> gmail.com>

Date: Thu, 11 Nov 2010 12:12:01 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7373 in the body.
You can then email your comments to 7373 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7373; Package emacs. (Thu, 11 Nov 2010 12:12:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Li Zhai <mrzhaili <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 11 Nov 2010 12:12:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Li Zhai <mrzhaili <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: `set-cursor-color’ doesn’t work on Emacs init files
Date: Thu, 11 Nov 2010 20:16:38 +0800
I am using emacs 24.0.5 under Ubuntu with the following .emacs

(set-cursor-color “red”)

This code works fine on the trunk emacs (2010-10-08). But when I
updated my emacs to the latest trunk, the cursor color changed to
white rather than red (I am using dark background).




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7373; Package emacs. (Thu, 11 Nov 2010 16:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 7373 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Li Zhai <mrzhaili <at> gmail.com>
Cc: 7373 <at> debbugs.gnu.org
Subject: Re: bug#7373: `set-cursor-color’ doesn’t work on Emacs init files
Date: Thu, 11 Nov 2010 17:39:25 +0100
Li Zhai <mrzhaili <at> gmail.com> writes:

> I am using emacs 24.0.5 under Ubuntu with the following .emacs
>
> (set-cursor-color “red”)

What is the value of “red”?

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7373; Package emacs. (Fri, 12 Nov 2010 01:59:01 GMT) Full text and rfc822 format available.

Message #11 received at 7373 <at> debbugs.gnu.org (full text, mbox):

From: Li Zhai <mrzhaili <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 7373 <at> debbugs.gnu.org
Subject: Re: bug#7373: `set-cursor-color’ doesn’t work on Emacs init files
Date: Fri, 12 Nov 2010 10:03:26 +0800
"What is the value of “red”?" I don't understand.

Here is the specific description:

1. Empty the .emacs file.
2. Add the following codes to the .emacs

(setq initial-frame-alist
      '((foreground-color . "grey80")
        (background-color . "black")
        (background-mode . dark)
	(cursor-color     . "red")))
(setq default-frame-alist
      '((foreground-color . "grey80")
        (background-color . "black")
        (background-mode  . 'dark)
        (cursor-color     . "red")))

(set-cursor-color "red")

These code is supposed to change the background color to black and the
cursor color to red. And these code works fine on the emacs 23.2.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7373; Package emacs. (Sat, 13 Nov 2010 18:30:03 GMT) Full text and rfc822 format available.

Message #14 received at 7373 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Li Zhai <mrzhaili <at> gmail.com>
Cc: 7373 <at> debbugs.gnu.org, Andreas Schwab <schwab <at> linux-m68k.org>
Subject: Re: bug#7373: `set-cursor-color’ doesn’t work on Emacs init files
Date: Sat, 13 Nov 2010 13:34:48 -0500
Li Zhai <mrzhaili <at> gmail.com> writes:

> "What is the value of “red”?" I don't understand.
>
> Here is the specific description:
>
> 1. Empty the .emacs file.
> 2. Add the following codes to the .emacs
>
> (setq initial-frame-alist
>       '((foreground-color . "grey80")
>         (background-color . "black")
>         (background-mode . dark)
> 	(cursor-color     . "red")))
> (setq default-frame-alist
>       '((foreground-color . "grey80")
>         (background-color . "black")
>         (background-mode  . 'dark)
>         (cursor-color     . "red")))
>
> (set-cursor-color "red")

Thanks.  I've checked in a fix.

By the way, that last set-cursor-color call should be unnecessary.




bug closed, send any further explanations to Li Zhai <mrzhaili <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 13 Nov 2010 18:31:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 12 Dec 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 198 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.