unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Patrick Mahan <mahan@mahan.org>
To: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs 23.0.60 on Mac OS X
Date: Sat, 16 Aug 2008 15:50:05 -0700	[thread overview]
Message-ID: <48A7599D.3040009@mahan.org> (raw)
In-Reply-To: <637CD65A-B4FB-4A0A-A3B2-C075E4E1FFA2@Web.DE>



Peter Dyballa presented these words - circa 8/16/08 2:36 PM->
> 
> Am 16.08.2008 um 18:05 schrieb Patrick Mahan:
> 
>> I did -
>>
>>    defaults write Emacs Emacs.background black
>>    defaults write Emacs Emacs.foreground mediumspringgreen
>>    defaults write Emacs Emacs.cursorColor yellow
> 
> Presumingly wrong symbols. I am using different ones:
> 
>     Background = CMYK3c6b3f25;
>     Foreground = MidnightBlue;
>     "border.attributeBackground" = turquoise1;
>     "calendar-today.attributeBackground" = LightSkyBlue1;
>     "comint-highlight-prompt.attributeBackground" = FloralWhite;
>     "comint-highlight-prompt.attributeForeground" = DarkViolet;
> 

These were based upon the entries under the 'Mac OS' entry in the
Emacs manual.  There it shows you use "Emacs.<resource>".

> And I was wrong when I told you that the preferences file is 
> Emacs.plist. It's indeed the name you mentioned, org.gnu.Emacs.plist. I 
> use default-frame-alist and initial-frame-alist in ~/.emacs while the 
> preferences list is kind of a toy (at least necessary to re-set the 
> "modifier" keys). But when launching
> 
>     /Applications/Emacs.app/Contents/MacOS/Emacs -q &
> 
> I can see the preferences in action.
>

I've got it to work.  The difference is the capitalization.  In X11
'background' is different from 'Background'.  The first is the
instance name while the second is the class name.  Normally in X Windows
you use the instance name as opposed to its class name.  Using the
class name works for the current version (23.0.60).

> The *Help* description on the *-frame-alists might be a bit confusing 
> when referencing the term "X resources." The actual X resource is for 
> example just the word "background" or "cursorColor." The prefix "Emacs" 
> is useful in an environment where X resources for more than one 
> application are loaded into the X server resource database utility xrdb. 
> Then one needs to make a difference between a setting for application A 
> and one for application B. This is done by the prefix. (Or, in X, by 
> using X resources files with different names, names that equal the 
> applications' names.)
>

Understood.  Again, I was going with what the documentation was presenting.

> To achieve a real dark and unergonomic background you can also use the 
> --reverse-video or -r or -rv option on the command line ...
> 
>>
>> I see in the Message buffer the following:
>>
>>   'Unable to load color "darkblue"'
> 
> The file Emacs.clr contains two writings for this colour: "DarkBlue" and 
> "dark blue" – maybe here's the reason for the complaint. You know that 
> you can select colours from the Mac OS X colour chooser?
> 
>>
>> This message shows up even if I start it with '--no-init-file'.
> 
> So it's in the preferences list.
> 
>>
>> Is there anything short of rebuilding with some debugging enabled to 
>> diagnose this?
> 
> I don't know! What's possible is to rename the preferences list and then 
> launch Emacs.app as
> 
>     /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l 
> ~/.emacs-init-test.el &
> 
> where ~/.emacs-init-test.el is a file with some settings as in ~/.emacs. 
> While you are editing this file in one Emacs.app you can launch a second 
> one to test the settings. To make debugging a bit easier you can insert 
> a few ELisp statements like this
> 
>     (message "line #... in ~/.emacs-init-test.el")
> 
>>
>> Note: the Emacs manual include with the release still references
>> the older file under the "Mac OS" section.
> 
> 
> *I* made the mistake of telling you the wrong file name!
> 

Granted by the source in doc/macos.texi should be upgraded to correctly reflect
this changed behavior.

I will post a doc bug against for the Mac OS.

Thanks,

Patrick




      reply	other threads:[~2008-08-16 22:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-16  3:36 Emacs 23.0.60 on Mac OS X Patrick Mahan
2008-08-16  6:46 ` Peter Dyballa
2008-08-16 16:05   ` Patrick Mahan
2008-08-16 21:36     ` Peter Dyballa
2008-08-16 22:50       ` Patrick Mahan [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48A7599D.3040009@mahan.org \
    --to=mahan@mahan.org \
    --cc=Peter_Dyballa@Web.DE \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).