The old, reliable (set-cursor-color "#aa88dd") in my .emacs file fails with Aquamacs, unless it is run after Aquamacs has launched. This type of failure is typical of Emacs doing something secretive during launch, but I can't figure out what. I modified and saved Aquamacs setting for cursor( Cursor face: background:), which works for a session, and saves the setting, but does not initialize correctly for the next session. Even after all that, I've got a bright red cursor.
Working Emacs: GNU Emacs 23.2.1 (i686-apple-darwin, NS apple-appkit-1038.29)
Failing Aquamacs: GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
1) Workarounds and fixes appreciated. At the moment I'm using 23.2.1. I don't feel compelled to upgrade, but sooner or later I'll have to.
2) Searching the interwebs turned up nothing. I suspect the issue is a red herring related to some other issue where Aquamacs can't determine some setting and chooses Red as the cursor color. Is there a trick to get Emacs to print the name of every loaded config file into Messages?
3) Related big picture question: Is there in general a way to force a new version of Emacs to behave like the old version? It would fix my current problem, as well as the upheaval that occasionally happens with new versions.
Below is Aquamacs customizations.el which appears to have correctly saved the cursor background. I did not edit this file. Adding the (cursor...) statement to my .emacs custom-set-variable had no effect.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(cua-mode nil nil (cua-base))
'(cua-normal-cursor-color "#aa88dd")
'(cursor-type (quote box))
'(ess-S-assign "_")
'(ido-everywhere t)
'(ido-show-dot-for-dired t)
'(line-move-visual nil)
'(term-bind-key-alist (quote (("C-c C-x b" . switch-to-buffer) ("C-c M-x" . execute-extended-command) ("C-c C-c" . term-interrupt-subjob) ("M-`" . other-frame) ("C-m" . term-send-raw))))
'(term-unbind-key-list (quote ("C-c"))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background "White" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 210 :width normal :foundry "apple" :family "Inconsolata"))))
'(cua-normal-cursor-color "#aa88dd")
'(cursor ((t (:background "#AA88DD" :foreground "black" :box nil)))))