* Printing with emacs: Not working @ 2009-02-27 4:04 DaveLG526 2009-02-27 5:52 ` Jean Magnan de Bornier 2009-02-28 1:24 ` Joe Fineman 0 siblings, 2 replies; 22+ messages in thread From: DaveLG526 @ 2009-02-27 4:04 UTC (permalink / raw) To: help-gnu-emacs I have been using emacs for about a month and really like it. It wasn't till today that I tried to print something. I see this message but nothig i sever printed: Spooling with options (page headers are not supported)...done. I have a wireless HP 6988 printer. I have tried windows emacs and emacs via my cygwin terminal with the same response. Documents can be printed via windows notepad and gVim but I would rather not do it that way. I use both vista and xp machines and get the same issue. Is there some setting I need to make? Thanks..Dave ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 4:04 Printing with emacs: Not working DaveLG526 @ 2009-02-27 5:52 ` Jean Magnan de Bornier 2009-02-27 8:40 ` Lennart Borgman 2009-02-28 1:24 ` Joe Fineman 1 sibling, 1 reply; 22+ messages in thread From: Jean Magnan de Bornier @ 2009-02-27 5:52 UTC (permalink / raw) To: help-gnu-emacs DaveLG526 <David.Gillooly@gmail.com> wrote : | I have been using emacs for about a month and really like it. | It wasn't till today that I tried to print something. I see this | message but nothig i sever printed: Spooling with options (page | headers are not supported)...done. > | I have a wireless HP 6988 printer. I have tried windows emacs and | emacs via my cygwin terminal with the same response. Documents can be | printed via windows notepad and gVim but I would rather not do it that | way. > | I use both vista and xp machines and get the same issue. > | Is there some setting I need to make? You have to set the value of "printer-name" -- Jean ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 5:52 ` Jean Magnan de Bornier @ 2009-02-27 8:40 ` Lennart Borgman 2009-02-27 10:37 ` Eli Zaretskii [not found] ` <mailman.1940.1235731077.31690.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 22+ messages in thread From: Lennart Borgman @ 2009-02-27 8:40 UTC (permalink / raw) To: Jean Magnan de Bornier; +Cc: help-gnu-emacs On Fri, Feb 27, 2009 at 6:52 AM, Jean Magnan de Bornier <jean@bornier.net> wrote: > DaveLG526 <David.Gillooly@gmail.com> wrote : > > | I have been using emacs for about a month and really like it. > | It wasn't till today that I tried to print something. I see this > | message but nothig i sever printed: Spooling with options (page > | headers are not supported)...done. >> > | I have a wireless HP 6988 printer. I have tried windows emacs and > | emacs via my cygwin terminal with the same response. Documents can be > | printed via windows notepad and gVim but I would rather not do it that > | way. >> > | I use both vista and xp machines and get the same issue. >> > | Is there some setting I need to make? > > You have to set the value of "printer-name" That does not necessarily help. See http://www.emacswiki.org/emacs/PrintingFromEmacs http://www.emacswiki.org/emacs/PrintWithWebBrowser ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 8:40 ` Lennart Borgman @ 2009-02-27 10:37 ` Eli Zaretskii 2009-02-27 16:03 ` Lennart Borgman [not found] ` <mailman.1974.1235750623.31690.help-gnu-emacs@gnu.org> [not found] ` <mailman.1940.1235731077.31690.help-gnu-emacs@gnu.org> 1 sibling, 2 replies; 22+ messages in thread From: Eli Zaretskii @ 2009-02-27 10:37 UTC (permalink / raw) To: help-gnu-emacs > Date: Fri, 27 Feb 2009 09:40:21 +0100 > From: Lennart Borgman <lennart.borgman@gmail.com> > Cc: help-gnu-emacs@gnu.org > > > You have to set the value of "printer-name" > > That does not necessarily help. But does not necessarily fail, either. No need to discourage a fellow Emacs users before they even tried. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 10:37 ` Eli Zaretskii @ 2009-02-27 16:03 ` Lennart Borgman [not found] ` <mailman.1974.1235750623.31690.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 22+ messages in thread From: Lennart Borgman @ 2009-02-27 16:03 UTC (permalink / raw) To: Eli Zaretskii; +Cc: help-gnu-emacs On Fri, Feb 27, 2009 at 11:37 AM, Eli Zaretskii <eliz@gnu.org> wrote: >> Date: Fri, 27 Feb 2009 09:40:21 +0100 >> From: Lennart Borgman <lennart.borgman@gmail.com> >> Cc: help-gnu-emacs@gnu.org >> >> > You have to set the value of "printer-name" >> >> That does not necessarily help. > > But does not necessarily fail, either. No need to discourage a fellow > Emacs users before they even tried. I did not try to discourage. As you know there is a very simple solution: Use the web browser for printing. For details see the page on EmacsWiki I pointed to. ^ permalink raw reply [flat|nested] 22+ messages in thread
[parent not found: <mailman.1974.1235750623.31690.help-gnu-emacs@gnu.org>]
* Re: Printing with emacs: Not working [not found] ` <mailman.1974.1235750623.31690.help-gnu-emacs@gnu.org> @ 2009-02-27 17:31 ` B. T. Raven 2009-02-27 18:13 ` Lennart Borgman ` (2 more replies) 0 siblings, 3 replies; 22+ messages in thread From: B. T. Raven @ 2009-02-27 17:31 UTC (permalink / raw) To: help-gnu-emacs Lennart Borgman wrote: > On Fri, Feb 27, 2009 at 11:37 AM, Eli Zaretskii <eliz@gnu.org> wrote: >>> Date: Fri, 27 Feb 2009 09:40:21 +0100 >>> From: Lennart Borgman <lennart.borgman@gmail.com> >>> Cc: help-gnu-emacs@gnu.org >>> >>>> You have to set the value of "printer-name" >>> That does not necessarily help. >> But does not necessarily fail, either. No need to discourage a fellow >> Emacs users before they even tried. > > I did not try to discourage. As you know there is a very simple > solution: Use the web browser for printing. For details see the page > on EmacsWiki I pointed to. > > It's certainly much easier to get something out of Emacs and down in black and white (color too) using printing through the browser rather than through ghost-script. Virtually every w32 user has a browser but very many don't have ghost-script installed. I think that I once had the latter method working since I have lines similar to rustom's commented out in my .emacs. To get printing through Firefox all I had to do was download: hfyview.el htmlfontify.el These are in my emacs/lisp directory but they could probably go in emacs/emacs-lisp instead, where the other piece of the puzzle, easymenu.el resides. Then add to .emacs: (require 'hfyview) After restarting (or maybe just rereading .emacs) a new item appears in the File menu: Quick Printing (Using Web Browser) Ed ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 17:31 ` B. T. Raven @ 2009-02-27 18:13 ` Lennart Borgman 2009-02-27 18:15 ` Eli Zaretskii 2009-03-01 19:26 ` DaveLG526 2 siblings, 0 replies; 22+ messages in thread From: Lennart Borgman @ 2009-02-27 18:13 UTC (permalink / raw) To: B. T. Raven; +Cc: help-gnu-emacs On Fri, Feb 27, 2009 at 6:31 PM, B. T. Raven <nihil@nihilo.net> wrote: > Lennart Borgman wrote: >> >> On Fri, Feb 27, 2009 at 11:37 AM, Eli Zaretskii <eliz@gnu.org> wrote: >>>> >>>> Date: Fri, 27 Feb 2009 09:40:21 +0100 >>>> From: Lennart Borgman <lennart.borgman@gmail.com> >>>> Cc: help-gnu-emacs@gnu.org >>>> >>>>> You have to set the value of "printer-name" >>>> >>>> That does not necessarily help. >>> >>> But does not necessarily fail, either. No need to discourage a fellow >>> Emacs users before they even tried. >> >> I did not try to discourage. As you know there is a very simple >> solution: Use the web browser for printing. For details see the page >> on EmacsWiki I pointed to. >> >> > > It's certainly much easier to get something out of Emacs and down in black > and white (color too) using printing through the browser rather than through > ghost-script. Virtually every w32 user has a browser but very many don't > have ghost-script installed. I think that I once had the latter method > working since I have lines similar to rustom's commented out in my .emacs. > To get printing through Firefox all I had to do was download: > > hfyview.el > htmlfontify.el > > These are in my emacs/lisp directory but they could probably go in > emacs/emacs-lisp instead, where the other piece of the puzzle, easymenu.el > resides. > > Then add to .emacs: > > (require 'hfyview) > > After restarting (or maybe just rereading .emacs) a new item appears in the > File menu: > > Quick Printing (Using Web Browser) > > Ed Yes, that setup is right. If you use nXhtml it does that for you. Otherwise you can find the latest hfyfview.el and htmlfontify.el in the nXhtml repository. (Or, at the moment it is not the latest htmlfontify.el, I forgot to add that. Will add it.) ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 17:31 ` B. T. Raven 2009-02-27 18:13 ` Lennart Borgman @ 2009-02-27 18:15 ` Eli Zaretskii 2009-02-27 18:20 ` Lennart Borgman 2009-03-01 19:26 ` DaveLG526 2 siblings, 1 reply; 22+ messages in thread From: Eli Zaretskii @ 2009-02-27 18:15 UTC (permalink / raw) To: help-gnu-emacs > Date: Fri, 27 Feb 2009 11:31:08 -0600 > From: "B. T. Raven" <nihil@nihilo.net> > > It's certainly much easier to get something out of Emacs and down in > black and white (color too) using printing through the browser rather > than through ghost-script. Virtually every w32 user has a browser but > very many don't have ghost-script installed. If your printer supports PostScript, you don't need Ghostscript. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 18:15 ` Eli Zaretskii @ 2009-02-27 18:20 ` Lennart Borgman 2009-02-27 21:37 ` Eli Zaretskii 0 siblings, 1 reply; 22+ messages in thread From: Lennart Borgman @ 2009-02-27 18:20 UTC (permalink / raw) To: Eli Zaretskii; +Cc: help-gnu-emacs On Fri, Feb 27, 2009 at 7:15 PM, Eli Zaretskii <eliz@gnu.org> wrote: >> Date: Fri, 27 Feb 2009 11:31:08 -0600 >> From: "B. T. Raven" <nihil@nihilo.net> >> >> It's certainly much easier to get something out of Emacs and down in >> black and white (color too) using printing through the browser rather >> than through ghost-script. Virtually every w32 user has a browser but >> very many don't have ghost-script installed. > > If your printer supports PostScript, you don't need Ghostscript. You also need to be able to set the printer in PostScript mode by default. This is not always possible. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 18:20 ` Lennart Borgman @ 2009-02-27 21:37 ` Eli Zaretskii 2009-02-27 21:48 ` Lennart Borgman 0 siblings, 1 reply; 22+ messages in thread From: Eli Zaretskii @ 2009-02-27 21:37 UTC (permalink / raw) To: help-gnu-emacs > Date: Fri, 27 Feb 2009 19:20:22 +0100 > From: Lennart Borgman <lennart.borgman@gmail.com> > Cc: help-gnu-emacs@gnu.org > > On Fri, Feb 27, 2009 at 7:15 PM, Eli Zaretskii <eliz@gnu.org> wrote: > >> Date: Fri, 27 Feb 2009 11:31:08 -0600 > >> From: "B. T. Raven" <nihil@nihilo.net> > >> > >> It's certainly much easier to get something out of Emacs and down in > >> black and white (color too) using printing through the browser rather > >> than through ghost-script. Virtually every w32 user has a browser but > >> very many don't have ghost-script installed. > > > > If your printer supports PostScript, you don't need Ghostscript. > > You also need to be able to set the printer in PostScript mode by > default. This is not always possible. That's got to be fairly rare, because I have yet to see such a situation. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 21:37 ` Eli Zaretskii @ 2009-02-27 21:48 ` Lennart Borgman 2009-02-27 21:58 ` Eli Zaretskii 0 siblings, 1 reply; 22+ messages in thread From: Lennart Borgman @ 2009-02-27 21:48 UTC (permalink / raw) To: Eli Zaretskii; +Cc: help-gnu-emacs On Fri, Feb 27, 2009 at 10:37 PM, Eli Zaretskii <eliz@gnu.org> wrote: >> Date: Fri, 27 Feb 2009 19:20:22 +0100 >> From: Lennart Borgman <lennart.borgman@gmail.com> >> Cc: help-gnu-emacs@gnu.org >> >> On Fri, Feb 27, 2009 at 7:15 PM, Eli Zaretskii <eliz@gnu.org> wrote: >> >> Date: Fri, 27 Feb 2009 11:31:08 -0600 >> >> From: "B. T. Raven" <nihil@nihilo.net> >> >> >> >> It's certainly much easier to get something out of Emacs and down in >> >> black and white (color too) using printing through the browser rather >> >> than through ghost-script. Virtually every w32 user has a browser but >> >> very many don't have ghost-script installed. >> > >> > If your printer supports PostScript, you don't need Ghostscript. >> >> You also need to be able to set the printer in PostScript mode by >> default. This is not always possible. > > That's got to be fairly rare, because I have yet to see such a > situation. I think your memory is failing you. You and I have had a long discussion over this on Emacs Devel. You gave me varying instructions that you thought would help. I know they would not, but to convince you I followed the instructions. And they did not work in this particular case. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 21:48 ` Lennart Borgman @ 2009-02-27 21:58 ` Eli Zaretskii 2009-02-27 22:14 ` Lennart Borgman 0 siblings, 1 reply; 22+ messages in thread From: Eli Zaretskii @ 2009-02-27 21:58 UTC (permalink / raw) To: help-gnu-emacs > Date: Fri, 27 Feb 2009 22:48:34 +0100 > From: Lennart Borgman <lennart.borgman@gmail.com> > Cc: help-gnu-emacs@gnu.org > > >> You also need to be able to set the printer in PostScript mode by > >> default. This is not always possible. > > > > That's got to be fairly rare, because I have yet to see such a > > situation. > > > I think your memory is failing you. Not in this case. I said _I_ have yet to see such a situation. I remember you telling me about your case, but that's you. I myself have never encountered such a printer, in my 30+ years of experience in several large organizations. I'm not saying these situations do not exist, I'm saying that they are rare. Why can't you accept that? ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 21:58 ` Eli Zaretskii @ 2009-02-27 22:14 ` Lennart Borgman 0 siblings, 0 replies; 22+ messages in thread From: Lennart Borgman @ 2009-02-27 22:14 UTC (permalink / raw) To: Eli Zaretskii; +Cc: help-gnu-emacs On Fri, Feb 27, 2009 at 10:58 PM, Eli Zaretskii <eliz@gnu.org> wrote: >> Date: Fri, 27 Feb 2009 22:48:34 +0100 >> From: Lennart Borgman <lennart.borgman@gmail.com> >> Cc: help-gnu-emacs@gnu.org >> >> >> You also need to be able to set the printer in PostScript mode by >> >> default. This is not always possible. >> > >> > That's got to be fairly rare, because I have yet to see such a >> > situation. >> >> >> I think your memory is failing you. > > Not in this case. I said _I_ have yet to see such a situation. I > remember you telling me about your case, but that's you. I myself > have never encountered such a printer, in my 30+ years of experience > in several large organizations. > > I'm not saying these situations do not exist, I'm saying that they are > rare. Why can't you accept that? I thought you said you had not heard of any such case, sorry. I for sure know you have not seen them where you are. Maybe that is a good indication that they are rare, but I actually doubt that. You know that better than me, maybe you have been working on very many different places. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 17:31 ` B. T. Raven 2009-02-27 18:13 ` Lennart Borgman 2009-02-27 18:15 ` Eli Zaretskii @ 2009-03-01 19:26 ` DaveLG526 2009-03-01 21:01 ` Lennart Borgman [not found] ` <mailman.2154.1235941286.31690.help-gnu-emacs@gnu.org> 2 siblings, 2 replies; 22+ messages in thread From: DaveLG526 @ 2009-03-01 19:26 UTC (permalink / raw) To: help-gnu-emacs On Feb 27, 9:31 am, "B. T. Raven" <ni...@nihilo.net> wrote: > Lennart Borgman wrote: > > On Fri, Feb 27, 2009 at 11:37 AM, Eli Zaretskii <e...@gnu.org> wrote: > >>> Date: Fri, 27 Feb 2009 09:40:21 +0100 > >>> From: Lennart Borgman <lennart.borg...@gmail.com> > >>> Cc: help-gnu-em...@gnu.org > > >>>> You have to set the value of "printer-name" > >>> That does not necessarily help. > >> But does not necessarily fail, either. No need to discourage a fellow > >> Emacs users before they even tried. > > > I did not try to discourage. As you know there is a very simple > > solution: Use the web browser for printing. For details see the page > > on EmacsWiki I pointed to. > > It's certainly much easier to get something out of Emacs and down in > black and white (color too) using printing through the browser rather > than through ghost-script. Virtually every w32 user has a browser but > very many don't have ghost-script installed. I think that I once had the > latter method working since I have lines similar to rustom's commented > out in my .emacs. To get printing through Firefox all I had to do was > download: > > hfyview.el > htmlfontify.el > > These are in my emacs/lisp directory but they could probably go in > emacs/emacs-lisp instead, where the other piece of the puzzle, > easymenu.el resides. > > Then add to .emacs: > > (require 'hfyview) > > After restarting (or maybe just rereading .emacs) a new item appears in > the File menu: > > Quick Printing (Using Web Browser) > > Ed Well I gave it a try but I must be missing something as a new Item does not appear in the emacs File menu and no printing occurs. Here is my .emacs file: (require 'hfyview) ;;Org-mode settings (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-font-lock-mode 1) This is the version of emacs I am using now. This is GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-26 on LENNART-69DE564 (patched) I will keep investigating this. I like the org application in Emacs too but occasionally need to print. Thanks..dave ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-03-01 19:26 ` DaveLG526 @ 2009-03-01 21:01 ` Lennart Borgman [not found] ` <mailman.2154.1235941286.31690.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 22+ messages in thread From: Lennart Borgman @ 2009-03-01 21:01 UTC (permalink / raw) To: DaveLG526; +Cc: help-gnu-emacs > Well I gave it a try but I must be missing something as a new Item > does not appear in the emacs File menu and no printing occurs. > > Here is my .emacs file: > > (require 'hfyview) See the beginning of the file hfyview.el. ^ permalink raw reply [flat|nested] 22+ messages in thread
[parent not found: <mailman.2154.1235941286.31690.help-gnu-emacs@gnu.org>]
* Re: Printing with emacs: Not working [not found] ` <mailman.2154.1235941286.31690.help-gnu-emacs@gnu.org> @ 2009-03-02 4:04 ` DaveLG526 0 siblings, 0 replies; 22+ messages in thread From: DaveLG526 @ 2009-03-02 4:04 UTC (permalink / raw) To: help-gnu-emacs On Mar 1, 1:01 pm, Lennart Borgman <lennart.borg...@gmail.com> wrote: > > Well I gave it a try but I must be missing something as a new Item > > does not appear in the emacs File menu and no printing occurs. > > > Here is my .emacs file: > > > (require 'hfyview) > > See the beginning of the file hfyview.el. (require 'hfyview) (require 'easymenu) (require 'htmlfontify) ;;Org-mode settings (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-font-lock-mode 1) ======================================== This is from my hfyview.el . With the hfyview-quick-print-in-files- menu t line thought this would add the menu items but no luck so far. I have the hffview.el file in my lisp folder under EmacsW32 diretory. My .emacs file is in the EmacsW32 directoty. From hfyview.el =============================================================== (defcustom hfyview-quick-print-in-files-menu t) "Add Quick print entries to File menu if non-nil. If you set this to nil you have to restart Emacs to get rid of the Quick Print entry." :type 'boolean :set (lambda (sym val) (set-default sym val) (if val (hfyview-add-to-files-menu))) :group 'hfy-view) (defvar hfyview-print-visible t "Non-nil means show Quick Print entry on the file menu.") =============================================================== Maybe my emacs file is not being read on startup..still investigating that. Regards.. Dave ^ permalink raw reply [flat|nested] 22+ messages in thread
[parent not found: <mailman.1940.1235731077.31690.help-gnu-emacs@gnu.org>]
* Re: Printing with emacs: Not working [not found] ` <mailman.1940.1235731077.31690.help-gnu-emacs@gnu.org> @ 2009-02-27 13:51 ` rustom 2009-02-27 15:58 ` Eli Zaretskii [not found] ` <mailman.1973.1235750331.31690.help-gnu-emacs@gnu.org> 2009-02-27 18:44 ` DaveLG526 1 sibling, 2 replies; 22+ messages in thread From: rustom @ 2009-02-27 13:51 UTC (permalink / raw) To: help-gnu-emacs On Feb 27, 3:37 pm, Eli Zaretskii <e...@gnu.org> wrote: > > Date: Fri, 27 Feb 2009 09:40:21 +0100 > > From: Lennart Borgman <lennart.borg...@gmail.com> > > Cc: help-gnu-em...@gnu.org > > > > You have to set the value of "printer-name" > > > That does not necessarily help. > > But does not necessarily fail, either. No need to discourage a fellow > Emacs users before they even tried. Well Setting up printing in windows from emacs can be an adventure The settings that I have are these: (require 'printing) (setq printer-name "//network/path/to/printer") (setq ps-printer-name t) (setenv "GS_LIB" "D:/Program Files/gs/gs8.63/lib") (setq ps-lpr-command "D:/Program Files/gs/gs8.63/bin/gswin32c.exe") (setq ps-lpr-switches '( "-dNOPAUSE" "-dBATCH" "-sDEVICE=mswinpr2")) and it seems to work (remember to modify your gs paths and network (or otherwise) printer paths suitably) The stuff associated with the require 'printing was completely confusing to me and this worked only when I gave up on that. But this (at least the ps-(B/W printing) only works with that included ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 13:51 ` rustom @ 2009-02-27 15:58 ` Eli Zaretskii [not found] ` <mailman.1973.1235750331.31690.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 22+ messages in thread From: Eli Zaretskii @ 2009-02-27 15:58 UTC (permalink / raw) To: help-gnu-emacs > From: rustom <rustompmody@gmail.com> > Date: Fri, 27 Feb 2009 05:51:50 -0800 (PST) > > Well Setting up printing in windows from emacs can be an adventure > The settings that I have are these: > > (require 'printing) > (setq printer-name "//network/path/to/printer") > (setq ps-printer-name t) > (setenv "GS_LIB" "D:/Program Files/gs/gs8.63/lib") > (setq ps-lpr-command "D:/Program Files/gs/gs8.63/bin/gswin32c.exe") > (setq ps-lpr-switches '( "-dNOPAUSE" "-dBATCH" "-sDEVICE=mswinpr2")) These are all described in the Emacs manual, AFAICS, except perhaps the setenv part. Is it really needed? I don't know why you needed `(require 'printing)', I don't see how it could be necessary. ^ permalink raw reply [flat|nested] 22+ messages in thread
[parent not found: <mailman.1973.1235750331.31690.help-gnu-emacs@gnu.org>]
* Re: Printing with emacs: Not working [not found] ` <mailman.1973.1235750331.31690.help-gnu-emacs@gnu.org> @ 2009-02-28 7:38 ` rustom 0 siblings, 0 replies; 22+ messages in thread From: rustom @ 2009-02-28 7:38 UTC (permalink / raw) To: help-gnu-emacs On Feb 27, 8:58 pm, Eli Zaretskii <e...@gnu.org> wrote: > > From: rustom <rustompm...@gmail.com> > > Date: Fri, 27 Feb 2009 05:51:50 -0800 (PST) > > > Well Setting up printing in windows from emacs can be an adventure > > The settings that I have are these: > > > (require 'printing) > > (setq printer-name "//network/path/to/printer") > > (setq ps-printer-name t) > > (setenv "GS_LIB" "D:/Program Files/gs/gs8.63/lib") > > (setq ps-lpr-command "D:/Program Files/gs/gs8.63/bin/gswin32c.exe") > > (setq ps-lpr-switches '( "-dNOPAUSE" "-dBATCH" "-sDEVICE=mswinpr2")) > > These are all described in the Emacs manual, AFAICS, except perhaps > the setenv part. Is it really needed? > > I don't know why you needed `(require 'printing)', I don't see how it > could be necessary. Strange! Yesterday I commented out the require line and the postscript print buffer(B+W) stopped working Today its again working with the line commented out. As for the GS_LIB -- got it from http://www.emacswiki.org/cgi-bin/wiki/PrintingFromEmacs but yes its also probably not needed (so much for the content of the wiki :-) ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working [not found] ` <mailman.1940.1235731077.31690.help-gnu-emacs@gnu.org> 2009-02-27 13:51 ` rustom @ 2009-02-27 18:44 ` DaveLG526 2009-02-27 21:36 ` Eli Zaretskii 1 sibling, 1 reply; 22+ messages in thread From: DaveLG526 @ 2009-02-27 18:44 UTC (permalink / raw) To: help-gnu-emacs On Feb 27, 2:37 am, Eli Zaretskii <e...@gnu.org> wrote: > > Date: Fri, 27 Feb 2009 09:40:21 +0100 > > From: Lennart Borgman <lennart.borg...@gmail.com> > > Cc: help-gnu-em...@gnu.org > > > > You have to set the value of "printer-name" > > > That does not necessarily help. > > But does not necessarily fail, either. No need to discourage a fellow > Emacs users before they even tried. Thanks for all the good suggestions and different ways to attack the issue. I will be trying them out over the weekend. I have downloaded and installed all the ghostscript etc files but the web browser method seems attractive as it seem simple. It would probably also work on both a Windows (XP and Vista) as well as my Ubunto netbook. One other question. When you need to set the value of "printer name" where does one find the "printer name" in windows XP. Is it the name given to the printer in the Windows XP printer control panel or the Port Name in the printers Advanced properties menu. Regards..Dave ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 18:44 ` DaveLG526 @ 2009-02-27 21:36 ` Eli Zaretskii 0 siblings, 0 replies; 22+ messages in thread From: Eli Zaretskii @ 2009-02-27 21:36 UTC (permalink / raw) To: help-gnu-emacs > From: DaveLG526 <David.Gillooly@gmail.com> > Date: Fri, 27 Feb 2009 10:44:25 -0800 (PST) > > One other question. When you need to set the value of "printer name" > where does one find the "printer name" in windows XP. Is it the name > given to the printer in the Windows XP printer control panel or the > Port Name in the printers Advanced properties menu. Not necessarily. The node "Windows Printing" in the Emacs manual gives advice on how to find out this name. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Printing with emacs: Not working 2009-02-27 4:04 Printing with emacs: Not working DaveLG526 2009-02-27 5:52 ` Jean Magnan de Bornier @ 2009-02-28 1:24 ` Joe Fineman 1 sibling, 0 replies; 22+ messages in thread From: Joe Fineman @ 2009-02-28 1:24 UTC (permalink / raw) To: help-gnu-emacs DaveLG526 <David.Gillooly@gmail.com> writes: > I have been using emacs for about a month and really like it. It > wasn't till today that I tried to print something. I see this > message but nothig i sever printed: Spooling with options (page > headers are not supported)...done. I Am Not A Programmer. I have gotten so consistently frustrated trying to make lpr-buffer, lpr-region, tex-buffer, & tex-print work that I have resorted to the following workarounds: (defun lprl (r/b) "Print all or part of buffer with TeX literal mode." (interactive "cr(egion) or b(uffer)?") (save-window-excursion (let ((passage (if (equal r/b ?r) (buffer-substring (region-beginning) (region-end)) (buffer-substring (point-min) (point-max))))) (find-file "/usr/own/f/hdwe/printer/hp/Lpr-scratch.tex") (delete-region (point-min) (point-max)) (insert-file "~/tex/Tex-literal-hdr") (goto-char (point-max)) (insert passage) (goto-char (point-max)) (insert-file "~/tex/Tex-literal-ftr") (untabify (point-min) (point-max)) (goto-char (point-min)) (replace-regexp "\e.\\|\C-r" "") (save-buffer) (shell-command "latex /usr/own/f/hdwe/printer/hp/Lpr-scratch.tex") ;Doesn't understand tilde (shell-command "dvips -f /usr/own/f/hdwe/printer/hp/Lpr-scratch.dvi | gsprint - color - ") ))) ---------------------------------------------------------------------- Tex-literal-hdr: \documentclass[12pt]{article} \pagestyle{empty} \setlength{\oddsidemargin}{-.25in} \setlength{\topmargin}{-.75in} \setlength{\textheight}{9.5in} \setlength{\textwidth}{7in} ---------------------------------------------------------------------- Tex-literal-ftr: \end{verbatim} \end{document} ---------------------------------------------------------------------- \begin{document} \setlength{\baselineskip}{.1667in} \noindent \begin{verbatim} (defun lprt () "Print the TeX file in the current buffer." (interactive) (save-window-excursion (let ((file (buffer-string))) (find-file "~/hdwe/printer/hp/Lpr-scratch.tex") (delete-region (point-min) (point-max)) (insert file)) (save-buffer) (shell-command "latex /usr/own/f/hdwe/printer/hp/Lpr-scratch.tex") ;Doesn't understand tilde (shell-command "dvips -f /usr/own/f/hdwe/printer/hp/Lpr-scratch.dvi | gsprint - color - ") )) -- --- Joe Fineman joe_f@verizon.net ||: First you go to hell, then your body rots, and then you die. :|| ^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2009-03-02 4:04 UTC | newest] Thread overview: 22+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-02-27 4:04 Printing with emacs: Not working DaveLG526 2009-02-27 5:52 ` Jean Magnan de Bornier 2009-02-27 8:40 ` Lennart Borgman 2009-02-27 10:37 ` Eli Zaretskii 2009-02-27 16:03 ` Lennart Borgman [not found] ` <mailman.1974.1235750623.31690.help-gnu-emacs@gnu.org> 2009-02-27 17:31 ` B. T. Raven 2009-02-27 18:13 ` Lennart Borgman 2009-02-27 18:15 ` Eli Zaretskii 2009-02-27 18:20 ` Lennart Borgman 2009-02-27 21:37 ` Eli Zaretskii 2009-02-27 21:48 ` Lennart Borgman 2009-02-27 21:58 ` Eli Zaretskii 2009-02-27 22:14 ` Lennart Borgman 2009-03-01 19:26 ` DaveLG526 2009-03-01 21:01 ` Lennart Borgman [not found] ` <mailman.2154.1235941286.31690.help-gnu-emacs@gnu.org> 2009-03-02 4:04 ` DaveLG526 [not found] ` <mailman.1940.1235731077.31690.help-gnu-emacs@gnu.org> 2009-02-27 13:51 ` rustom 2009-02-27 15:58 ` Eli Zaretskii [not found] ` <mailman.1973.1235750331.31690.help-gnu-emacs@gnu.org> 2009-02-28 7:38 ` rustom 2009-02-27 18:44 ` DaveLG526 2009-02-27 21:36 ` Eli Zaretskii 2009-02-28 1:24 ` Joe Fineman
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).