From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chetan Newsgroups: gmane.emacs.help Subject: Re: ps-right-footer interactive setting Date: Fri, 05 Sep 2008 12:21:55 -0700 Organization: Noname Inc. Message-ID: References: <87ej42m64o.fsf@gmail.com> <87ej412cpw.fsf@gmail.com> <87aben37np.fsf@gmail.com> <87wshqki5r.fsf_-_@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220643652 24598 80.91.229.12 (5 Sep 2008 19:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2008 19:40:52 +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 21:41:47 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 1KbhBc-0006V2-RV for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 21:41:41 +0200 Original-Received: from localhost ([127.0.0.1]:46500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbhAd-0000Kl-6Y for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 15:40:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi066.nbdc.sbc.com.POSTED!8e1d8614!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:ZmLzAA6eiWPn+rsZBhuIFDDLUfk= Original-Lines: 45 Original-NNTP-Posting-Host: 75.37.22.188 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: nlpi066.nbdc.sbc.com 1220642517 ST000 75.37.22.188 (Fri, 05 Sep 2008 15:21:57 EDT) Original-NNTP-Posting-Date: Fri, 05 Sep 2008 15:21:57 EDT X-UserInfo1: TSUGGVCE[BWASVDY[ZOD]_\@VR]^@B@MCPWZKB]MPXHNDQUBLNTC@AWZWDXZXQ[K\FFSKCVM@F_N_DOBWVWG__LG@VVOIPLIGX\\BU_B@\P\PFX\B[APHTWAHDCKJF^NHD[YJAZMCY_CWG[SX\Y]^KC\HSZRWSWKGAY_PC[BQ[BXAS\F\\@DMTLFZFUE@\VL Original-Xref: news.stanford.edu gnu.emacs.help:161955 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:57297 Archived-At: Rodolfo Medina writes: > Rodolfo Medina wrote: > >>> 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? > > > > Barry Margolin writes: > >> It should be (list my-page number). Quoting prevents the variable from >> being evaluated. > > > > Unfortunately it doesn't work either: > > (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)) > ) > ) > > produces a ps print error. I can't find a solution. Thanks for furhter > suggestions. > Rodolfo It is a postscript string... (list (concat "(" (number-to-string my-page-number) ")"))