Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [print]

The tag has no usage guidance.

3
votes
0answers
31 views

Pdf-tools fails to print

Using pdf-tools I attempt to print via pdf-print-misc-document though nothing gets printed? In messages I see without any errors: Print job started: /usr/bin/lpr -P myprinter -o media=a4 -o InputSlot=...
0
votes
1answer
32 views

org-mode: how to print agenda showing only some categories

I'm trying to print today's agenda hiding some categories. I'm using C-u < to hide the categories I don't want, but when I print (either the buffer or by selecting the text and using lpr-region), ...
0
votes
1answer
33 views

How the get the text value of a complete value of a variable?

here a little example to explain my problem : How to get "marge" or ("marge") from oef-highlighted-variable ? oef-highlighted-variable #("marge" 0 5 (fontified nil face oef-font-variable-name-face)) ...
4
votes
4answers
253 views

Write `var0, var1, var2, …, var10` in a buffer

Most of the times there is no need to write manually many variables with the same name and a different index, like var0, var1, var2, var3, ..., var9 because one can use arrays, vectors or whatever ...
2
votes
1answer
278 views

What does hash s indicate in lisp

This is the result of M-: (elfeed-search-selected :ignore-region) #s(elfeed-entry ("www.cbc.com.com" . "https://www.cbc.com.com/defg/Polyglot-programming_%7E017e364530a5359046?source=rss") ...
0
votes
1answer
34 views

Duplicate output from princ / pp?

So I'm trying to figure out why the following produces unexpected output: (setq var 1) (pp var) (princ var) Put the cursor just after the closing ) in the expression (setq var 1) and then press C-xC-...
1
vote
0answers
49 views

How can I print a buffer exactly as it looks on the screen?

How can I print a buffer exactly as it looks on screen, including the use of variable-pitch fonts? (I'm also curious why htmlfontify-buffer ignores variable-pitch-mode.) I am using org-mode and use ...
0
votes
3answers
196 views

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,...
2
votes
1answer
131 views

elisp - print result not found after eval-buffer

Create a test.el file as below: (print "hello world!") Then run M-x eval-buffer. No output can be seen even in *Messages* buffer. where is the print output for this case?
1
vote
1answer
194 views

elisp - How to dump plist to property value pairs

Below example dump it as a list, but I wish to dump it in property value pairs: #+BEGIN_SRC elisp :results output (defun dump-plist(obj level) (if (listp obj) (dolist (item obj) (dump-...
1
vote
2answers
196 views

Emacs lisp format doesn't print to *scratch*?

I've got this function (defun mt () (dotimes (x 20) (dotimes (y 20) (format "%3d " (* (1+ x) (1+ y)))) (format "\n"))) in my *scratch*. a Ctr-= prints back mt. But then ...
1
vote
1answer
227 views

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-...
0
votes
2answers
217 views

How to do 'Hello World' in Emacs-LISP on Eshell and display evaluation in shell area itself, instead of echo area or *message* Buffer?

I am new to Emacs and struggling to learn it. How to get rid of the line Emacs: command not found? ~/Documents $ eshell-source-file hello.el Emacs: command not found Hello World ~/...
1
vote
1answer
61 views

How to print a quoted sexp using '… (reader syntax) instead of using (quote …)?

The result of (print 'foo) is (quote foo). Is there a similar function whose result is 'foo, which is what people generally write?
3
votes
1answer
50 views

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-...
1
vote
1answer
183 views

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 ...
1
vote
1answer
119 views

org mode inline image from elisp code block

Below code will draw a tree graph with dot, it works fine but the output graph has been included in "". #+NAME: nodes | From | To | Weight | |------+----+--------| | A | B | 3 | | A | C |...
0
votes
0answers
69 views

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/...
0
votes
2answers
53 views

Changing default output of a function

When I run (+ 1 1) using eval-print-last-sexp in a buffer, this function inserts a newline and outputs 2. I'd rather its output were just ' 2' (space and 2). How can I change this?
6
votes
1answer
71 views

Can I tell prin1-to-string to use reader-macros?

I'm writing a lispy documentation engine with elisp and to make things easier, I'm trying to modify the following behavior (prin1-to-string '(cons 'a 'b)) ;; => "(cons (quote a) (quote b))" to be ...
1
vote
1answer
690 views

Under Cygwin, how do we get a list of available printers?

I would like to choose which printer is used for printing in Emacs. Before I can set printer-name to something, I need to know the names of the available printers. Under Windows, I can see the ...
4
votes
2answers
244 views

print unquoted output to stdout from emacsclient

I want to use emacsclient to let my running instance of emacs evaluate a function and print the result to a terminal. That is, I want to do something like this: $ emacsclient --eval "(frame-...
2
votes
0answers
336 views

Get a better printed representation of a hash-table

I work with ELisp hash-table and I would like to have a better printed representation of it. I'm on Emacs version 24.5.1. When I create a hash-table (setq table (make-hash-table)) (puthash :name "...
1
vote
1answer
79 views

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* ...
1
vote
1answer
110 views

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!")) ...
7
votes
2answers
1k views

How to print a PDF, displayed with pdf-tools, from Emacs?

I'm using PDF-Tools (https://github.com/politza/pdf-tools) to display PDFs inside Emacs. But how to print them? C-c C-p raises the question »Print with:« and I have no idea how to answer it. I'm ...
2
votes
1answer
126 views

Can I print output to stderr in batch mode WITHOUT a trailing newline?

In emacs --batch (also, emacs --script), (message "My Message") will print "My Message" to standard error (file descriptor 2) along with a trailing newline. What if I don't want the newline? I ...
4
votes
0answers
377 views

ps-print-buffer-with-faces with color-theme'ed dark background

Similar to Change syntax highlighting when doing ps-print-buffer-with-faces I typically use emacs with a dark background, but I'd like to print my buffer onto a white background (i.e. white paper). ...
3
votes
1answer
1k views

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. ...
28
votes
3answers
640 views

How can I print an Emacs frame?

The function ps-print-buffer-with-faces prints an Emacs buffer. Is there a way to print a frame with more than one buffer in it? I would like to print an Emacs calc frame both with the RPN stack and ...
6
votes
3answers
851 views

Print message in echo area with no “quotes”?

Q: how do I print a message in the echo area without surrounding quotes? Here's a simple command: (defun test-fn () (interactive) (message "Test message")) When I call it as an interactive ...
11
votes
2answers
3k views

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 ...