unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* What's wrong with this lisp code in my init file?!
@ 2006-12-31 16:15 Endless Story
  2006-12-31 18:48 ` Eric Hanchrow
       [not found] ` <mailman.2592.1167591202.2155.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Endless Story @ 2006-12-31 16:15 UTC (permalink / raw)


On XP, I'm running both the Windows build of Emacs and the Cywgin
console version of Emacs. I don't really need both, but I like having
Emacs available in the Cygwin environment.

I've installed Ghostview to be able to print to my non-postscript
Printer. But now I'm running into a wierd problem. I have lisp code
that should be restricting the correct printing commands based on the
variable window-system - but when I run the Windows build of Emacs, it
complains that it can't find
/cygdrive/c/Program/Files/Ghostgum/gsview/gsprint.exe! If I comment out
that line it goes ahead and prints using its own section of the code.
So why is this problem occurring? On the console side, it doesn't care
if the Windows code is in there.

Here's the relevant code:

(setq printer-name "//BREATH-000/Randy's HP 1200")
(setq ps-printer-name t)

(if (eq window-system 'w32)
(setq ps-lpr-command "c:/Program Files/Ghostgum/gsview/gsprint.exe"))

;; note that for printing via console, the order of statements matters
-
;; must set printer name before issuing print command!
(if (eq window-system nil)
(setq ps-printer-name t)
(setq ps-lpr-command "/cygdrive/c/Program
Files/Ghostgum/gsview/gsprint.exe"))

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-01-01  1:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-31 16:15 What's wrong with this lisp code in my init file?! Endless Story
2006-12-31 18:48 ` Eric Hanchrow
     [not found] ` <mailman.2592.1167591202.2155.help-gnu-emacs@gnu.org>
2006-12-31 19:57   ` Endless Story
2006-12-31 21:51     ` Eric Hanchrow
2006-12-31 22:29       ` Drew Adams
     [not found]     ` <mailman.2595.1167601997.2155.help-gnu-emacs@gnu.org>
2006-12-31 22:16       ` Harald Hanche-Olsen
2006-12-31 22:50         ` Drew Adams
     [not found]         ` <mailman.2599.1167605423.2155.help-gnu-emacs@gnu.org>
2007-01-01  1:48           ` Endless Story

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