unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <ecinmn@peoplepc.com>
Subject: Re: printing from w32 emacs
Date: Tue, 08 Nov 2005 01:11:07 GMT	[thread overview]
Message-ID: <LWSbf.6535$AS6.6461@newsread3.news.atl.earthlink.net> (raw)
In-Reply-To: mailman.14313.1131394933.20277.help-gnu-emacs@gnu.org


"Eli Zaretskii" <eliz@gnu.org> wrote in message
news:mailman.14313.1131394933.20277.help-gnu-emacs@gnu.org...
> > From: "B. T. Raven" <ecinmn@peoplepc.com>
> > Date: Mon, 07 Nov 2005 04:24:24 GMT
> >
> > Has any of you out there been able to print from emacs to your local
> > printer?
>
> Yes, easily.
>
> > My installation is acting as if I am printing to NULL. This is
> > from an emacs 21.3 on win98 to a Canon i850. Neither PRN (default)
or
> > LPT1 works as 'printer-name, quoted or not. Printer works fine if I
> > minimize emacs and run any other windows app incorporating a print
> > function. I had same results with an HP laserjet.
> > I would appreciate any light any of you could throw on this problem.
>
> Did you try to read the manual and follow its advice?  The node
> "MS-DOS printing" (whose name is misleading: it pertains to Windows as
> well) explains how to find out what printer name to use in Emacs and
> how to set up printing in several popular situations.
>
>

Thanks  Lennart and Eli. Eli, yes I did read it, more than once. I think
I even understood everything except the part about printing on a
network. I left 'lpr-command at "" (null string). I tried PRN (and
suffixed with :), LPT1, LPT2, LPT3. Printer light blinks once but
nothing else happens. It's no longer possible to test printing from the
dos shell since COPY FILENAME PRN and TYPE FILENAME > PRN are no longer
supported by dos, at least not under windows. A program (I think by
Lennart) named something like winprint.el can print through Notepad but
it overwrites part of the menu bar and then (fortunately after printing)
crashes Notepad.  I would like to try Lennart's w32-print.el but I am
having trouble finding it. Also I want to stick with the current 21.3
ntemacs rather than change to a windows work-alike. The closest to doing
what I want is possible by going through Ghostscript/Ghostview. With
this in my .emacs:

(setq ps-lpr-command "C:\\Program Files\\Ghostgum\\gsview\\gsprint.exe")
(setq ps-printer-name t)

I can print ordinary files with this setup but if the files contain any
characters outside of the Latin-1 range then a popup dialogue appears
with: "Font for some characters not found..." when I run Postscript
print buffer. I don't know why the emacs file can't just be mapped to
one bit per pixel  and sent to the printer the way the GDI printer works
in Windows.
Lennart, yes the printer works from the browser. I printed out all 9
pages of your web site in living color. Does the w32-print.el also use
the web browser? I want to keep emacs working as much as possible like
the GNU Linux version and do things with the simplest theoretically
possible method. With only the following w32 related tweaks to my
.emacs:
...
 '(indent-tabs-mode nil)
 '(kill-read-only-ok t)
 '(pc-selection-mode t nil (pc-select))
 '(sentence-end "[.?!][]\"')}]*\\($\\| $\\| \\| \\)[
]*")
;; the above used to have a \n in the repexp but the actual
;; linefeed seems not to affect the working of it.
;; changed from default to have dot space interpreted
;; as sentence end.
 '(sentence-end-double-space nil)
 '(tab-stop-list (quote (3 8 20 35 50 70 85 100 115)))
 '(tab-width 3)
...

Calendar display is messed up and text buffers with long lines sometimes
fail to wrap lines (no bent arrow and text to the right of the frame can
only be seen if the line is split with a hard return. When this happens,
point and mouse click no longer correspond but this out-of-synchness can
be corrected by changing font size and then changing it back. Apparently
emacs is doing something with calculating line length based on the
current font character widths.

Thanks again. I guess I'll have to settle for save as utf-8 encoding,
insert as encoded text into an OpenOffice text file and then copy-paste
or print from there.

  parent reply	other threads:[~2005-11-08  1:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-07  4:24 printing from w32 emacs B. T. Raven
2005-11-07  7:07 ` Lennart Borgman
2005-11-07 20:22 ` Eli Zaretskii
     [not found] ` <mailman.14313.1131394933.20277.help-gnu-emacs@gnu.org>
2005-11-08  1:11   ` B. T. Raven [this message]
2005-11-08  1:23     ` Lennart Borgman
2005-11-08  4:45     ` Eli Zaretskii
     [not found]     ` <mailman.14348.1131425112.20277.help-gnu-emacs@gnu.org>
2005-11-10  2:10       ` B. T. Raven
2005-11-10  4:25         ` Eli Zaretskii
2005-11-10  5:21 ` rgb

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='LWSbf.6535$AS6.6461@newsread3.news.atl.earthlink.net' \
    --to=ecinmn@peoplepc.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).