unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrea Cardaci <cyrus.and@gmail.com>
To: 32404@debbugs.gnu.org
Subject: bug#32404: Format fails to copy text properties from the format-string for adjacent %-sequences
Date: Thu, 9 Aug 2018 02:30:55 +0200	[thread overview]
Message-ID: <CACMsj9NDor7fC_ypLxQADfp9J4Ftw6R7Hhcb1rCDiKMGK7t_8g@mail.gmail.com> (raw)

Basically what the title says, take a look at this example:

(format (concat (propertize "%s" 'face 'bold)
                "" ; any non-empty string works
                (propertize "%s" 'face 'error))
        "foo" "bar")
#("foobar" 0 6 (face bold))

This has also been described at https://emacs.stackexchange.com/q/43960/13744


Andrea





             reply	other threads:[~2018-08-09  0:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-09  0:30 Andrea Cardaci [this message]
2018-08-09 15:10 ` bug#32404: Format fails to copy text properties from the format-string for adjacent %-sequences Eli Zaretskii
2018-08-09 20:25   ` Andrea Cardaci
2018-08-10  5:39     ` Eli Zaretskii

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=CACMsj9NDor7fC_ypLxQADfp9J4Ftw6R7Hhcb1rCDiKMGK7t_8g@mail.gmail.com \
    --to=cyrus.and@gmail.com \
    --cc=32404@debbugs.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.
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).