unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Michael J. Barillier" <blackwolf@pcisys.net>
Subject: Re: Switching bold off on all faces
Date: Fri, 02 Aug 2002 12:39:40 -0600	[thread overview]
Message-ID: <87sn1x5clv.fsf@shadizar.dyndns.org> (raw)
In-Reply-To: <87vg6vmt68.fsf@shadizar.dyndns.org> ("Michael J. Barillier"'s message of "Wed, 31 Jul 2002 16:25:19 -0600")

>>>>> "me" == Michael J Barillier <blackwolf@pcisys.net> writes:

    me> Bold faces in Emacs under X have characters that are wider
    me> than non-bold characters (at least with the font I'm using)
    me> screwing up columns of text in, for example, Gnus and info
    me> docs.  So, the $64K question: What's the best way to turn off
    me> bold for all fonts?  I suppose one option would be to iterate
    me> through all variables with a name ending in `-face' and run

    me>   (lambda (face) (set-face-bold-p face nil))

    me> on each one, but that seems like the sledgehammer approach.
    me> Any better suggestions?

Didn't get an answer on this one, so I wrote the following
``sledgehammer'' function:

(defun unbold-all-faces ()
  "Clear the `bold' flag from all faces."
  (interactive)
  (dolist (f (face-list))
    (if (face-bold-p f) (set-face-bold-p f nil))))

-- 
Michael J. Barillier
(let ((n "blackwolf") (h "pcisys.net")) (concatenate 'string n "@" h))
GnuPG public key ID: 0x35E54973
Fingerprint: EDB9 4FBC 4D0B 070C C0E3 2EE4 D822 78CE 35E5 4973
Knowledge shared is power lost. -- Aleister Crowley
Got a job lead?  Email me--will code for food.  Resume at:
  <http://www.pcisys.net/~blackwolf/resume/>

      reply	other threads:[~2002-08-02 18:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31 22:25 Switching bold off on all faces Michael J. Barillier
2002-08-02 18:39 ` Michael J. Barillier [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=87sn1x5clv.fsf@shadizar.dyndns.org \
    --to=blackwolf@pcisys.net \
    /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).