unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sebastian Tennant <sebyte@smolny.plus.com>
To: help-gnu-emacs@gnu.org
Subject: header-line-format
Date: Fri, 02 Nov 2007 00:02:20 +0200	[thread overview]
Message-ID: <87ejf9aakz.fsf@moley.moleskin.org> (raw)

Hi all,

I want a _non-underlined_ header line that looks like this:

 a one, b two, c, three ...
 ^      ^      ^
 |      |      |
 +------+------+----- bold face, everything else default face

I have this:

 (setq header-line-format
       (mapconcat
        (lambda (k)
          (format "%s %s,"
                  (propertize (car k) 'face 'bold)
                  (propertize (cdr k) 'face 'default)))
        '(("a" . "one") ("b" . "two") ("c" . "three"))
        " "))

but everything apart from 'one', 'two' and 'three' is underlined,
including the empty space all the way to right side of the window.

How can I 'switch-off' the underlining across the whole window/string?

I've tried propertizing the whole string created by the mapconcat
function:

 (setq header-line-format
       (propertize 
         (mapconcat
         [...]
         " ")
       'underline nil))

without success.

Sebastian

             reply	other threads:[~2007-11-01 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 22:02 Sebastian Tennant [this message]
2007-11-02 10:58 ` header-line-format Sebastian Tennant

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=87ejf9aakz.fsf@moley.moleskin.org \
    --to=sebyte@smolny.plus.com \
    --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).