Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: info-gnus-english@gnu.org
Subject: Re: Highlighted buttons in article mode
Date: Thu, 01 Aug 2013 16:56:46 +0200	[thread overview]
Message-ID: <87wqo5h32p.fsf@VLAN-3434.student.uu.se> (raw)
In-Reply-To: <m3fvutab8a.fsf@stories.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

>> Can I get the buttons in Article mode not to be highlighted? I
>> like them not to be, as I'd like them the same as the buttons
>> of rmail and the Emacs Help, but (unlike those) when I set the
>> face to one that isn't bold (I tried to just copy the face of
>> "button" to that of gnus-button), they're highlighted (bright)
>> just the same. I don't know why.
>
> `M-x describe-char' where you see the offending highlighting.
> That should tell you what face to customize.

Correct! `describe-char' revealed it is `widget-button' I should
configure, not `gnus-button'. Perhaps some inheritance issue? The
reason I tried with `gnus-button' is that that was the answer I
got with the below function to detect face. Perhaps it is not
reliable?

;; http://stackoverflow.com/questions/1242352
(defun what-face (pos)
  (interactive "d")
  (let ((face (or (get-char-property (point) 'read-face-name)
                  (get-char-property (point) 'face))))
    (if face (message "Face: %s" face)
      (message "No face at %d." pos) )))

-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573

  reply	other threads:[~2013-08-01 14:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23 22:15 Emanuel Berg
2013-08-01 11:42 ` Lars Magne Ingebrigtsen
2013-08-01 14:56   ` Emanuel Berg [this message]
2013-08-01 15:14     ` Lars Magne Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=87wqo5h32p.fsf@VLAN-3434.student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=info-gnus-english@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 NNTP newsgroup(s).