[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60454: 30.0.50; `format-message' does not allow displaying "`" and "
From: |
Stefan Monnier |
Subject: |
bug#60454: 30.0.50; `format-message' does not allow displaying "`" and "'" verbatim |
Date: |
Sat, 31 Dec 2022 11:39:35 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> However, sometimes, it is desired to keep these chars literal.
>> For example, `org-assert-version' displays a warning that suggests Elisp
>> code:
>>
>> (warn "...
>> It is recommended to put
>> (straight-use-package 'org)
>> ...")
>
> The mangling only happens in the format string. Pass the text as
> argument and substitute it with %s.
>
> (warn "...
> It is recommended to put
> %s
> ..." "(straight-use-package 'org)")
That's rather cumbersome.
I think it would make a lot of sense to offer escapes like %' and %`
Stefan