Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

cursor is always set black in emacsclient

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
zariskij
Posts: 4
Joined: 2013-12-30 23:56

cursor is always set black in emacsclient

#1 Post by zariskij »

I just switched from Mint KDE to SolydK (which is basically Debian+KDE+customization). There is a strange problem with my emacsclient. My cursor color is set to black by default when using emacsclient frame.
The werid thing is that the cursor color is normal (white) in terminal emacsclient and non-client emacs, and it will be black no matter what cursor-color I set in init.el. I am able to set the color (M-x set-cursor-color) after a frame is created, but the cursor will be reset to black in new frames.
In addition, this is not a problem with my init file, since even when I delete the whole .emacs.d, the problem still remains.
Could anyone help? Thanks!

zariskij
Posts: 4
Joined: 2013-12-30 23:56

Re: cursor is always set black in emacsclient

#2 Post by zariskij »

The output from starting emacs daemon (after deleting .emacs.d):


Warning: due to a long standing Gtk+ bug
http://bugzilla.gnome.org/show_bug.cgi?id=85715
Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
("emacs24")
Loading 00debian-vars...
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Loading cjk-enc...
Loading cjk-enc...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done
Starting Emacs daemon.

zariskij
Posts: 4
Joined: 2013-12-30 23:56

Re: cursor is always set black in emacsclient

#3 Post by zariskij »

Alright.. This issue can be resolved by adding

(setq default-frame-alist '((cursor-color . "white")))

though I don't understand why it was not a problem before.

User avatar
Issyer
Posts: 3032
Joined: 2007-05-23 02:59
Location: Khakassia

Re: cursor is always set black in emacsclient

#4 Post by Issyer »

That's weird. Are you sure it's .emacs.d? In my emacs it's just .emacs.

Code: Select all

;;----- Cursor Color ----------
(set-cursor-color "#ad000c")
It's crimson.

User avatar
xuhdev
Posts: 12
Joined: 2014-10-07 19:59

Re: cursor is always set black in emacsclient

#5 Post by xuhdev »

Did you also noticed that the cursor is always set to non-blinking in GUI?

User avatar
xuhdev
Posts: 12
Joined: 2014-10-07 19:59

Re: cursor is always set black in emacsclient

#6 Post by xuhdev »

Also, are you an EVIL user? Check this out: http://stackoverflow.com/a/19321267/1150462

Post Reply