From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: ps-right-footer interactive setting (was: ps-print variables interactive setting) Date: Thu, 04 Sep 2008 21:19:53 -0400 Message-ID: References: <87ej42m64o.fsf@gmail.com> <87ej412cpw.fsf@gmail.com> <87aben37np.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1220578846 7046 80.91.229.12 (5 Sep 2008 01:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2008 01:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 05 03:41:41 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KbQKS-0007gt-HX for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 03:41:40 +0200 Original-Received: from localhost ([127.0.0.1]:35570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbQJS-0002FV-R6 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 21:40:38 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 04 Sep 2008 20:19:54 -0500 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Original-Lines: 38 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 24.34.108.171 Original-X-Trace: sv3-G7cLazhhVk6RlT++Od+8Gt2XotdbaTpR1eTZWC+02caCk2vmi1OY4s4Sml1lkxqj9QhYCk+W+vZ++bv!xdca8PKSKq7S2TwTLquwyomMDkDvkOiKWYuYcCaeTZoIazGv72GvVQEDhyyeLLRgKCa3TGjX/cd7!3I6LK1IXtlomO57JI0yiYi2RZOSiz25Vzw577BA= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:161945 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57289 Archived-At: In article <87aben37np.fsf@gmail.com>, Rodolfo Medina wrote: > Rodolfo Medina writes: > > > I wish to set some ps-print variables in an interactive way, i.e. be > > prompted for the value that I want to set. > > > > Now I'm working on the ps-right-footer variable. I wish to be prompted for a > page number so that the variable is set to: > > (list ) > > . I did: > > (defun my-ps-right-footer () > (interactive) > (let ((my-page-number (read-number "page number? "))) > (setq ps-print-footer t) > (setq ps-right-footer (list 'my-page-number)) > ) > ) > > , but it doesn't work. Any suggestion? > > Thanks > Rodolfo It should be (list my-page number). Quoting prevents the variable from being evaluated. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***