all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Endless Story" <usable.thought@gmail.com>
Subject: What's wrong with this lisp code in my init file?!
Date: 31 Dec 2006 08:15:38 -0800	[thread overview]
Message-ID: <1167581737.951769.216970@k21g2000cwa.googlegroups.com> (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"))

             reply	other threads:[~2006-12-31 16:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-31 16:15 Endless Story [this message]
2006-12-31 18:48 ` What's wrong with this lisp code in my init file?! 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

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

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

  git send-email \
    --in-reply-to=1167581737.951769.216970@k21g2000cwa.googlegroups.com \
    --to=usable.thought@gmail.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.