{"id":300,"date":"2008-09-24T18:46:58","date_gmt":"2008-09-24T09:46:58","guid":{"rendered":"http:\/\/wp.hebohebon.bex.jp\/wp\/?p=300"},"modified":"2008-09-24T18:46:58","modified_gmt":"2008-09-24T09:46:58","slug":"emacs%e3%83%a1%e3%83%a2%e3%81%9d%e3%81%ae%ef%bc%93%e3%83%bbelisp%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/b.babukako.com\/?p=300","title":{"rendered":"emacs\u30e1\u30e2\u305d\u306e\uff13\u30fbelisp\u6b63\u898f\u8868\u73fe\u7de8"},"content":{"rendered":"<p>10000HIT\u3064\u3044\u3067\u306b\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u306a\u304c\u3081\u3066\u305f\u3089\u3001\u300cemacs redo\u300d\u306e\u691c\u7d22\u3067\u6765\u3066\u308b\u4eba\u304c\u3084\u3051\u306b\u591a\u3044\u2026<br \/>\u3068\u601d\u3063\u305f\u3089\u300cemacs redo\u300d\u300cemacs undo redo\u300d\u3067Google\u3067\u3082Yahoo\u3067\u30821\u30da\u30fc\u30b8\u76ee\u306b\u8868\u793a\u3055\u308c\u3066\u308b\u3088\u03a3(\uffe3\u25a1\uffe3\uff1b<br \/>\u3046\u308f\u308f\u308f\u308f\u3002\u306a\u3093\u3068\u3044\u3046SEO\u3002\u305d\u3093\u306a\u305f\u3044\u3057\u305f\u3053\u3068\u66f8\u3044\u3066\u306a\u304f\u3066\u307b\u3093\u3068\u3059\u3093\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u601d\u3044\u51fa\u3057\u305f\u304b\u306e\u3088\u3046\u306bemacs\u30e1\u30e2\u7b2c\uff13\u56de\u3067\u3059\u3002<br \/>\u4eca\u56de\u306f\u3061\u3087\u3063\u3074\u308a\u30de\u30cb\u30a2\u30c3\u30af\u306b\u6b63\u898f\u8868\u73fe\u306e\u8a71\u3067\u3082\u3002<br \/>\u4f8b\u306b\u3088\u3063\u3066\u8208\u5473\u306a\u3044\u4eba\u306f\u30b9\u30eb\u30fc\u63a8\u5968\uff06\u4e0a\u7d1a\u8005\u306e\u30c4\u30c3\u30b3\u30df\u6b53\u8fce\u3067\u3059\u3088\uff01<\/p>\n<p>\u203b\u4ee5\u4e0b\u3001&quot;\uff3c&quot; \u306f\u534a\u89d2\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5\uff08\u3082\u3057\u304f\u306f\uffe5\u30de\u30fc\u30af\uff09\u3092\u3042\u3089\u308f\u3057\u307e\u3059\u3002<\/p>\n<h4><a name=\"p0\">EmacsLisp\u306e\u6b63\u898f\u8868\u73fe\u304c\u3084\u3084\u3053\u3057\u3044\u7406\u7531<\/a><\/h4>\n<p>perl\u3068\u304b\u306e\u6b63\u898f\u8868\u73fe\u306b\u6163\u308c\u3066\u3044\u308b\u4eba\u304b\u3089\u898b\u308b\u3068\u3001\u3068\u306b\u304b\u304f\u306a\u3093\u3060\u304b\u3084\u305f\u3089\u3068\u30a8\u30b9\u30b1\u30fc\u30d7\u3055\u305b\u3089\u308c\u308b\u3001\u3068\u3044\u3046\u306e\u304c\u7b2c\u4e00\u5370\u8c61\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3063\u3066\u3044\u3046\u304b\u79c1\u306f\u305d\u3046\u3067\u3057\u305f\u3002<br \/>\u5177\u4f53\u7684\u306b\u306f\u3001\u30b0\u30eb\u30fc\u30d7\u5316\u3092\u3042\u3089\u308f\u3059 &quot;( .. )&quot; \u3084\u9078\u629e\u3092\u3042\u3089\u308f\u3059 &quot;|&quot; \u304c\u3001elisp\u3067\u306f &quot;\uff3c(.. \uff3c)&quot; \u3060\u306e &quot;\uff3c|&quot;\u3060\u306e\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\u3046\u3093\u3002\u305d\u308c\u3060\u3051\u3067\u3082\u5341\u5206\u3081\u3093\u3069\u3044\u3067\u3059\u306d\u3002<br \/>\u304f\u308f\u3048\u3066\u3001elisp\u306e\u6b63\u898f\u8868\u73fe\u306f\u6587\u5b57\u5217\u3068\u3057\u3066\u8a18\u8ff0\u3055\u308c\u3001\u95a2\u6570\u306b\u6e21\u3055\u308c\u308b\u524d\u306b\u4e00\u5ea6\u8a55\u4fa1\u3055\u308c\u308b\u3068\u3044\u3046\u3081\u3093\u3069\u304f\u3055\u3044\u4ed5\u69d8\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\u305f\u3068\u3048\u3070<\/p>\n<pre> (re-search-forward &quot;\uff3c\uff3c\uff3c\uff3c&quot;)\n<\/pre>\n<p>\u3068\u66f8\u304f\u3068\u3001&quot;\uff3c\uff3c\uff3c\uff3c&quot; \u306f\u4e00\u5ea6\u8a55\u4fa1\u3055\u308c\u3066 &quot;\uff3c\uff3c&quot; \u3068\u306a\u3063\u3066\u304b\u3089 re-search-forward \u306b\u6e21\u3055\u308c\u307e\u3059\u3002\u3067\u3001\u3053\u308c\u306f\u6b63\u898f\u8868\u73fe\u4e2d\u3067\u306f &quot;\uff3c&quot; \u3092\u3042\u3089\u308f\u3057\u307e\u3059\u3088\u3001\u3068\u3002<br \/>\u305d\u3046\u3001&quot;\uff3c&quot; \u3092\u8868\u73fe\u3059\u308b\u306e\u306b &quot;\uff3c\uff3c\uff3c\uff3c&quot; \u3063\u3066\u66f8\u304b\u306a\u304d\u3083\u3044\u3051\u306a\u3044\u3093\u3067\u3059\u3088\u3002\u3069\u3093\u3060\u3051\u30fc\u3002<br \/>\u540c\u69d8\u306b\u3001&quot;foo&quot; \u307e\u305f\u306f &quot;bar&quot; \u306b\u30de\u30c3\u30c1\u3055\u305b\u3088\u3046\u3068\u601d\u3046\u3068\u3001<\/p>\n<pre> \uff3c\uff3c(foo\uff3c\uff3c|bar\uff3c\uff3c)\n<\/pre>\n<p>\u3067\u3059\u3088\u3002\u306a\u3093\u306e\u3044\u3084\u304c\u3089\u305b\u3067\u3059\u304b\u3002\u7d20\u76f4\u306b &quot;(foo|bar)&quot; \u3063\u3066\u66f8\u304b\u305b\u3066\u304f\u308c\u3088\u2026<\/p>\n<h4><a name=\"p1\">re-builder\u3079\u3093\u308a<\/a><\/h4>\n<p>\u6b63\u898f\u8868\u73fe\u66f8\u3044\u3066\u307f\u305f\u3051\u3069\u3053\u308c\u3067\u6b63\u3057\u3044\u306e\u304b\u308f\u304b\u3093\u306d\u30fc\u3088\uff01\u3063\u3066\u304b\u3053\u308c\u4f55\u306b\u30de\u30c3\u30c1\u3059\u308b\u3093\u3060\u3088\uff01<br \/>\u3063\u3066\u3044\u3046\u3068\u304d\u306f M-x re-builder \u30aa\u30b9\u30b9\u30e1\u3002<br \/>\u6b63\u898f\u8868\u73fe\u304c\u6587\u7ae0\u4e2d\u306e\u3069\u306e\u90e8\u5206\u306b\u30de\u30c3\u30c1\u3059\u308b\u304b\u6559\u3048\u3066\u304f\u308c\u308b\u3002\u6587\u6cd5\u7684\u306b\u307e\u3061\u304c\u3063\u305f\u6b63\u898f\u8868\u73fe\u66f8\u3044\u3066\u305f\u3089\u5fe0\u544a\u3057\u3066\u304f\u308c\u308b\u3002\u3079\u3093\u308a\u3002<\/p>\n<h4><a name=\"p2\">\u3061\u306a\u307f\u306b<\/a><\/h4>\n<p>C-u C-s \u3068\u304b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u6b63\u898f\u8868\u73fe\u3092\u5165\u529b\u3059\u308b\u3068\u304d\u306f\u5165\u529b\u306f\u8a55\u4fa1\u3055\u308c\u305a\u305d\u306e\u307e\u307e\u95a2\u6570(\u30b3\u30de\u30f3\u30c9)\u306b\u6e21\u3055\u308c\u308b\u3089\u3057\u3044\u3002<br \/>\u3059\u306a\u308f\u3061\u3001&quot;foo&quot; \u307e\u305f\u306f &quot;bar&quot; \u306a\u3089<\/p>\n<pre> \uff3c(foo\uff3c|bar\uff3c)\n<\/pre>\n<p>\u3067\u3088\u3044\u3068\u3002<br \/>\u3053\u308c\u6c17\u3065\u304b\u306a\u3044\u3068\u30cf\u30de\u308a\u307e\u3059(\u30cf\u30de\u308a\u307e\u3057\u305f)\u3002<\/p>\n<p>\u3068\u3044\u3046\u304b\u666e\u6bb5\u6b63\u898f\u8868\u73fe\u4f7f\u3046\u306e\u3063\u3066\u307b\u3068\u3093\u3069\u306f\u30b3\u30de\u30f3\u30c9\u304b\u3089\u3060\u3088\u306d\u3002<br \/>\u6b63\u898f\u8868\u73fe\u3067\u306e\u7f6e\u63db\uff08query-replace-regexp\uff09\uff08C-M-%\uff09\uff08\u2190\u3069\u3046\u304c\u3093\u3070\u3063\u3066\u3082\u7247\u624b\u3067\u306f\u62bc\u305b\u306a\u3044\uff09\u3042\u305f\u308a\u306f\u4f7f\u3044\u3060\u3059\u3068\u3084\u3081\u3089\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u306a\u3093\u3060\u304b\u3093\u3060\u3044\u3063\u3066\u4f7f\u3044\u3053\u306a\u305b\u308c\u3070\u304b\u306a\u308a\u8907\u96d1\u306a\u30c6\u30ad\u30b9\u30c8\u51e6\u7406\u3082\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229\u306a\u3093\u3067\u3059\u3088(\u30d5\u30a9\u30ed\u30fc)<\/p>\n<h4><a name=\"p3\">\u3069\u3046\u3067\u3082\u3044\u3044\u3067\u3059\u304c<\/a><\/h4>\n<p>&quot;\uff3c(.. \uff3c)&quot; \u3063\u3066\u3044\u3046\u306e\u304c\u306a\u3093\u304b\u9854\u6587\u5b57\u3063\u307d\u304f\u3066\u53ef\u611b\u3044\u3002\u300c\u7f6e\u3044\u3068\u3044\u3066\u300d\u307f\u305f\u3044\u306a\u3002<\/p>\n<h4><a name=\"p4\">\u53c2\u8003<\/a><\/h4>\n<p><a href=\"http:\/\/www.bookshelf.jp\/texi\/elisp-manual\/21-2-8\/jp\/elisp_34.html#SEC551\" target=\"_blank\">GNU Emacs Lisp\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb: \u63a2\u7d22\u3068\u4e00\u81f4<\/a><\/p>\n<hr>\n<ul>\n<li>C-M-% \u3001\u9811\u5f35\u3063\u3066\u7247\u624b\u3067\u62bc\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3067\u3082 ESC \u3092\u4f7f\u3048\u3070\u9811\u5f35\u308b\u5fc5\u8981\u3082\u7121\u3044\u3067\u3059\u306d\u3002 &#8211; Riso (2008\u5e7409\u670827\u65e5 23\u664227\u520631\u79d2)\n<li>\u3042\u308c\u2026Ctrl+Shift+5\u306e\u6642\u70b9\u3067\u304d\u3063\u3064\u3044\u79c1\u306f\u4eba\u5dee\u3057\u6307\u304c\u77ed\u3044\u3067\u3059\u304b\u305d\u3046\u3067\u3059\u304b\u2026\u3002Ctrl\u3068Shift\u3092\u5c0f\u6307\u3067\u307e\u3068\u3081\u62bc\u3057\u3059\u308c\u3070\u3044\u3051\u308b\u304b\u3002 &#8211; B\uff20\u7ba1\u7406\u4eba (2008\u5e7409\u670828\u65e5 09\u664242\u520640\u79d2)\n<li>\u62ec\u5f27\u7cfb\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3059\u308b\u306e\u3063\u3066\u3001\u6614\u306a\u304c\u3089\u306eUNIX\u306e\u6b63\u898f\u8868\u73fe\u304c\u305d\u3046\u306a\u3093\u3060\u306d\u3002\u3067\u3001POSIX\u306e\u62e1\u5f35\u6b63\u898f\u8868\u73fe\u3067\u8981\u3089\u306a\u304f\u306a\u3063\u305f\u3089\u3057\u3044\u3088\u3002\uff08<a href=\"http:\/\/ja.wikipedia.org\/wiki\/%E6%AD%A3%E8%A6%8F%E8%A1%A8%E7%8F%BE\">http:\/\/ja.wikipedia.org\/wiki\/%E6%AD%A3%E8%A6%8F%E8%A1%A8%E7%8F%BE<\/a>\uff09\u305d\u308c\u306b\u3057\u3066\u3082\u3001\u30ed\u30b1\u30fc\u30eb\u306b\u3088\u3063\u3066\u300c[a-z] \u3067\u306f\u3059\u3079\u3066\u306e\u5c0f\u6587\u5b57\u306e\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\u300d\u3063\u3066\u3044\u3046\u306e\u306f\u3069\u3046\u306a\u3093\u3060\u3002\u3053\u306e\u524d\u306eutf8\u30d5\u30e9\u30b0\u4ee5\u964d\u306eperl\u306e\\w\u306e\u6271\u3044\u3082\u3069\u3046\u304b\u3068\u601d\u3063\u305f\u3051\u3069\u3002\u53b3\u5bc6\u306b\u6307\u5b9a\u3057\u305f\u3051\u308c\u3070[abcdefg&#8230;.]\u3063\u3066\u66f8\u3051\u3063\u3066\u304b\uff01\uff1f &#8211; \u308a\u3046\u306e (2008\u5e7410\u670811\u65e5 23\u664253\u520639\u79d2)\n<li>\u3078\u3047\u3078\u3047\u3078\u3047\u3002sed\u3068\u304b\u3067\u3082\u65e7\u5f0f\u8868\u73fe\u4f7f\u3046\u306e\u304b\u2026\u3002\u591a\u8a00\u8a9e\u5bfe\u5fdc\u306f\u307b\u3093\u3068\u306b\u3082\u3046\u306a\u3093\u3068\u3044\u3046\u304b\u65e5\u672c\u8a9e\u570f\u306b\u751f\u307e\u308c\u305f\u3053\u3068\u3092\u6068\u307e\u3056\u308b\u3092\u3048\u306a\u3044(-_-) &#8211; B\uff20\u7ba1\u7406\u4eba (2008\u5e7410\u670812\u65e5 09\u664209\u520639\u79d2)\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>10000HIT\u3064\u3044\u3067\u306b\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u306a\u304c\u3081\u3066\u305f\u3089\u3001\u300cemacs redo\u300d\u306e\u691c\u7d22\u3067\u6765\u3066\u308b\u4eba\u304c\u3084\u3051\u306b\u591a\u3044\u2026\u3068\u601d\u3063\u305f\u3089\u300cemacs redo\u300d\u300cemacs undo redo\u300d\u3067Google\u3067\u3082Yahoo\u3067\u30821\u30da\u30fc\u30b8\u76ee\u306b\u8868 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-300","post","type-post","status-publish","format-standard","hentry","category-emacs"],"_links":{"self":[{"href":"https:\/\/b.babukako.com\/index.php?rest_route=\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b.babukako.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.babukako.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.babukako.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.babukako.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=300"}],"version-history":[{"count":0,"href":"https:\/\/b.babukako.com\/index.php?rest_route=\/wp\/v2\/posts\/300\/revisions"}],"wp:attachment":[{"href":"https:\/\/b.babukako.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.babukako.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.babukako.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}