<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Emacs Lisp</anon>
  </categories>
  <description>以下のコードをマクロを使って書くことにする。 (if t (progn (setq a 1) (message &quot;%s&quot; a))) ; =&gt; &quot;1&quot; (if nil (progn (setq a 1) (message &quot;%s&quot; a))) ; =&gt; nil マクロを定義するにはdefmacroを使う (defmacro my-when (condition &amp;rest body) `(if ,condition (progn ,@body))) ;; テスト (my-when t 1 2) ; =&gt; 2 (my-when t 1) ; =&gt; 1 (my-when nil 1 2) ; =&gt; n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20120419%2F1334804085&quot; title=&quot;マクロを定義する - by shigemk2&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://ecx.images-amazon.com/images/I/51Wg39T8KAL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-19 11:54:45</published>
  <title>マクロを定義する</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20120419/1334804085</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
