<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/hirono2021/">
    <title>hirono2021 @ ウィキ</title>
    <link>http://w.atwiki.jp/hirono2021/</link>
    <atom:link href="https://w.atwiki.jp/hirono2021/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>hirono2021 @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2021-04-14T11:20:51+09:00</dc:date>
    <utime>1618366851</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/19.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/12.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/10.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hirono2021/pages/4.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/19.html">
    <title>Markdownから見出しレベルを指定しWikiに投稿するデータを生成</title>
    <link>https://w.atwiki.jp/hirono2021/pages/19.html</link>
    <description>
      &amp;bold(){Emacs-Lisp関数}

#highlight(lisp){{
;; 2021-04-14
(defun k-markdown-copy-to-subtree-wiki (arg)
  &quot;Narrow buffer to the current subtree.&quot;
  (interactive &quot;p&quot;)
  (save-excursion
    (let ((=start)(=end)(=p)(line_start)(line_end))
      ;;(markdown-outline-previous)
      (setq exec (lambda (pattern1 pattern2)
                   (setq =p (point))
                   (re-search-backward pattern1 nil t)(setq =start (point))
                   (beginning-of-line)(setq line_start (point))
                   (end-of-line)(setq line_end (point))
                   (setq lv1 (concat &quot;./&quot; (car (nthcdr 5 (split-string (buffer-file-name) &quot;/&quot;))) &quot;/&quot;))
                   (setq lv2 (concat (car (nthcdr 6 (split-string (buffer-file-name) &quot;/&quot;))) &quot;/&quot;))
                   (setq title (concat  lv1 lv2 (buffer-substring line_start line_end)))
                   ;;(progn (markdown-back-to-heading-over-code-block t) (setq =start (point)))
                   ;;(progn (markdown-end-of-subtree)
                   ;;(if (and (markdown-heading-at-point) (not (eobp)))
                   (goto-char =p)(message (int-to-string =start))(message (format &quot;\\(%s\\|%s\\)&quot; pattern2 pattern1))
                   (cond  ((re-search-forward (format &quot;\\(%s\\|%s\\)&quot; pattern2 pattern1) nil t)
                           (progn (backward-char 1)(beginning-of-line)(setq =end (point))))
                          (t
                           (message &quot;該当なし&quot;)))(message &quot;%s&quot; (int-to-string =end))
                   (setq fname (file-name-nondirectory (buffer-file-name)))
                   (string-match &quot;.+_\\(.+\\)\\.md&quot; fname)
                   (setq fname (match-string 1 fname))
                   ;;(copy-region-as-kill =start =end)
                   ;; 指定した範囲のリージョンのテキストを変数に代入
                   (setq title (replace-regexp-in-string &quot;#+ &quot; &quot;&quot; title))
                   ;;(setq title (concat fname &quot; ＃令和3年3月31日付告発状 &quot; title))
                   (setq fname (concat &quot;TITLE:&quot; title))
                   (setq fname (concat fname &quot;\n#contents\n----\n&quot;))
                   (setq text (buffer-substring-no-properties =start =end))
                   (setq text (concat fname text))
                   (setq text (replace-regexp-in-string &quot;^#### &quot; &quot;**** &quot; text))
                   (setq text (replace-regexp-in-string &quot;^### &quot; &quot;*** &quot; text))
                   (setq text (replace-regexp-in-string &quot;^## &quot; &quot;** &quot; text))
                   (setq text (replace-regexp-in-string &quot;^# &quot; &quot;* &quot; text))
                   (message title)
                   ;; クリップボードに変数の内容を送る。
                   (generate-new-buffer &quot;a&quot;)
                   (with-temp-buffer
                     (insert text)
                     (call-process-region (point-min) (point-max) &quot;xsel&quot; nil &quot;a&quot; nil &quot;--clipboard&quot; &quot;--input&quot;))
                   (message &quot;%s&quot; (buffer-string))
                   (kill-buffer &quot;a&quot;)
                   (generate-new-buffer &quot;b&quot;)
                   (with-temp-buffer
                     (insert title)
                     (call-process-region (point-min) (point-max) &quot;xsel&quot; nil &quot;b&quot; nil &quot;--primary&quot; &quot;--input&quot;)
                     (message &quot;%s&quot; (buffer-string)))
                   (kill-buffer &quot;b&quot;)))

      ;; (if (boundp n)
      ;;     (setq n 3))
      (if arg (setq n arg)
         (setq n 3)) ;;なぜか1の処理が実行される。なかなか消えなかったエラー。

      (cond ((eq n 1)
             (funcall exec &quot;^# .+$&quot; &quot;^# .+$&quot;))
            ((eq n 2)
             (funcall exec &quot;^## .+$&quot; &quot;^# .+$&quot;))
            ((eq n 3)
            (funcall exec &quot;^### .+$&quot; &quot;^## .+$&quot;))
            (t
            (funcall exec &quot;^### .+$&quot; &quot;^## .+$&quot;)))
      )))
}}    </description>
    <dc:date>2021-04-14T11:20:51+09:00</dc:date>
    <utime>1618366851</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/hirono2021/pages/1.html</link>
    <description>
      **@wikiへようこそ
-ウィキはみんなで気軽にホームページ編集できるツールです。
-このページは自由に編集することができます。
-メールで送られてきたパスワードを用いてログインすることで、各種変更（サイト名、トップページ、メンバー管理、サイドページ、デザイン、ページ管理、等）することができます

[[https://twitter.com/hirono_hideki/status/1377567816644141057]]
&amp;size(20){&#039;&#039;Welcome to WIKIWIKI&#039;&#039;};
* Twitter
- [[奉納＼さらば弁護士鉄道・泥棒神社の物語（@hirono_hideki）さんの返信があるツイート / Twitter&gt;https://twitter.com/hirono_hideki/with_replies]]
- [[刑事告発・非常上告＿金沢地方検察庁御中（@kk_hirono）さんの返信があるツイート / Twitter&gt;https://twitter.com/kk_hirono/with_replies]]
- [[非常上告-最高検察庁御中_ツイッター（@s_hirono）さんの返信があるツイート / Twitter&gt;https://twitter.com/s_hirono/with_replies]]
* blog
- [[非常上告-最高検察庁御中_ツイッター（@s_hirono）さんの返信があるツイート / Twitter&gt;https://twitter.com/s_hirono/with_replies]]
- [[告発・金沢地方検察庁御中 Wiki*&gt;https://wikiwiki.jp/hirono2021/]]
- [[告発＼金沢地方検察庁＼最高検察庁＼法務省＼石川県警察御中&gt;https://hirono-hideki.hatenablog.com/]]
- [[告発＼金沢地方検察庁＼最高検察庁＼法務省＼石川県警察御中2020&gt;https://hirono-hideki.hatenadiary.jp/]]
*wiki
- [[令和3年3月31日付＼告発状の設計図面＼金沢地方検察庁御中&gt;https://kokuhatu.memo.wiki/]]
- [[告発・金沢地方検察庁御中 Wiki*&gt;https://wikiwiki.jp/hirono2021/]]
- [[hirono2021 @ ウィキ【4/11更新】 - atwiki（アットウィキ）&gt;https://w.atwiki.jp/hirono2021/pages/1.html]]

**まずはこちらをご覧ください。
-[[@wikiの基本操作&gt;&gt;http://www1.atwiki.jp/guide/pages/11.html]]
-[[編集モード・構文一覧表&gt;&gt;http://www1.atwiki.jp/guide/pages/137.html]]
-[[@wikiの設定・管理&gt;&gt;http://www1.atwiki.jp/guide/pages/36.html]]

**分からないことは？
-[[@wiki ご利用ガイド&gt;&gt;http://atwiki.jp/guide/]]
-[[よくある質問&gt;&gt;http://www1.atwiki.jp/guide/pages/21.html]]
-[[@wiki更新情報&gt;&gt;http://www1.atwiki.jp/guide/pages/143.html]]
-[[@wikiへのお問合せフォーム&gt;&gt;https://atwiki.zendesk.com/hc/ja]]
等をご活用ください

**[[アットウィキモードでの編集方法&gt;&gt;http://www1.atwiki.jp/guide/pages/226.html#id_6861418f]]
-[[文字入力&gt;&gt;http://www1.atwiki.jp/guide/pages/228.html]]
-[[画像入力&gt;&gt;http://www1.atwiki.jp/guide/pages/230.html]]
-[[表組み&gt;&gt;http://www1.atwiki.jp/guide/pages/914.html]]

**[[ワープロモードでの編集方法&gt;&gt;http://www1.atwiki.jp/guide/pages/226.html#id_a14c0938]]
-[[文字入力&gt;&gt;http://www1.atwiki.jp/guide/pages/2644.html]]
-[[画像入力&gt;&gt;http://www1.atwiki.jp/guide/pages/2645.html]]
-[[表組み&gt;&gt;http://www1.atwiki.jp/guide/pages/2646.html]]

**その他にもいろいろな機能満載！！
-[[@wikiプラグイン一覧&gt;&gt;http://www1.atwiki.jp/guide/pages/264.html]]
-[[@wikiかんたんプラグイン入力サポート&gt;&gt;http://www1.atwiki.jp/guide/pages/648.html]]

**他のWIKIが気になる方はこちら
-[[ハートオブクラウン@wiki&gt;&gt;https://w.atwiki.jp/hatokura/]]
-[[VPVP wiki&gt;&gt;https://w.atwiki.jp/vpvpwiki/]]
-[[ULTIMATE MARVEL VS. CAPCOM 3 @ wiki&gt;&gt;https://w.atwiki.jp/umvsc3/]]
-[[AcesHigh Wiki Plus!&gt;&gt;https://w.atwiki.jp/aceshigh/]]
-[[REBELLION    Z-LIMITED&gt;&gt;https://w.atwiki.jp/z-limited/]]

**バグ・不具合を見つけたら？ 要望がある場合は？
お手数ですが、[[お問合せフォーム&gt;&gt;https://atwiki.zendesk.com/hc/ja]]からご連絡ください。    </description>
    <dc:date>2021-04-14T03:30:53+09:00</dc:date>
    <utime>1618338653</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/15.html">
    <title>Markdownのカーソル位置にある見出しをwiki記法に変換し投稿用テキストを生成</title>
    <link>https://w.atwiki.jp/hirono2021/pages/15.html</link>
    <description>
      #highlight(lisp){{
;; 2021-04-11
(defun k-markdown-copy-to-subtree-wiki ()
  &quot;Narrow buffer to the current subtree.&quot;
  (interactive)
  (save-excursion
    (let ((=start)(=end))
      (markdown-outline-previous)
      (beginning-of-line)(setq =start (point))
      (end-of-line)(setq =end (point))
      (setq title (buffer-substring =start =end))
      (progn (markdown-back-to-heading-over-code-block t) (setq =start (point)))
      (message title)
      (progn (markdown-end-of-subtree)
             (if (and (markdown-heading-at-point) (not (eobp)))
                 (backward-char 1))
             (setq =end (point))
             (setq fname (file-name-nondirectory (buffer-file-name)))
             (string-match &quot;.+_\\(.+\\)\\.md&quot; fname)
             (setq fname (match-string 1 fname))
             ;;(copy-region-as-kill =start =end)
             ;; 指定した範囲のリージョンのテキストを変数に代入
             (setq title (replace-regexp-in-string &quot;#&quot; &quot;＊&quot; title))
             (setq title (concat fname &quot; ＃令和3年3月31日付告発状 &quot; title))
             (setq fname (concat &quot;TITLE:&quot; title))
             (setq fname (concat fname &quot;\n#contents\n----\n&quot;))
             (setq text (buffer-substring-no-properties =start =end))
             (setq text (concat fname text))
             (setq text (replace-regexp-in-string &quot;^#### &quot; &quot;**** &quot; text))
             (setq text (replace-regexp-in-string &quot;^### &quot; &quot;*** &quot; text))
             (setq text (replace-regexp-in-string &quot;^## &quot; &quot;** &quot; text))
             (setq text (replace-regexp-in-string &quot;^# &quot; &quot;* &quot; text))
             (message title)
             ;; クリップボードに変数の内容を送る。
             (x-set-selection nil text)
}}    </description>
    <dc:date>2021-04-12T12:58:17+09:00</dc:date>
    <utime>1618199897</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/12.html">
    <title>Emacs-Lisp/read-string</title>
    <link>https://w.atwiki.jp/hirono2021/pages/12.html</link>
    <description>
      &amp;topicpath(top=Top)

#highlight(lisp){{
(setq default-format &quot;%Y/%m/%d %H:%M:%S&quot;)
(defvar insert-date-format-history &#039;())
(read-string
                     (format &quot;Format (default %s): &quot; default-format)
                     &quot;&quot;
                     &#039;insert-date-format-history
                     xxx)
&quot;てすと&quot;

&quot;x&quot;
(setq xxx &quot;てすと&quot;)
&quot;てすと&quot;
}}    </description>
    <dc:date>2021-04-12T10:40:07+09:00</dc:date>
    <utime>1618191607</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/13.html">
    <title>Emacs-Lisp/現在の日付と時刻を独自フォーマットでカーソル位置に挿入</title>
    <link>https://w.atwiki.jp/hirono2021/pages/13.html</link>
    <description>
      &amp;topicpath(top=Top)

#highlight(sh){{
;; 2021-04-11
(defun insert-start-date (arg)
  (interactive &quot;p&quot;)
  (insert (format-time-string &quot;〉〉〉 Linux Emacs： %Y/%m/%d %H:%M:%S 〉〉〉&quot;)))

(defun insert-end-date (arg)
  (interactive &quot;p&quot;)
  (insert (format-time-string &quot;〈〈〈 %Y/%m/%d %H:%M:%S Linux Emacs： 〈〈〈 &quot;)))

;;　キーマップに登録
;;キャップスキーのキーバインド
(let ((cmap (make-sparse-keymap)))      ;caps key
(define-key cmap &quot;e&quot; &#039;insert-end-date)
(define-key cmap &quot;s&quot; &#039;insert-start-date)
(setq caps-key cmap))
}}

実行結果：
----
;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with &lt;open&gt; and enter text in its buffer.

〉〉〉 Linux Emacs： 2021/04/11 19:45:05 〉〉〉

〈〈〈 2021/04/11 19:45:11 Linux Emacs： 〈〈〈    </description>
    <dc:date>2021-04-12T10:39:19+09:00</dc:date>
    <utime>1618191559</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/14.html">
    <title>あ</title>
    <link>https://w.atwiki.jp/hirono2021/pages/14.html</link>
    <description>
      あ

&amp;lightbox(https://img.atwiki.jp/hirono2021/attach/14/1/2021-04-07%2018.22.55.jpg,link=image,title=@wiki,percent=50)
&amp;lightbox(https://img.atwiki.jp/hirono2021/attach/14/2/2021-04-09%2015.43.02.jpg,link=image,title=@wiki,percent=50)    </description>
    <dc:date>2021-04-11T20:24:51+09:00</dc:date>
    <utime>1618140291</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/hirono2021/pages/2.html</link>
    <description>
      **メニュー
-[[トップページ]]
-[[プラグイン紹介&gt;プラグイン]]
-[[メニュー]]
-[[右メニュー]]
+[[menu]]
[[Emacs-Lisp]]

----

**リンク
-[[@wiki&gt;&gt;http://atwiki.jp]]
-[[@wikiご利用ガイド&gt;&gt;http://atwiki.jp/guide/]]

// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります


//**更新履歴
//#recent(20)

&amp;link_editmenu(text=ここを編集)    </description>
    <dc:date>2021-04-11T19:35:21+09:00</dc:date>
    <utime>1618137321</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/10.html">
    <title>Emacs-Lisp</title>
    <link>https://w.atwiki.jp/hirono2021/pages/10.html</link>
    <description>
      * Emacs-Lisp
#ls()    </description>
    <dc:date>2021-04-11T19:31:43+09:00</dc:date>
    <utime>1618137103</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/3.html">
    <title>右メニュー</title>
    <link>https://w.atwiki.jp/hirono2021/pages/3.html</link>
    <description>
      **更新履歴
#recent(20)


&amp;link_editmenu2(text=ここを編集)
    </description>
    <dc:date>2021-04-11T18:49:17+09:00</dc:date>
    <utime>1618134557</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hirono2021/pages/4.html">
    <title>プラグイン/ニュース</title>
    <link>https://w.atwiki.jp/hirono2021/pages/4.html</link>
    <description>
      * ニュース
@wikiのwikiモードでは
 #news(興味のある単語)
と入力することで、あるキーワードに関連するニュース一覧を表示することができます
詳しくはこちらをご覧ください。
＝＞http://www1.atwiki.jp/guide/pages/266.html#id_542badf7


-----


たとえば、#news(ゲーム)と入力すると以下のように表示されます。


#news(ゲーム)
    </description>
    <dc:date>2021-04-11T18:49:17+09:00</dc:date>
    <utime>1618134557</utime>
  </item>
  </rdf:RDF>
