unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to put this in a macro
@ 2010-04-16 21:13 Cecil Westerhof
  2010-04-16 23:28 ` José A. Romero L.
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Cecil Westerhof @ 2010-04-16 21:13 UTC (permalink / raw)
  To: help-gnu-emacs

In my code I use the following code on several places:
    (if (equal start end)
        (setq start (point-min)
              end   (point-max))
      (setq start (or start (point-min)))
      (setq end   (or end   (point-max))))

I think it would be good to put this in a macro. How would I write a
macro for this code?

Or could it be done with a function?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


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

end of thread, other threads:[~2010-04-18  7:50 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 21:13 How to put this in a macro Cecil Westerhof
2010-04-16 23:28 ` José A. Romero L.
2010-04-17  3:08 ` Barry Margolin
2010-04-17  6:38   ` Cecil Westerhof
2010-04-17 10:30     ` José A. Romero L.
2010-04-17 11:07       ` Cecil Westerhof
2010-04-17 11:40         ` Cecil Westerhof
2010-04-17 15:15           ` José A. Romero L.
2010-04-17 16:49             ` Barry Margolin
2010-04-17 16:57               ` José A. Romero L.
2010-04-17 21:41                 ` Barry Margolin
2010-04-17 19:38             ` Cecil Westerhof
2010-04-17 23:58               ` José A. Romero L.
2010-04-17 12:13         ` José A. Romero L.
2010-04-17 15:14       ` Barry Margolin
2010-04-17 16:49         ` José A. Romero L.
2010-04-17 15:12     ` Barry Margolin
2010-04-18  7:50 ` Pascal J. Bourguignon

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).