Article View: gnu.epoch.misc
Article #1042What is wrong with this epoch customization code??
From: Michael Meyer
Date: Tue, 09 Feb 1993 22:44
Date: Tue, 09 Feb 1993 22:44
34 lines
1988 bytes
1988 bytes
I have the following lines in the epoch section of my .emacs file per the
FAQ, but they don't appear to work:
(defun set-foreground (newfg)
"Set current foreground color to NEWFG."
(interactive "sForeground color: ")
(set-style-foreground buffer-style newfg)
(redraw-display))
(defun set-background (newbg)
"Set current background color to NEWBG."
(interactive "sBackground color: ")
(set-style-background buffer-style newbg)
(redraw-display))
What did I do wrong?? When I run 'set-foreground' or 'set-background', it
prompts me for a color. Then I type in a color name (e.g. "red"). Epoch
spits out this in the minibuffer:
Wrong type argument: stylep, nil
I'm not an elisp weenie, so this is Greek to me. Can anyone suggest how to
fix my code so that I can interactively specify foreground and background
colors??
Thanks in advance.
-- Mike
___________________________________________________________________________
Michael S. Meyer meyerm@hp700.trg.saic.com
Technology Research Group 619-546-6097 voice
Science Applications International Corporation 619-546-6777 fax
San Diego, CA
___________________________________________________________________________
Technical Details
Message-ID:
<10622874@MVB.SAIC.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!howland.reston.ans.net!usc!news.service.uci.edu!unogate!mvb.saic.com!hp700.trg.saic.com!meyermShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,cf1836432b0b803,start X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1993-02-09 14:44:51 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!howland.reston.ans.net!usc!news.service.uci.edu!unogate!mvb.saic.com!hp700.trg.saic.com!meyerm Newsgroups: gnu.epoch.misc Distribution: world From: meyerm@hp700.trg.saic.com (Michael Meyer) Reply-To: meyerm@hp700.trg.saic.com Organization: Science Applications International Corp. Subject: What is wrong with this epoch customization code?? Message-ID: <10622874@MVB.SAIC.COM> Date: Tue, 09 Feb 1993 22:44:51 GMT Nntp-Posting-Host: Mvb.Saic.Com Lines: 34