Questions tagged [print]
54 questions
16
votes
2 answers
How to specify a printer?
The Emacs manual says:
M-x print-buffer
Print hardcopy of current buffer with page headings containing the file name and page number.
M-x lpr-buffer
Print hardcopy of current buffer without page headings.
M-x print-region
Like print-buffer but…

Tim
- 5,007
- 7
- 32
- 61
5
votes
1 answer
What is the meaning of the ellipsis at the end of some output?
When I do a C-j ie eval-print-last-sexp on an expression such as (copy-tree package-activated-list)
the output as an ellipsis at the end as shown below
(ac-ispell auto-complete popup ace-jump-helm-line helm helm-core async popup async avy ace-link…

vfclists
- 1,403
- 1
- 12
- 28
3
votes
1 answer
Functions print outputs twice the expected output
Running a function, for example:
(print '"Hello World")
"Hello World"
"Hello World"
... outputs twice the expected result.
I suppose one is the real printing, and the second is the value returned. However, I still want an alternative to this.
What…

Julie Dupondt
- 31
- 1
- 2
2
votes
1 answer
Display full output without truncation
I'm very new with emacs, so please forgive me if this is a silly question. I'm having an issue while programming in Ocaml using tuareg (https://github.com/ocaml/tuareg)
When I evaluate a single expression that produces a very long output (displayed…

aitatata
- 21
- 2
2
votes
1 answer
prin1: is it possible to have a progress reporter?
My undo-tree history for a fair amount of editing is over 30 seconds when exporting to a string, and I'd like to see a progress reporter if that is possible. Assuming we have (prin1 OBJECT (current-buffer)), is a progress reporter possible?

lawlist
- 19,106
- 5
- 38
- 120
2
votes
1 answer
Postscript printing: Removing the information box at the top of buffer
When printing a buffer (for example with the Printing package), I understand Emacs coverts it into a Postscript file and then prints this file. But this Postscript file always contains a grey box at the top, displaying information about the buffer…

Giuseppe
- 455
- 2
- 14
1
vote
1 answer
How to configure printing?
I'm trying to get to grips with printing from emacs.
I've added the following to my .emacs file:
(add-to-list 'lpr-switches "-P HP_ENVY_Photo_6200_series_685E88_")
(add-to-list 'lpr-switches "-o sides=two-sided-long-edge")
(add-to-list 'lpr-switches…

nurdglaw
- 113
- 6
1
vote
1 answer
Lisp form print depth
What controls the print depth of lisp forms? For example:
(macroexpand '(defun foo () (let ((bar)) (+ 1 2))))
becomes
(defalias (quote foo) (function (lambda nil (let ... ...))))
in the *Messages* buffer.

Tianxiang Xiong
- 3,878
- 18
- 28
1
vote
1 answer
Temporarily suppressing standard-output
Suppose I have a function that is 'noisy' and prints to standard output rudely.
(defun not-my-noisy-function ()
"A function outside my control"
(do-something-useful)
(print "Haha! Butts!"))
I would like to be able to make calls to that…

ebpa
- 7,449
- 29
- 55
0
votes
1 answer
Why in elisp function only the first print is displayed
I have the code below:
(defun double-print ()
(print "First text")
(print "An other text"))
Why is only An other text displayed when I call double-print function ?

element
- 47
- 5
0
votes
3 answers
Print list to console separated by newlines
I'm trying to run emacsclient -e with an expression that evaluates to a string containing newlines, and I'd like those newlines to be rendered on the console as newlines rather than \n.
Unfortunately, every attempt I've made so far prints the…

Sam Brightman
- 170
- 7
0
votes
0 answers
ps-print-buffer error
I cannot get ps-pinting working in emacs I have a lisp file, and when I try to translate to ps I only get the file with an error
C-u M-x ps-print-buffer-with-faces
I get this file:
https://ufile.io/1f0f0
It has an error
I'm using Mac Os Sierra,…

anquegi
- 749
- 5
- 22