unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* An elisp question
@ 2008-09-16 20:17 Rodolfo Medina
  2008-09-16 20:09 ` Drew Adams
       [not found] ` <mailman.19376.1221595777.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Rodolfo Medina @ 2008-09-16 20:17 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-09-19 18:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 20:17 An elisp question Rodolfo Medina
2008-09-16 20:09 ` Drew Adams
     [not found] ` <mailman.19376.1221595777.18990.help-gnu-emacs@gnu.org>
2008-09-16 20:20   ` Joost Kremers
2008-09-16 20:51     ` Drew Adams
     [not found]     ` <mailman.19377.1221598264.18990.help-gnu-emacs@gnu.org>
2008-09-17 18:29       ` Oleksandr Gavenko
2008-09-17 21:05         ` Joost Kremers
2008-09-18  8:06         ` Bastien
2008-09-19 16:13         ` Nikolaj Schumacher
     [not found]         ` <mailman.19562.1221840826.18990.help-gnu-emacs@gnu.org>
2008-09-19 18:17           ` Oleksandr Gavenko

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 read-only IMAP folder(s) and NNTP newsgroup(s).