{"id":501,"date":"2011-03-21T21:39:43","date_gmt":"2011-03-21T13:39:43","guid":{"rendered":"http:\/\/www.hawkwithwind.net\/blog\/?p=501"},"modified":"2011-03-21T21:47:09","modified_gmt":"2011-03-21T13:47:09","slug":"emacs-cygwin-fail","status":"publish","type":"post","link":"https:\/\/www.hawkwithwind.net\/blog\/2011\/03\/21\/emacs-cygwin-fail\/","title":{"rendered":"emacs + cygwin fail"},"content":{"rendered":"<p>\u771f\u90c1\u95f7\u554a\uff0c\u88c5\u4e86cygwin\u8fd8\u6ca1\u600e\u4e48\u597d\u597d\u73a9\u8fc7\u3002\u6700\u8fd1\u56e0\u4e3a\u62c6\u673a-\u91cd\u88c5\u7cfb\u7edf\uff0c\u6682\u65f6\u6ca1\u88c5linux\uff0c\u5c31\u60f3\u7740\u4e5f\u6478\u7d22\u6478\u7d22cygwin\uff0c\u7ed3\u679c\u4e0a\u6765\u5c31\u7ed9\u6211\u96be\u9898\u3002\u3002<br \/>\nxemacs\u4e0d\u592a\u4f1a\u7528\uff0c\u5173\u952e\u662f\u8c8c\u4f3c\u51fd\u6570\u540d\u4ec0\u4e48\u7684\u90fd\u53d8\u6389\u4e86\uff0c\u914d\u7f6e\u6587\u4ef6\u8fd8\u8981\u91cd\u65b0\u5199\uff1f\u9ebb\u70e6\u554a\u3002<br \/>\n\u4e8e\u662femacs\u6709\u4ec0\u4e48\u95ee\u9898\u5462\uff1f<br \/>\n\u5c45\u7136ctrl-c \u662f\u9ed8\u8ba4\u7ed1\u5b9a\u5230ctrl-g\u4e0a\u9762\u53bb\u4e86\u3002\u3002\u6240\u4ee5\u600e\u4e48\u9000\u51faemacs\u554aC x C c\u554a\u3002<br \/>\n\u67e5\u4e86\u67e5\u8d44\u6599\uff0c\u539f\u6765\u8fd9\u4e2a\u95ee\u989804\u5e74\u5c31\u6709\u4eba\u5728\u95ee\u4e86\u3002\u771f\u7684\u6ca1\u6709\u89e3\u5417\u3002\u3002<\/p>\n<p><a href=\"http:\/\/cygwin.com\/ml\/cygwin\/2004-03\/msg00459.html\">cygwin&#8217;s emacs<\/a><\/p>\n<p>\u8fd9\u91cc\u8f6c\u8f7d\u4e00\u4e0b\u5185\u5bb9\uff1a<\/p>\n<blockquote>\n<pre>\r\n>On Tue, Mar 09, 2004 at 10:46:47PM -0500, George Hester wrote:\r\n>>I go into emacs easy enough.  I start cygwin and type emacs and there I\r\n>>am in emacs.  The directions say to exit type C-x C-c where C is the\r\n>>control key.  I am assuming that is the left control key.  So I hold\r\n>>down the left control key and type x.  I get a C-x in the lower bottom\r\n>>of the window.  I then try C-c which is holding down the left control\r\n>>key and hitting the c key.  Nothing.  Justy a ding.  In fact I casnnot\r\n>>exit from emacs at all.  Does anyone have a way of exiting from emacs\r\n>>which works?  Thanks.\r\n>\r\n>Either set the environment variable CYGWIN=tty prior to running any\r\n>cygwin program or run emacs under rxvt.  CTRL-C is not remappable in\r\n>the normal cygwin console due to windows constraints.\r\n\r\n2 more options:\r\n1. Run emacs under the X-Windows server.\r\n2. Use \"M-x kill-emacs\", which is either:\r\n\ta. Hit the key ALT-x, then type \"kill-emacs\", then hit the key ENTER.\r\n\tb. Hit the key ESCAPE, then hit the key x, then type \"kill-emacs\", then hit the key ENTER.\r\n\r\n-Richard Campbell.\r\n<\/pre>\n<\/blockquote>\n<p>\u597d\u5427\uff0c\u6240\u4ee5\u7ed3\u679c\u8fd8\u662f\u53ef\u4ee5\u63a5\u53d7\u7684\u3002\u53cd\u6b63emacs\u4e00\u822c\u4e5f\u5c31\u662f\u4e00\u76f4\u5f00\u7740\u4ed6\u4e86\u3002\u5c31\u8ba9\u4ed6tty\u8bbe\u5b9a\u8fc7\u53bb\u4e5f\u65e0\u6240\u8c13\u5427\u3002<\/p>\n<p>&lt;\u7f16\u8f91&gt;<br \/>\n\u540e\u6765\u53c8\u53d1\u73b0\u8fd9\u4e2a\u7f51\u7ad9\uff0c\u7ed9\u4e86\u4e00\u4e2a\u66f4\u597d\u7684\u89e3\u51b3\u65b9\u6848\uff5e\uff5e<br \/>\n<a href=\"http:\/\/sites.google.com\/site\/bibojiang\/cygwin\">Cygwin<\/a><\/p>\n<blockquote>\n<pre>\r\nCygwin\u4e0b\u7684Emacs\u4e0d\u80fd\u9000\u51fa\u7684\u95ee\u9898\r\nXemacs\u5c31\u6ca1\u6709\u8fd9\u4e2a\u95ee\u9898\r\n \r\n\u9700\u8981\u5728cygwin.bat\u91cc\u9762\u52a0\u8fdb\uff1a\r\n@echo off\r\nset CYGWIN=binmode tty ntsec   #\u52a0\u8fdb\u8fd9\u53e5\u8bddEmacs\u5c31\u80fd\u6b63\u5e38\u9000\u51fa\u4e86\r\ng:\r\nchdir g:\\cygwin\\bin           #$PATH\/Cygwin\/bin\/\r\nbash --login -\r\n<\/pre>\n<\/blockquote>\n<p>\u95ee\u9898\u89e3\u51b3\uff5e\uff5e<br \/>\n&lt;\/\u7f16\u8f91&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u771f\u90c1\u95f7\u554a\uff0c\u88c5\u4e86cygwin\u8fd8\u6ca1\u600e\u4e48\u597d\u597d\u73a9\u8fc7\u3002\u6700\u8fd1\u56e0\u4e3a\u62c6\u673a-\u91cd\u88c5\u7cfb\u7edf\uff0c\u6682\u65f6\u6ca1\u88c5linux\uff0c\u5c31\u60f3\u7740\u4e5f\u6478\u7d22\u6478\u7d22cygwin\uff0c\u7ed3\u679c\u4e0a\u6765\u5c31\u7ed9\u6211\u96be\u9898\u3002\u3002 xemacs\u4e0d\u592a\u4f1a\u7528\uff0c\u5173\u952e\u662f\u8c8c\u4f3c\u51fd\u6570\u540d\u4ec0\u4e48\u7684\u90fd\u53d8\u6389\u4e86\uff0c\u914d\u7f6e\u6587\u4ef6\u8fd8\u8981\u91cd\u65b0\u5199\uff1f\u9ebb\u70e6\u554a\u3002 \u4e8e\u662femacs\u6709\u4ec0\u4e48\u95ee\u9898\u5462\uff1f \u5c45\u7136ctrl-c \u662f\u9ed8\u8ba4\u7ed1\u5b9a\u5230ctrl-g\u4e0a\u9762\u53bb\u4e86\u3002\u3002\u6240\u4ee5\u600e\u4e48\u9000\u51faemacs\u554aC x C c\u554a\u3002 \u67e5\u4e86\u67e5\u8d44\u6599\uff0c\u539f\u6765\u8fd9\u4e2a\u95ee\u989804\u5e74\u5c31\u6709\u4eba\u5728\u95ee\u4e86\u3002\u771f\u7684\u6ca1\u6709\u89e3\u5417\u3002\u3002 cygwin&#8217;s emacs \u8fd9\u91cc\u8f6c\u8f7d\u4e00\u4e0b\u5185\u5bb9\uff1a >On Tue, Mar 09, 2004 at 10:46:47PM -0500, George Hester wrote: >>I go into emacs easy enough. I start cygwin and type emacs and there I >>am in emacs. The directions say to exit type C-x C-c where C is the >>control key. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[53,54,49],"class_list":["post-501","post","type-post","status-publish","format-standard","hentry","category-18","tag-cygwin","tag-emacs","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/comments?post=501"}],"version-history":[{"count":4,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/501\/revisions"}],"predecessor-version":[{"id":504,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/501\/revisions\/504"}],"wp:attachment":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/media?parent=501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/categories?post=501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/tags?post=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}