From: "Łukasz Stelmach" <stlman@poczta.fm>
To: 22611@debbugs.gnu.org
Cc: "Łukasz Stelmach" <stlman@poczta.fm>
Subject: bug#22611: [PATCH] Call ps-encode-header-string-function for plain strings too
Date: Tue, 9 Feb 2016 22:07:51 +0100 [thread overview]
Message-ID: <1455052071-4582-1-git-send-email-stlman@poczta.fm> (raw)
In-Reply-To: <8760xxa95g.fsf%stlman@poczta.fm>
The function needs to be called for plain strings too to ensure
the BitmapDict contains required characters and Unicode characters
in the headers are printed properly.
---
lisp/ps-print.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 7333709..999398e 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -4761,7 +4761,11 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th
;; Literal strings should be output as is -- the string must contain its own
;; PS string delimiters, '(' and ')', if necessary.
((stringp content)
- (ps-output content))
+ (if (functionp ps-encode-header-string-function)
+ (dolist (l (funcall ps-encode-header-string-function
+ content fonttag))
+ (ps-output l))
+ (ps-output content)))
;; Functions are called -- they should return strings; they will be inserted
;; as strings and the PS string delimiters added.
--
2.4.6
next prev parent reply other threads:[~2016-02-09 21:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 21:03 bug#22611: 24.4; ps-print.el generates invalid files Łukasz Stelmach
2016-02-09 21:07 ` Łukasz Stelmach [this message]
2016-02-23 3:55 ` bug#22611: [PATCH] Call ps-encode-header-string-function for plain strings too Lars Ingebrigtsen
2016-02-10 8:11 ` bug#22611: No dolist required Łukasz Stelmach
2016-02-11 9:06 ` Łukasz Stelmach
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=1455052071-4582-1-git-send-email-stlman@poczta.fm \
--to=stlman@poczta.fm \
--cc=22611@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.