From: Dan Nicolaescu <dann@ics.uci.edu>
To: Peter Povinec <pp_publiclists@yahoo.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Setting term-default-fg-color/term-default-bg-color has no effect
Date: Mon, 02 Jul 2007 10:28:51 -0700 [thread overview]
Message-ID: <200707021728.l62HSpEj014971@oogie-boogie.ics.uci.edu> (raw)
In-Reply-To: <loom.20070630T015509-536@post.gmane.org> (Peter Povinec's message of "Sat\, 30 Jun 2007 00\:17\:59 +0000 \(UTC\)")
Peter Povinec <pp_publiclists@yahoo.com> writes:
> Hi!
>
> I use ansi-term a lot and like to have different color scheme for my term
> buffers. After upgrading to Emacs22 from 21.4 I notice that my setting of
> term-default-fg-color/term-default-bg-color no longer has any effect. I found
> no documentation stating that it was not supported in Emacs22, so I suppose it
> is a bug.
>
> I looked at the old 21.4 code and based on that created the following minimalist
> patch, which is satisfactory in addressing the issue.
Can you please describe exactly what are you doing and how? How did
you test your patch?
> 2007-06-25 Peter Povinec <ppovinec <at> yahoo.com>
>
> * term.el: Honor term-default-fg-color and term-default-bg-color
> settings when modifying term-current-face.
Please look at the other ChangeLog entries in emacs, it should
describe the changes to each function/variable
>
> ! (defcustom term-default-fg-color (face-foreground term-current-face)
> "Default color for foreground in `term'."
> :group 'term
> :type 'string)
>
> ! (defcustom term-default-bg-color (face-background term-current-face)
> "Default color for background in `term'."
> :group 'term
> :type 'string)
This can't be right, term-current-face is nil when term.el is
loaded...
> + ;;; Start with requested fg/bg.
> + (setq term-current-face (list :background term-default-bg-color
> + :foreground term-default-fg-color))
We don't want forms that have side effects at the top level...
Thanks
--dan
next prev parent reply other threads:[~2007-07-02 17:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-30 0:17 Setting term-default-fg-color/term-default-bg-color has no effect Peter Povinec
2007-07-02 17:28 ` Dan Nicolaescu [this message]
2007-07-23 19:22 ` Peter Povinec
2007-08-01 4:10 ` Dan Nicolaescu
2007-08-02 0:50 ` Peter Povinec
2007-08-02 2:28 ` Dan Nicolaescu
2007-08-03 6:35 ` Peter Povinec
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=200707021728.l62HSpEj014971@oogie-boogie.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=bug-gnu-emacs@gnu.org \
--cc=pp_publiclists@yahoo.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).