From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rodolfo Medina Newsgroups: gmane.emacs.help Subject: An elisp question Date: Tue, 16 Sep 2008 21:17:13 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <87zlm7alrq.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 1221594060 8767 80.91.229.12 (16 Sep 2008 19:41:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 19:41:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 21:41:56 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 1KfgQq-0007Cy-J1 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 21:41:53 +0200 Original-Received: from localhost ([127.0.0.1]:49329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfgPo-00045n-R1 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 15:40:48 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news-fra1.dfn.de!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:/gBcoBCusL4UcPi6bFG9+7i+0j0= Original-Lines: 27 Original-NNTP-Posting-Host: 151.80.206.245 Original-X-Trace: news.sunsite.dk DXC=hf73@k3M_DaNC=2oJ9U:hfYSB=nbEKnkkCA74; ^LPKQc:AocXk=\=_dT7bXfBO; G:eKAib\KDO`hbm=c5DAkLCDlVk>SD?]U?4i>_X=jcHF^Bc Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:162365 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:57707 Archived-At: I have a set of `setq' conditions that I wish to group into a function and put inside another function: (defun my-test () (interactive) (if (equal (y-or-n-p "Yes or no? ") t) (setq ps-print-footer t ps-print-footer-frame nil ps-top-margin 18 ps-bottom-margin 5 ps-left-margin 9 ps-right-margin 7 ps-print-header nil ps-show-n-of-n nil ps-print-footer-frame nil ps-footer-lines 1 ps-left-footer (quote ( )) ps-footer-offset 0 ) (message "hallo"))) How can I group all those `setq' conditions into a function and put that function name in place of them in `my-test' definition? Thanks for any help Rodolfo