aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2013-11-05 15:51:06 -0500
committerStefan Monnier2013-11-05 15:51:06 -0500
commit02fc973bc978ccc4570d8f7b00c85346e8cd5df6 (patch)
tree2d9156ce5dc55d35e0869737d3852ebd9d6d5b97
parent2e670b957698eefb9f90a907968b497efe8c540b (diff)
downloademacs-02fc973bc978ccc4570d8f7b00c85346e8cd5df6.tar.gz
emacs-02fc973bc978ccc4570d8f7b00c85346e8cd5df6.zip
* lisp/mh-e/mh-print.el (mh-ps-print-preprint): Don't use dynamic-var
`prefix-arg' as function argument.
-rw-r--r--lisp/mh-e/ChangeLog5
-rw-r--r--lisp/mh-e/mh-print.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index 5e94265f67d..c3f2aff042e 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,8 @@
12013-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * mh-print.el (mh-ps-print-preprint): Don't use dynamic-var
4 `prefix-arg' as function argument.
5
12013-06-18 Juri Linkov <juri@jurta.org> 62013-06-18 Juri Linkov <juri@jurta.org>
2 7
3 * mh-alias.el (mh-alias-local-users): Add non-nil arg REPLACE to 8 * mh-alias.el (mh-alias-local-users): Add non-nil arg REPLACE to
diff --git a/lisp/mh-e/mh-print.el b/lisp/mh-e/mh-print.el
index f57ccf56d85..f5e5ab77761 100644
--- a/lisp/mh-e/mh-print.el
+++ b/lisp/mh-e/mh-print.el
@@ -139,11 +139,11 @@ commands \\[mh-ps-print-toggle-color] and
139 (interactive (list (mh-interactive-range "Print") (mh-ps-print-preprint 1))) 139 (interactive (list (mh-interactive-range "Print") (mh-ps-print-preprint 1)))
140 (mh-ps-print-range range file)) 140 (mh-ps-print-range range file))
141 141
142(defun mh-ps-print-preprint (prefix-arg) 142(defun mh-ps-print-preprint (arg)
143 "Provide a better default file name for `ps-print-preprint'. 143 "Provide a better default file name for `ps-print-preprint'.
144Pass along the PREFIX-ARG to it." 144Pass along the prefix ARG to it."
145 (let ((buffer-file-name (format "mh-%s" (substring (buffer-name) 1)))) 145 (let ((buffer-file-name (format "mh-%s" (substring (buffer-name) 1))))
146 (ps-print-preprint prefix-arg))) 146 (ps-print-preprint arg)))
147 147
148;;;###mh-autoload 148;;;###mh-autoload
149(defun mh-ps-print-toggle-faces () 149(defun mh-ps-print-toggle-faces ()