Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: Symbol's value as variable is void: lpr-command
Date: Mon, 20 Jan 2003 11:32:14 +0100	[thread overview]
Message-ID: <ilur8b8ru1d.fsf@latte.josefsson.org> (raw)
In-Reply-To: <87n0lwxzau.fsf@unix.home> (deskpot@myrealbox.com's message of "Mon, 20 Jan 2003 06:42:01 +0300")

deskpot@myrealbox.com (Vasily Korytov) writes:

> I've just updatet Oort from CVS. When (require ...)'ing gnus-load it
> stops with the error: Symbol's value as variable is void: lpr-command.
> If I define lpr-command, the same is for lpr-switches.
>
> When I define both prior to (require 'gnus-load), it works again.
>
> The problem is in file mailcap.el, in the following strings:
>
> (defvar mailcap-print-command
>   (mapconcat 'identity
>              (cons lpr-command
>                    (if (stringp lpr-switches)
>                        (list lpr-switches)
>                      lpr-switches))
>              " ")
>   "Shell command (including switches) used to print Postscript files.")
>
> Currently I can't find the XEmacs equivalent of lpr-command and
> lpr-swithes (assuming, there're some), and would suggest checking for
> these variables, if they're not bound, setting them to "lpr" and "". Can
> anyone suggest a better way?

Installing the ps-print package would solve it, but it is not listed
in the requirements for running Gnus, so maybe we should work around
it.  If you apply the following patch, does Gnus work?  If more
workarounds are needed, perhaps the ps-print package should simply be
added to the prerequisites.

--- mailcap.el.~6.14.~	Fri Jan 17 09:53:07 2003
+++ mailcap.el	Mon Jan 20 11:30:29 2003
@@ -51,10 +51,14 @@
 
 (defvar mailcap-print-command
   (mapconcat 'identity
-	     (cons lpr-command
+	     (cons (if (boundp 'lpr-command)
+		       lpr-command
+		     "lpr")
+		   (if (boundp 'lpr-switches)
 		   (if (stringp lpr-switches)
 		       (list lpr-switches)
-		     lpr-switches))
+			 lpr-switches)
+		     ""))
 	     " ")
   "Shell command (including switches) used to print Postscript files.")
 




  parent reply	other threads:[~2003-01-20 10:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-20  3:42 Vasily Korytov
2003-01-20  3:46 ` Vasily Korytov
2003-01-20  5:09 ` Jesper Harder
2003-01-20  6:51   ` Vasily Korytov
2003-01-20 10:32 ` Simon Josefsson [this message]
2003-01-20 16:04   ` Vasily Korytov

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=ilur8b8ru1d.fsf@latte.josefsson.org \
    --to=jas@extundo.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 NNTP newsgroup(s).