From: drkm <darkman_spam@yahoo.fr>
Subject: [ps-print] Why imposing symbols for user functions?
Date: Mon, 07 Mar 2005 15:16:44 +0100 [thread overview]
Message-ID: <uis438rsj.fsf@yahoo.fr> (raw)
Hi
Why does PS Print impose user functions (in `ps-left-header' for
example) to be symbols? `ps-generate-string-list' and
`ps-generate-header-line' use `symbolp' and `fboundp' instead of
`functionp'. Why don't use the following, to allowing lambdas in PS
Print customs:
*** ps-print.el-orig Thu Dec 23 07:02:00 2004
--- ps-print.el Mon Mar 7 15:06:00 2005
***************
*** 4823,4829 ****
((stringp (car content))
(car content))
;; function symbol
! ((and (symbolp (car content)) (fboundp (car content)))
(concat "(" (funcall (car content)) ")"))
;; variable symbol
((and (symbolp (car content)) (boundp (car content)))
--- 4823,4829 ----
((stringp (car content))
(car content))
;; function symbol
! ((functionp (car content))
(concat "(" (funcall (car content)) ")"))
;; variable symbol
((and (symbolp (car content)) (boundp (car content)))
***************
*** 4863,4869 ****
;; Functions are called -- they should return strings; they will be inserted
;; as strings and the PS string delimiters added.
! ((and (symbolp content) (fboundp content))
(ps-output-string (ps-mule-encode-header-string (funcall content)
fonttag)))
--- 4863,4869 ----
;; Functions are called -- they should return strings; they will be inserted
;; as strings and the PS string delimiters added.
! ((functionp content)
(ps-output-string (ps-mule-encode-header-string (funcall content)
fonttag)))
--drkm
next reply other threads:[~2005-03-07 14:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-07 14:16 drkm [this message]
2005-03-19 2:13 ` [ps-print] Why imposing symbols for user functions? Vinicius Jose Latorre
-- strict thread matches above, loose matches on Subject: below --
2005-03-09 10:48 drkm
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=uis438rsj.fsf@yahoo.fr \
--to=darkman_spam@yahoo.fr \
/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.