unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 7881@debbugs.gnu.org, Andreas Schwab <schwab@linux-m68k.org>,
	Reuben Thomas <rrt@sc3d.org>
Subject: bug#7881: 23.2.91; Bold spaces sometimes(?) underlined in man pages
Date: Sat, 22 Jan 2011 18:45:03 -0500	[thread overview]
Message-ID: <87zkqsbj0g.fsf@stupidchicken.com> (raw)
In-Reply-To: <0k7hdw4s55.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 22 Jan 2011 15:09:42 -0500")

Glenn Morris <rgm@gnu.org> writes:

> Chong Yidong wrote:
>
>> I think `make-button' is indeed the apropriate choice here, since the
>> button face needs to coexist with the other face text properties
>> applied by man.el.
>
> Can make-text-button do better? It's supposedly possible for face text
> properties to be a list of faces that get merged into the output. So
> ideally it would try to add to the existing face props.

Currently, text prop buttons use the category property.  The category
specifies a default when a requested property (in this case, the `face'
property) does not exist.  If the property exists, it overrides the
category entirely.

One possibility is to treat `face' properties specially in this regard,
by merging into the category property instead of replacing.  But this
would be a backward incompatible behavior change, and possibly
bug-prone.  And it doesn't seem clean for a `face' category property to
behave so differently from other category properties.

Another possibility is to change the implementation of textprop buttons,
to assign the face directly by merging, instead of using a category
property.  I'll take a look and see if this is feasible.





  reply	other threads:[~2011-01-22 23:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21 15:36 bug#7881: 23.2.91; Bold spaces sometimes(?) underlined in man pages Reuben Thomas
2011-01-21 16:12 ` Andreas Schwab
2011-01-21 16:19   ` Reuben Thomas
2011-01-25  2:05     ` Glenn Morris
2011-01-22  0:50   ` Glenn Morris
2011-01-22  3:52     ` Chong Yidong
2011-01-22 20:09       ` Glenn Morris
2011-01-22 23:45         ` Chong Yidong [this message]
     [not found] ` <handler.7881.D7881.12959206718921.notifdone@debbugs.gnu.org>
2011-01-25 15:38   ` bug#7881: closed (Re: bug#7881: 23.2.91; Bold spaces sometimes(?) underlined in man pages) Reuben Thomas
2011-01-25 18:39     ` Glenn Morris
2011-01-25 22:19       ` Reuben Thomas

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=87zkqsbj0g.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=7881@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    --cc=rrt@sc3d.org \
    --cc=schwab@linux-m68k.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.
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).