Mercurial > emacs
annotate etc/tutorials/TUTORIAL.zh @ 105181:5d1a87e2a233
Don't require speedbar.
(gdb-jsonify-buffer): Handle case where "=" is part of value string.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Thu, 24 Sep 2009 12:30:08 +0000 |
parents | c90853557b90 |
children | 1d1d5d9bd884 |
rev | line source |
---|---|
82726
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1 Emacs 快速指南(. |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
2 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
3 Emacs 指令通常包含有 CONTROL 鍵(有時候以 CTRL 或 CTL 來標示)或是 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
4 META 鍵(有時候以 EDIT 或 ALT 來標示)。為了避免每一次都要寫出其全名, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
5 我們將會使用下述的縮寫: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
6 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
7 C-<chr> 表示當鍵入字元 <chr> 時 按住 CONTROL 鍵。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
8 因此,C-f 就是:按住 CONTROL 鍵再鍵入 f 。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
9 M-<chr> 表示當鍵入字元 <chr> 時 按住 META 或 EDIT 或 ALT 鍵。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
10 如果沒有 META 、 EDIT 或 ALT 鍵時,則可以用 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
11 「按一下 ESC 鍵然後放開,再鍵入 <chr> 的步驟」 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
12 來作為替代。我們以 <ESC> 來表示 ESC 鍵。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
13 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
14 重要備忘錄:要離開 Emacs 作業階段( session ),鍵入 C-x C-c (兩個字 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
15 元)。位在左側邊界的「>>」字元是讓您可以試著使用的指令的提示。舉例來說: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
16 <<Blank lines inserted around following line by help-with-tutorial>> |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
17 [Middle of page left blank for didactic purposes. Text continues below] |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
18 >> 現在鍵入 C-v ( View next screen )以移到下個螢幕。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
19 (試試看,鍵入字元 v 時,按住 CONTROL 鍵) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
20 從現在開始,您應該在每次閱讀完目前的螢幕時做一次這個動作。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
21 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
22 要注意的是,當您從一個螢幕移到另一個時,中間會有兩行重複;這樣做是為了 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
23 提供一些連續性,讓您可以接續地閱讀文字。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
24 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
25 您需要知道的第一件事是如何在文字中移動。您已經知道了可以 C-v 來向前移 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
26 動一個螢幕。要向後移動一個螢幕,則鍵入 M-v (按住 META 鍵,然後鍵入 v |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
27 ,或是如果您沒有 META 、 EDIT 或 ALT 鍵時鍵入 <ESC>v )。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
28 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
29 >> 試著鍵入 M-v 然後 C-v ,連續個幾次。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
30 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
31 【現在您可以 C-v 指令移到後面「翻譯」一節,以取得關於本文的翻譯相關事 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
32 項;然後以 M-v 指令回到這裡。】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
33 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
34 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
35 * 摘要( SUMMARY ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
36 ------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
37 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
38 以下的指令在檢閱螢幕時相當有用:【我們現在以「螢幕」來表示「顯示檔案內 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
39 容的區域」,因為目前是處在 Emacs 中的單窗格( window )顯示狀態,如果 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
40 是在多窗格的狀態下,這裡所介紹的指令則作用在「工作中的窗格」。有關於窗 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
41 格的介紹,請見窗格( windows )一節。】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
42 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
43 C-v 向前移動一個螢幕/窗格 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
44 M-v 向後移動一個螢幕/窗格 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
45 C-l 清除螢幕/窗格,再重新顯示所有文字, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
46 游標所在位置會顯示於螢幕/窗格的中央。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
47 (是 CONTROL-L 而不是 CONTROL-1 ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
48 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
49 >> 找出游標的位置,並注意其附近的文字為何。然後鍵入 C-l 。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
50 再次找出游標的位置,確認一下相同的文字現在也位在其附近。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
51 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
52 如果您的終端機有 PageUp 與 PageDn 鍵的話,您也可以使用它們來以螢幕為單 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
53 位地移動,但是使用 C-v 和 M-v 會比較有效率。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
54 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
55 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
56 * 基本的游標控制( BASIC CURSOR CONTROL ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
57 ------------------------------------------ |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
58 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
59 螢幕到螢幕的移動是很有用,但是您如何移動到位於螢幕內文字中的特定位置呢? |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
60 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
61 有幾種方式可以進行。您可以使用方向鍵,但是將您的手放在標準的〔鍵盤〕位 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
62 置,並且使用指令 C-p 、 C-b 、 C-f 和 C-n 將比較有效率。這些字元和四個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
63 方向鍵〔的功能〕是同等的,如下所示: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
64 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
65 前一行 C-p |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
66 : |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
67 : |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
68 向後移 C-b .... 目前游標位置 .... 向前移 C-f |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
69 : |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
70 : |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
71 後一行 C-n |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
72 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
73 >> 以 C-n 或 C-p 將游標移到圖形的中央。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
74 鍵入 C-l 會看到整個圖形顯示在螢幕的中央。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
75 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
76 您會發現用字母所代表的意義來記憶它們很容易:P 表示 previous 、 N 表示 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
77 next 、 B 表示 backward 、而 F 則表示 forward 。您將「總是」用到這些游 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
78 標移動指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
79 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
80 >> 按幾次 C-n 把游標往下移動到這行。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
81 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
82 >> 按幾次 C-f 往前移到這行,然後再以 C-p 往後移動。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
83 看看當游標在本行中央時,C-p 的動作是怎樣。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
84 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
85 每一個文字行都以一個 Newline 字元作為結束,它是用來與下一行作為分別。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
86 在您檔案中的最後一行應該要有一個 Newline 來作為結束(但是 Emacs 並不一 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
87 定需要它來編輯檔案)。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
88 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
89 >> 試著在一行開始的地方鍵入 C-b 。結果應該會移動到前一行的最後面。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
90 這是因為它往後移動時越過了 Newline 字元。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
91 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
92 C-f 也可以和 C-b 一樣地越過 Newline 字元。【Newline 字元是「不可見 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
93 ( invisible )字元」,在編輯器中一般看不到它,這裡只是告訴您:在行首 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
94 再往前走,那麼游標會跑到前一行(如果有前一行的話);在行尾再往後走,那 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
95 麼游標會跑到後一行(如果有後一行的話)。「越過 Newline 字元」會讓游標 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
96 跑到另外一行。】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
97 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
98 >> 多按幾次 C-b,自己感覺一下游標在哪。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
99 然後按幾次 C-f 回到這行的尾巴。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
100 再按一次 C-f 就可以移到下一行了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
101 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
102 當您移動游標穿越螢幕的上方或下方時,在邊界外的文字會移位進入螢幕內。這 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
103 稱為「捲動」。它讓 Emacs 可以將游標移動到文字中的任意特定位置,同時 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
104 (游標)不會跑出螢幕外。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
105 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
106 >> 試著以 C-n 將游標越過螢幕下方,然後看看發生了什麼事。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
107 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
108 如果一個字元一個字元地移動太慢的話,您可以一個字一個字地移動。M-f |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
109 (META-f) 往前移動一個字,M-b 則往後移動一個字。【對中文來說,則是移動 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
110 到下一個或下一個標點符號的所在。】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
111 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
112 >> 鍵入一些 M-f 和 M-b。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
113 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
114 當您在一個字的中間時,M-f 會移動到這個字的尾巴。當您在字與字間的空白時, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
115 M-f 會移動到下一個字的尾巴。M-b 的效果相似,只是方向不同。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
116 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
117 >> 按幾次 M-f 和 M-b,中間夾雜一些 C-f 和 C-b, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
118 這樣子您就可以觀察 M-f 和 M-b 在各種「位在字間或字元間」 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
119 的不同位置,所表現出來的行為。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
120 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
121 請注意 C-f 、 C-b 和 M-f 、 M-b 兩對之間的相似性。「經常」的狀況是: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
122 META 字元是用來作為與「以語言定義出的單位(字、句子、段落)」有關的操 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
123 作,而 CONTROL 字元則是作用在「與您所編輯無關的『基本』單位(字元或行 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
124 等)」上。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
125 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
126 這個相似性在「行與句子」之間也同樣適用:C-a 和 C-e 會將游標移動到「一 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
127 行」的 開始和結尾處,而M-a 和 M-e 則將游標移動到「一句」的 開始和結尾 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
128 處。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
129 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
130 >> 試著按兩次 C-a,再按兩次 C-e。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
131 試著按兩次 M-a,再按兩次 M-e。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
132 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
133 看一下為什麼重複的 C-a 指令會沒有作用,而重複的 M-a 指令則繼續移動到下 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
134 一個句子。雖然這並不能說是完全類比,但是其中每個指令的行為看起來都十分 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
135 自然。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
136 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
137 游標在文字中的位置也可以稱作「點位( point )」。簡單來說就是:游標表 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
138 現出螢幕中「點位」所在的文字位置。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
139 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
140 這裡是一些簡單「游標移動( cursor-moving )操作」的整理,其中也包括了 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
141 「字和句」的移動指令: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
142 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
143 C-f 往前移動一個字元 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
144 C-b 往回移動一個字元 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
145 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
146 M-f 往前移動一個字【中文是移動到下一個標點符號】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
147 M-b 往回移動一個字【中文是移動到上一個標點符號】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
148 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
149 C-n 移動到下一行 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
150 C-p 移動到上一行 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
151 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
152 C-a 移動到行首 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
153 C-e 移動到行尾 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
154 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
155 M-a 移回句首 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
156 M-e 移到句尾 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
157 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
158 >> 練習幾次這些指令。這些都是最常使用到的指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
159 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
160 還有兩個重要的游標動作( cursor-motion )指令,M-<( META Less-than ), |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
161 移動到文字的最開始,以及M->( META Greater-than ),移動到文字的最後。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
162 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
163 在大部份的終端機,「<」是在 comma 上方,所以您必須要使用 shift 鍵來鍵 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
164 入。在這些終端機上,您必須使用 shift 鍵來鍵入 M-<;沒有使用 shift 鍵, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
165 您就變成鍵入 M-comma 了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
166 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
167 >> 現在試一下 M-< ,移到本快速指南的最開始。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
168 然後再重複地使用 C-v 回到這裡。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
169 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
170 >> 現在試一下 M-> ,移到本快速指南的最後。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
171 然後再重複地使用 M-v 回到這裡。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
172 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
173 如果您的終端機有方向鍵的話,您也可以用方向鍵移動游標。我們有三個理由建 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
174 議您學習 C-b 、 C-f 、 C-n 、 和 C-p :(1) 任何的終端機都能使用。(2) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
175 一旦您使用 Emacs 相當熟練了,您會發現鍵入這些 CONTROL 字元,比起使用方 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
176 向鍵快多了(因為您不需要將手移開打字區)。(3) 一旦您使用這些 CONTROL |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
177 字元指令成為習慣,您也可以很容易地學會其他進階的游標動作指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
178 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
179 大部份的 Emacs 指令接受數字參數;對大部份的指令而言,它的作用是指定重 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
180 複次數。您要指定一個指令的重複次數的作法是:先鍵入 C-u,然後在您鍵入指 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
181 令前,鍵入代表重複次數的數位。如果您有一個 META(或 EDIT 或 ALT )鍵, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
182 那麼您還有另外一個替代作法來輸入數字參數:按住 META 鍵時打入這數字。我 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
183 們建議您學習 C-u 的方法,因為它在任何終端機都可以使用。此一數字參數也 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
184 稱作為「字首參數」,因為您在這參數所作用到的指令前鍵入它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
185 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
186 舉例來說, C-u 8 C-f 向前移動 8 個字元。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
187 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
188 >> 試著以一個數字參數來使用 C-n 或 C-p, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
189 只一個指令就將游標移動到這行的附近。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
190 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
191 大部份的指令使用數字參數來作為其重複次數,但是其中有些指令則是作為其他 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
192 用途。有幾個指令(目前您尚未學到)將它作為旗標 -- 以一個字首參數的型態 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
193 出現,而不管其值為何,它們讓這指令做些不一樣的事。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
194 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
195 C-v 和 M-v 則是另一類的例外。當給定一個參數時,它們捲動「所指定的數量 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
196 的行(以行為單位)」,而不是以「螢幕」為單位捲動。舉例來說,C-u 8 C-v |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
197 將顯示螢幕捲動 8 行。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
198 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
199 >> 現在試著鍵入 C-u 8 C-v。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
200 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
201 這指令應該已經將螢幕向上移了 8 行。若您想將它再次地向下捲動,您可以在 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
202 執行 M-v 時給定一個參數。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
203 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
204 如果您正在使用 X 視窗系統,在 Emacs 視窗左手側應該有一個稱為「捲動軸」 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
205 的長方型區域。您可以用滑鼠在捲動軸按一下來捲動文字。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
206 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
207 >> 試著在「捲動軸內反白區域上」壓一下中間鈕。這應該會將文字捲動到 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
208 「由您所按一下滑鼠的地方」所決定的位置。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
209 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
210 >> 當按住中間時,試著將滑鼠上下移動。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
211 您會看到文字隨著您移動滑鼠而上下移動。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
212 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
213 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
214 * 當 EMACS 發呆時( WHEN EMACS IS HUNG ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
215 ----------------------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
216 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
217 如果 Emacs 停止回應您的指令,您可以鍵入 C-g 來安全地停止它。您也可以使 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
218 用 C-g 來停止執行過久的指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
219 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
220 您也可以使用 C-g 來取消數字參數或您不想要完成的指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
221 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
222 >> 鍵入 C-u 100 以設定一個 100 的數字參數,然後鍵入 C-g。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
223 現在鍵入 C-f。它應該只會移動一個字元,因為您已經以 C-g |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
224 取消了參數。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
225 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
226 如果您已經不小心地鍵入一個 <ESC>,您可以 C-g 來取消它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
227 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
228 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
229 * 無效化的指令( DISABLED COMMANDS ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
230 ------------------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
231 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
232 有一些 Emacs 指令被「無效化」了,因此初學者不會意外地使用到它們。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
233 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
234 如果您鍵入了某一個無效化的指令,Emacs 會顯示一個訊息,說明這個指令是什 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
235 麼,並且詢問您是否想要繼續,然後執行這指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
236 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
237 如果您真的想要試一下這個指令,那麼在當 Emacs 詢問您時,請鍵入空白。一 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
238 般來說,如果您不想要執行這個無效化的指令,請以『n』來回答它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
239 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
240 >> 鍵入 C-x C-l (這是個無效化的指令) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
241 然後鍵入 n 來回答問題。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
242 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
243 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
244 * 窗格( WINDOWS ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
245 ------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
246 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
247 Emacs 可以有數個窗格,每一個顯示它自己的文字。我們在稍後會解釋如何使用 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
248 多重窗格。現在我們想要解釋如何除去多餘的窗格,然後回到基本的單窗格編輯。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
249 它很簡單: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
250 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
251 C-x 1 One window (即,除去其他所有的窗格)。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
252 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
253 那是個 CONTROL-x 後面跟著數字 1 。C-x 1 將含有游標的窗格擴大到整個螢幕。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
254 它將所有其他的窗格除去。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
255 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
256 >> 移動游標到本行並且鍵入 C-u 0 C-l。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
257 >> 鍵入 CONTROL-h k CONTROL-f。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
258 看看這個窗格在當一個新的窗格出現 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
259 (以顯示有關 CONTROL-f 指令的文件時),它是如何縮小的。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
260 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
261 >> 鍵入 C-x 1 以使文件列表窗格消失。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
262 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
263 這個指令並不像您先前所學過的指令那般,它包括了兩個字元。它是以字元 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
264 CONTROL-x 作為開始。有一整個系列的指令是以 CONTROL-x 作為開始;它們之 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
265 中有許多是與「窗格、檔案、暫存區以及相關事物」有關的。這些指令有 2 、 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
266 3 或 4 個字元長。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
267 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
268 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
269 * 插入與刪除( INSERTING AND DELETING ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
270 ---------------------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
271 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
272 如果您想要插入文字,把它鍵入就是了。您可以看到的字元,像是 A 、 7 、 * |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
273 等,被 Emacs 視為文字並且可以直接插入。鍵入 <Return> |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
274 ( carriage-return 鍵)以插入一個 Newline 字元。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
275 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
276 您可以鍵入 <Delback> 以刪除您最後鍵入的字元。<Delback> 是一個的鍵盤鍵 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
277 -- 就是您通常在 Emacs 外,使用來「刪除您最後鍵入字元」的同一個。一般來 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
278 說是個在 <Return> 上方數行的大鍵,通常標示為『Delete』、『Del』或 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
279 『Backspace』。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
280 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
281 如果在那裡有個標示為『Backspace』的大鍵,那麼那一個就是您使用來作為 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
282 <Delback> 的鍵了。某個地方可能也會有另一個標示為『Delete』的鍵,但那個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
283 並不是 <Delback> 。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
284 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
285 更一般地說, <Delback> 將位於目前游標位置前一個字元加以刪除。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
286 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
287 >> 現在做 -- 鍵入一些字元,然後鍵入幾次 <Delback> 來刪除它們。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
288 不要擔心這個檔案會被更動;您不會影響到原來的快速指南。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
289 (您現在看到的)這一個是您的個人拷貝。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
290 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
291 當一行文字變得比「在窗格中的一行」長時,這一行文字會「接續」到第二行窗 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
292 格行。這時一個反斜線「\」(或如果您使用視窗化的顯示,則是一個小小彎彎 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
293 的箭頭)會位在其右邊界以指出此行接續著。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
294 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
295 >> 插入文字,一直到您達到右邊界,然後再繼續插入。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
296 您會看到一個接續行出現。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
297 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
298 >> 使用 <Delback> 刪除一些文字,直到此行再次成為一個窗格行。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
299 接續行消失了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
300 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
301 您可以像刪除其他字元一樣地刪除 Newline 字元。將位在兩行中的 Newline 字 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
302 元刪除會讓它們合併成為一行。如果合併的結果使這一行太長,以致無法符合窗 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
303 格的寬度,它會以一個接續行來顯示。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
304 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
305 >> 移動游標到本行的開頭並鍵入 <Delback>。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
306 這會將本行與其前一行結合為一行。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
307 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
308 >> 鍵入 <Return> 以重新插入您剛才刪除的 Newline 字元。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
309 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
310 記得大部份的 Emacs 指令都可以給予一個重複計數( repeat count );這也 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
311 包括了文字字元。重複一個文字字元會將它插入數次。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
312 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
313 >> 現在就試一下 -- 鍵入 C-u 8 * 以插入 ********。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
314 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
315 您現在已經學到了「鍵入個什麼東西進 Emacs 以及修正錯誤」的大部份基本方 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
316 法。您也可以「以字或行為單位」地刪除。這裡有份關於「刪除操作」的摘要: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
317 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
318 <Delback> 刪除游標所在的 前一個字元 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
319 C-d 刪除游標所在的 後一個字元 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
320 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
321 M-<Delback> 刪除游標所在的 前一個字 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
322 M-d 刪除游標所在的 後一個字 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
323 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
324 C-k 刪除從游標所在到「行尾」間的字元 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
325 M-k 刪除從游標所在到「句尾」間的字元 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
326 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
327 注意「<Delback> 和 C-d」還有「M-<Delback> 和 M-d」是平行地自 C-f 和 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
328 M-f 擴充出來的(嗯,<Delback> 並不是控制字元,但是沒什麼好擔心的)。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
329 C-k 和 M-k 在某種程度上與 C-e 和 M-e 一樣,如果把「一行」和「一句」作 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
330 為類比的話。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
331 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
332 您也可以只以一種方法來刪除緩衝區內的任何部份,先移動到您想要刪除的部份 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
333 的一端,然後鍵入 C-@ 或 C-SPC (任一個即可)。( SPC 指的是 Space Bar |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
334 )再移到那部份的另一端,接著鍵入 C-w 。這樣就會把介於這兩個位置間的所 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
335 有文字刪除。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
336 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
337 >> 移動游標到上一段開頭的「您」字。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
338 >> 鍵入 C-SPC 。 Emacs 應該會在螢幕的下方顯示一個「Mark set」訊息。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
339 >> 移動游標到第二行中的「端」字。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
340 >> 鍵入 C-w 。這樣會把從「您」開始到剛好「端」之前的文字刪除。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
341 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
342 要注意的是「殺掉( killing )」和「刪除( deleting )」的不同在於被殺 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
343 掉的可以拉回,而被刪除的則不能。【有點難以理解,您可以這麼想:(1)「被 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
344 殺掉的」尚存尸骨,而「被刪除的」則尸骨無存了!可見得對電腦資料來說, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
345 「刪除」比「殺掉」嚴重多了。(2)實際上,就算被刪除了,我們還是有技術可 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
346 以把它救回來,尤其是文字資料,前提是刪除後不能進行實體記憶體的格式化動 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
347 作。但這對於一般使用者而言是不可能的,因此就不考慮這情形了。】重新插入 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
348 被殺掉的文字稱為「拉回( yanking )」。一般而言,可以移除掉很多文字的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
349 指令會把那些文字儲存起來(它們設定成您可以將文字拉回),而那些只是刪除 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
350 一個字元或者只是除去空白行或空白的指令,則不會儲存這些被刪除的文字(因 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
351 此您不能將那文字拉回)。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
352 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
353 >> 移動游標到一非空白行的開始。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
354 然後鍵入 C-k 殺掉在那一行上的文字。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
355 >> 第二次鍵入 C-k。您將會看到它殺掉跟在那一行後面的 Newline 字元。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
356 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
357 請注意單獨的 C-k 會把一行的內容殺掉,而第二個 C-k 則會殺掉那一行本身, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
358 並且使得所有其他的行向上移動。C-k 以很特別的方式來處理數字參數,它會殺 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
359 掉很多行以及它們的內容,這不僅僅是重複而已,C-u 2 C-k 會把兩行以及它們 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
360 的 Newline 字元殺掉;如果只是鍵入 C-k 兩次並不會這樣。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
361 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
362 將被殺掉的文字回復的動作稱為「拉回( yanking )」。(把它想像成您把別 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
363 人從您身上奪去的東西猛力地拉回來)您可以在您刪除文字的地方拉回,也可以 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
364 在文字的其他地方拉回。您可以拉回數次同樣的文字,以製作它的數份拷貝。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
365 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
366 拉回的指令為 C-y。它會在目前游標的位置重新插入最後殺掉的文字。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
367 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
368 >> 試試看;鍵入 C-y 將文字拉回。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
369 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
370 如果您連續地做了數次 C-k,所有被殺掉的文字都會被儲存在一起,因此做一次 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
371 C-y 就會把所有這些行都拉回來。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
372 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
373 >> 現在做一下,鍵入 C-k 數次。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
374 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
375 現在要回復那些殺掉的文字: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
376 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
377 >> 鍵入 C-y。然後把游標往下移動個幾行,再一次鍵入 C-y。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
378 您現在知道如何複製某些文字了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
379 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
380 如果您有一些文字想要拉回來,但是後來您又殺了某些東西,那麼該怎麼做呢? |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
381 C-y 會把最近殺掉的拉回來,但是先前的文字並沒有消失,您可以用 M-y 來回 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
382 到它。當您已經使用 C-y 把最近殺掉的拉回來之後,再鍵入 M-y 來把這些拉回 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
383 來的文字替換為先前所殺掉的。一次又一次地鍵入 M-y 會把先前再先前所殺掉 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
384 的文字帶回來。當您到了您想找的文字時,您不需要做任何事來保存它,只要繼 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
385 續您的編輯,把這些已拉回的文字留在那裡就好。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
386 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
387 如果您 M-y 做了很多次,您可能會回到起始點,也就是最近殺掉的。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
388 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
389 >> 殺掉一行,到處繞繞,再殺掉另一行。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
390 然後用 C-y 將第二次殺掉的那行帶回來。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
391 然後再用 M-y,它將會被第一次殺掉的那行取代。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
392 再做幾次 M-y 看看您會得到什麼。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
393 不間斷地做,直到第二個殺掉行回來,再做個幾次。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
394 如果您想的話,您可以試著給 M-y 正的或是負的參數。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
395 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
396 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
397 * 取消動作( UNDO ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
398 -------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
399 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
400 如果您對文字做了一些改變,後來覺得它是個錯誤,您可以 Undo 指令取消這一 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
401 個改變,C-x u。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
402 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
403 通常 C-x u 會把一個指令所造成的改變取消掉;如果您在一行中重複了許多次 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
404 C-x u,每一個重複都會取消額外的指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
405 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
406 但是有兩個例外: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
407 (1) 沒有改變文字的指令不算(這包括了游標移動的指令還有捲軸指令); |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
408 (2) 自行鍵入的字元以一群一群 -- 每群最多 20 個 -- 來進行處理。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
409 (這是為了減少您在取消「插入文字動作」所必須鍵入 C-x u 的次數) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
410 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
411 >> 以 C-k 將這一行殺掉,然後鍵入 C-x u 後它會再次出現。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
412 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
413 C-_ 是另一個取消指令;它的作用就和 C-x u 一樣,但是在一行中它比較容易 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
414 鍵入許多次。C-_ 的缺點是在某些鍵盤中不太清楚如何鍵入它,這也是為什麼我 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
415 們同時提供 C-x u 的原因。在某些終端機,您可以按住 CONTROL 再鍵入 / , |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
416 來鍵入 C-_。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
417 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
418 一個數字參數對 C-_ or C-x u 來說,是作為重複的次數。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
419 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
420 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
421 * 檔案( FILE ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
422 ---------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
423 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
424 為了使您編輯的文字永久保存,您必須把它放到一個檔案中。不然,當您離開 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
425 Emacs 後,它就會隨之消失。為了把您的文字放在檔案中,您必須在您鍵入這些 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
426 文字前「找( find )」檔案。(這也稱之為「拜訪( visiting )」檔案) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
427 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
428 找一個檔案表示您可以在 Emacs 中看到檔案的內容。從許多方面來看,它就像 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
429 是您直接編輯那個檔案一樣。然而,直到您「儲存」這個檔案之前,您使用 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
430 Emacs 編輯所做出的改變並不會保存下來。這就是為什麼當您不想要時,您可以 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
431 避免留下修改到一半的檔案在系統中。即使當您儲存了,Emacs 也會把原本的檔 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
432 案以一個不同的名稱保留下來,若您稍後覺得您的改變是一個錯誤的話,就可以 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
433 使用它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
434 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
435 在靠近螢幕的下方,您可以看到由破折號開始與結束的一行 -- 通常是以「--:-- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
436 TUTORIAL.zh」或其他類似的東西作為開始。這是螢幕的一部分,通常用來表示 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
437 您正在拜訪的檔案。現在,您正在拜訪的檔案叫做「TUTORIAL.zh」,它是您個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
438 人的拷貝。當您以 Emacs 找出一個檔案時,那個檔案的名字就會出現在那個地 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
439 方。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
440 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
441 關於尋找檔案的指令中,有一個很特別的是,您必須說出這個您想要的檔案名稱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
442 我們說這個指令「從終端機中讀進了一個參數」。(在這個例子中,這參數就是 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
443 檔案的名稱)當您鍵入這個指令後, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
444 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
445 C-x C-f 找一個檔案 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
446 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
447 Emacs 會要您鍵入檔名。您所鍵入的檔名會出現在螢幕的底行。在被用來作為這 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
448 種形式的輸入時,底行被稱為小緩衝區( minibuffer )。您可以使用正常的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
449 Emacs 編輯指令來編輯這個檔名。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
450 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
451 當您正在鍵入檔名時(或是任何的小緩衝區輸入時),您可以用 C-g 這個指令 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
452 來取消它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
453 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
454 >> 鍵入 C-x C-f,然後鍵入 C-g。這會取消小緩衝區, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
455 並且也會取消使用這個小緩衝區的 C-x C-f 指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
456 因此您沒有找任何檔案。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
457 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
458 當您已經鍵入了這個檔名,請鍵入 <Return> 來結束它。然後 C-x C-f 指令就 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
459 會開始運作,並且找到您所選擇的檔案。小緩衝區在當 C-x C-f 指令結束時就 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
460 會消失。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
461 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
462 過了一會兒,檔案的內容就會出現在螢幕,然後您就可以編輯它的內容。當您想 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
463 要您的改變永久保存時,鍵入這個指令: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
464 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
465 C-x C-s 儲存這個檔案 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
466 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
467 這會把在 Emacs 中的文字複製到檔案中。當您第一次做這個動作時,Emacs 會 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
468 將原始的檔案重新命名成一個新的名字,這樣它才不會消失。新的名字通常會加 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
469 入「~」到原始檔案的名字後面。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
470 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
471 當儲存結束時,Emacs 會把寫入檔案的名字列出來。您應該經常地進行儲存,這 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
472 樣子如果系統當機時,您就不會損失太多工作。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
473 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
474 >> 鍵入 C-x C-s 以儲存本快速指南的您的拷貝。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
475 這會把「Wrote ...TUTORIAL.zh」這個訊息顯示在螢幕的下方。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
476 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
477 注意:在某些系統中,鍵入 C-x C-s 將會把螢幕凍結,您將看不到從 Emacs 來 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
478 的任何輸出。這表示作業系統一個稱為「流程控制」的「功能」將 C-s 指令攔 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
479 截住,並且不讓它傳到 Emacs。要取消螢幕的凍結,請鍵入 C-q。然後到 Emacs |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
480 使用手冊中看看對於「漸進式搜尋的同時進入( Spontaneous Entry to |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
481 Incremental Search )」這個主題,以取得處理這個「功能」的建議。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
482 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
483 您可以找出一個已經存在的檔案,然後觀看它或編輯它。您也可以找一個還沒有 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
484 存在過的檔案。這是以 Emacs 建立一個檔案的方法:找這個檔案,就從零開始, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
485 然後開始插入文字到這個檔案中。當您要求「儲存」這個檔案,Emacs 會真的建 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
486 立一個檔案,並把您所插入的文字擺到檔案中。從那時候開始,您就可以當自己 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
487 是在編輯一個已經存在的檔案了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
488 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
489 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
490 * 緩衝區( BUFFER ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
491 -------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
492 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
493 如果您以 C-x C-f「找」第二個檔案,第一個檔案仍然存在 Emacs 內。要切換 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
494 回它,您可以 C-x C-f 再找它一次。依此方式,您可以在 Emacs 內開啟不少檔 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
495 案。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
496 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
497 >> 以鍵入 C-x C-f foo <Return> 的方式建立一個名為「foo」的檔案。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
498 然後插入一些文字,編輯它,然後再以 C-x C-s 儲存「foo」。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
499 最後,鍵入 C-x C-f TUTORIAL.zh <Return> 回到本快速指南。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
500 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
501 Emacs 儲存每個檔案的文字在一個稱為「緩衝區( buffer )」的物件中。找一 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
502 個檔案會在 Emacs 內部建立一個緩衝區。想要看目前存在您的 Emacs 的工作中 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
503 緩衝區列表,鍵入 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
504 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
505 C-x C-b 列出緩衝區 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
506 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
507 >> 現在就試一下 C-x C-b |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
508 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
509 看看每一個緩衝區是如何命名的,它也可能同時擁有一個「儲存其內容的檔案」 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
510 的名稱。您在一個 Emacs 窗格所見到的「任何」文字都是某個緩衝區的一部份。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
511 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
512 >> 鍵入 C-x 1 以離開緩衝列表 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
513 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
514 當您有數個緩衝區時,在任何時候其中只有一個是「目前作用的」。而那個就是 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
515 您在編輯的緩衝區。如果您想要編輯另一個緩衝區,那麼您必須「切換」到它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
516 如果您想要切換到連接到某個檔案的緩衝區,您可以用 C-x C-f 再次拜訪那個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
517 檔案。但是有個比較簡單的方式:使用 C-x b ;在這個指令中,您必須鍵入緩 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
518 衝區的名稱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
519 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
520 >> 鍵入 C-x b foo <Return> 以回到含有檔案「foo」的文字的緩衝區。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
521 然後建入 C-x b TUTORIAL <Return> 以回到本快速指南。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
522 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
523 就大部份的情況來說,緩衝區的名稱與檔案的名稱是相同的(除去了檔名中的目 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
524 錄部份)。然而並不總是如此。您以 C-x C-b 所製作出的緩衝區列表總是會顯 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
525 示給您每一個緩衝區的名稱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
526 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
527 您在一個 Emacs 窗格中所見到的「任何」文字總是某個緩衝區的一部份。有一 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
528 些緩衝區並沒有連接到檔案。舉例來說,命名為「*Buffer List*」的緩衝區並 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
529 沒有任何檔案。它是包含有您以 C-x C-b 指令所製作出來的緩衝區列表的緩衝 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
530 區。命名為「*Messages*」的緩衝區也沒有連接到任何檔案;它在您的 Emacs |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
531 作業階段中包含出現在底行的訊息。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
532 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
533 >> 鍵入 C-x b *Messages* <Return> 來看看訊息的緩衝區。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
534 然後鍵入 C-x b TUTORIAL <Return> 回到本快速指南。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
535 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
536 如果您對檔案中的文字做了修改,然後找另一檔案,這個動作並不會儲存第一個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
537 檔案。它的修改仍舊存在 Emacs 中,也就是在那個檔案的緩衝區中。對於第二 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
538 個檔案的建立或編輯並不會影響到第一個檔案的緩衝區。這樣子非常有用,但這 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
539 個情形也表明了您需要「一個方便的方法」來儲存第一個檔案的緩衝區。只是為 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
540 儲存第一個檔案就必須以 C-x C-f 切換緩衝區,才能以 C-x C-s 將它儲存,總 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
541 是個讓人討厭的過程。因此我們有 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
542 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
543 C-x s 儲存一些緩衝區 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
544 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
545 C-x s 會詢問您關於您已做出修改但還沒儲存的每一個緩衝區。它會問您,對於 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
546 每一個這樣的緩衝區,是否要儲存? |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
547 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
548 >> 插入一行文字,然後鍵入 C-x s。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
549 它應該會問您是否要儲存名為 TUTORIAL.zh 的緩衝區。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
550 鍵入『y』以回答要儲存。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
551 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
552 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
553 * 擴充指令集( EXTENDING THE COMMAND SET ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
554 ------------------------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
555 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
556 由於 Emacs 擁有太多指令,即便使用上所有的 CONTROL 和 META 字元,也沒辦 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
557 法完全擺上。Emacs 以 X(擴充『eXtend』)指令來解決這個問題。擴充指令有 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
558 兩種型式: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
559 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
560 C-x 字元擴充。後面跟著一個字元。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
561 M-x 有名稱的指令擴充。後面跟著一個長的名稱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
562 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
563 還有一些指令通常來說是很有用的,但是比您已經學到的指令較少使用。您已經 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
564 看過其中兩個:檔案指令中的 C-x C-f 去尋找,以及 C-x C-s 去儲存。其他的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
565 例子則有結束 Emacs 階段的指令 -- 這個指令是 C-x C-c。(不要擔心您會失 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
566 去已經做出的改變,C-x C-c 在它殺掉 Emacs 之前會提供儲存每一個變動的檔 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
567 案的機會。) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
568 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
569 C-z 是 *暫時* 離開 Emacs 的指令 -- 因此您稍後可以回到同樣的 Emacs 階段。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
570 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
571 在某些允許它的作用的系統中, C-z 會「暫停住( suspends )」Emacs,也就 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
572 是說,它會回到 shell 但不會把 Emacs 毀掉。在最常用的 shell 中,您可以 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
573 用『fg』或『%emacs』兩種指令恢復 Emacs。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
574 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
575 在沒有提供暫停功能的系統中,C-z 會在 Emacs 底下建立一個 subshell 以讓 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
576 您有機會執行其他的程式,並且在稍後回到 Emacs,它並沒有真的離開 Emacs。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
577 在這個例子中,shell 指令『exit』是從subshell 回到 Emacs 的通常方式。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
578 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
579 使用 C-x C-c 的時機是當您打算要登出時。它也非常適合用來離開被其他郵件 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
580 處理程式,以及許多不同的應用程式所啟動的 Emacs。然而在一般的狀況下,如 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
581 果您不打算登出,最好是把 Emacs 暫停而不是離開它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
582 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
583 有許多 C-x 的指令。這裡是一份您已經學過的列表: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
584 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
585 C-x C-f 找檔案。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
586 C-x C-s 儲存檔案。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
587 C-x C-b 列出緩衝區。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
588 C-x C-c 離開 Emacs。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
589 C-x 1 除了一個外,刪去其他所有的窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
590 C-x u 取消動作。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
591 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
592 以擴充來命名的指令通常是不太常使用的指令,或是只在特定的模式下才會使用 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
593 的指令。一個例子是取代字串指令,它會全域地將一個字串以另一個來取代。當 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
594 您鍵入 M-x 時,Emacs 會在螢幕的底端詢問您,然後您也應該鍵入這個指令的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
595 名稱。在這個例子中是『replace-string』只要鍵入『repl s<TAB>』,然後 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
596 Emacs 將會補齊這個名稱。以 <Return> 來結束這個指令名稱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
597 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
598 取代字串指令需要兩個參數 -- 被取代的字串以及用來取代它的字串。您必須以 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
599 Newline 字元來結束每一個參數。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
600 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
601 >> 將游標移到本行的下兩行空白,然後鍵入 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
602 M-x repl s<Return>changed<Return>altered<Return>。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
603 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
604 【為了說明的目的,於下保留一行原文。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
605 Notice how this line has changed: you've replaced... 】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
606 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
607 請注意這一行是怎麼改變的:在游標的起始位置之後,您已經將 c-h-a-n-g-e-d |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
608 這個字 -- 不管它在哪裡出現 -- 以「altered」這個字來取代了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
609 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
610 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
611 * 自動存檔( AUTO SAVE ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
612 ------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
613 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
614 當您在一個檔案中做了修改,但是還沒有將它們儲存起來,那麼如果您的電腦當 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
615 機,它們將有可能遺失。為了避免這種情形發生在您的身上,Emacs 會定期地將 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
616 您正在編輯的檔案寫入「自動儲存」檔案中。自動儲存檔案在檔名的前後會各有 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
617 一個 # 符號;舉例來說,如果您的檔案名為「hello.c」,那麼它的自動儲存檔 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
618 案的檔名就是「#hello.c#」。當您以平常的方式儲存檔案時,Emacs 就會把它 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
619 的自動儲存檔刪除。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
620 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
621 如果當機,您可以經由正常地尋找檔案,(指的是您在編輯的檔案而不是自動儲 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
622 存檔)然後鍵入 M-x recover file<Return> 來回復您的自動儲存檔。當它要求 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
623 確認時,鍵入 yes<Return> 以繼續並回復自動儲存的資料。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
624 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
625 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
626 * 回應區( ECHO AREA ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
627 ----------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
628 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
629 如果 Emacs 見到您很慢地鍵入多字元指令,它會將它們顯示在位於窗格下方, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
630 稱為「回應區」的區域給您參閱。回應區位在窗格的最後一行。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
631 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
632 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
633 * 狀態行( MODE LINE ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
634 ----------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
635 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
636 位在回應區的正上面是稱為「狀態行」的一行。狀態行顯示出一些資訊,如: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
637 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
638 --:** TUTORIAL.zh (Fundamental)--L670--58%---------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
639 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
640 本行提供一些關於「Emacs 的狀態」以及「您正在編輯的文字」的有用資訊。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
641 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
642 您已經知道檔名的意義是什麼了 -- 就是您找的檔案。-NN%-- 指出目前您在文 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
643 字檔中的位置;它的意思是說:有 NN 百分比的文字位在窗格的上面。如果檔案 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
644 的頂端就位在窗格中,那麼它就會顯示 --Top-- 而不是 --00%--。如果檔案的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
645 底部就位在窗格中,那麼它是顯示 --Bot--。如果您正在看的文字檔很小,在窗 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
646 格中就足以看到全部的內容,那麼狀態行就會顯示 --All--。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
647 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
648 L 和數字以另一種方式來表示出位置:它們給出了目前所在的行數( Line )。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
649 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
650 在靠近前面的星號表示您已經對這些文字做了改變。在您剛拜訪或儲存一個檔案 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
651 之後,狀態行的那個部分會沒有星號,只有破折號。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
652 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
653 狀態行中位於小括弧裡面的部分,是用來告訴您正在使用什麼編輯模式。預設的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
654 模式是 Fundamental,也就是您現在使用的。它是「主模式」的一個例子。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
655 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
656 Emacs 有許多不同的主模式。它們之中有一些是用來編輯不同的語言以及/或不 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
657 同種類的文字,像是 Lisp 模式、 Text 模式等等。在任何的時間只有一個主模 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
658 式可以作用,並且它的名稱總可以在狀態行中被找到,就在現在的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
659 「Fundamental」中的位置。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
660 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
661 每一個主模式都使得一些指令的行為表現得不太一樣。舉例來說,在一個程式中 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
662 有一些指令用來製作出註解,而由於每一種程式語言對於一個註解應該長得像什 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
663 麼,都有著不同的想法,因此每一個主模式都必須以不同的方式來插入註解。每 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
664 一個主模式是一個延伸指令的名稱,使得您可以用來切換至那個模式。舉例來說, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
665 M-x fundamental-mode 就是切換到 Fundamental 模式的一個指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
666 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
667 如果您想要編輯人類語言的文字檔案 -- 像是現在的這一個,您應該使用 Text |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
668 模式。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
669 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
670 >> 鍵入 M-x text mode<Return>。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
671 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
672 不要擔心,沒有任何一個您已經學過的 Emacs 指令,會被改變成任何非常不同 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
673 的形式。但是您可以發現到 M-f 和 M-b 現在把撇號(')視為字的一部分。先 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
674 前,在 Fundamental 模式中,M-f 和 M-b 將撇號視為字的分隔符號。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
675 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
676 主模式通常會像上述那個例子一樣,做出一些精巧的改變:大部分的指令在每一 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
677 個主模式中「做同樣的事」,但是它們以一點點不同的方式來工作。【再舉個例 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
678 子,接續上面所開的頭,以程式語言的註解來說。同樣一個插入註解的動作,因 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
679 為您使用的程式語言/主模式的不同而不同。若您使用 C 語言,Emacs 插入 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
680 『/* 介於中間的為註解區塊 */』;若您使用的是 Fortran 語言,Emacs 插入 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
681 『c 以字元 c 為首的為註解行』;若您使用的是 Basic 語言,Emacs 則插入『' |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
682 撇號以後的為註解文字』。編輯器的彈性如此,實在沒有必要為了不同的語言、 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
683 目的或外觀,設計特殊化的編輯器。「求大同,存小異」在這裡也是成立的。】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
684 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
685 要瀏覽您現在所處的主模式的文件,鍵入 C-h m。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
686 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
687 >> 使用 C-u C-v 一或數次,將本行帶到靠近螢幕的上方。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
688 >> 鍵入 C-h m,看看 Text 模式與 Fundamental 模式是哪裡不同。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
689 >> 鍵入 C-x 1 將文件從螢幕移除掉。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
690 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
691 主模式之所以稱為「主要( major )」的原因是因為它們也有次模式( minor |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
692 mode )。次要的模式並不是主模式的其他選擇,而只是次要的更改。每一個次 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
693 模式可以被它本身啟用或停止,和所有其他的次模式無關,並且也和您的主模式 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
694 無關。所以您可以不使用次模式,或一個,或任何數量的次模式的組合。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
695 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
696 有一個叫做 Auto Fill 模式的次模式非常有用,特別是在編輯人類語言的文字 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
697 時。當這個模式啟用時, Emacs 在當您插入文字並且使一行太寬時,會將那一 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
698 行,在字與字之間自動地分隔開。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
699 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
700 您可以 M-x auto fill mode<Return> 來將 Auto Fill 模式啟用。當這個模式 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
701 啟用時,您可以使用 M-x auto fill mode<Return> 來將它取消。當這個模式不 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
702 用時,則這個指令會將它啟動,而當這個模式啟用時,這個指令會將它關閉。我 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
703 們說這個指令用來「切換( toggle )」模式。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
704 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
705 >> 現在鍵入 M-x auto fill mode<Return>。然後一再地插入字串 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
706 「 asdf 」,直到您看到它分成兩行。您必須在它們之間擺上空白, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
707 因為 Auto Fill 只在空白處斷行。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
708 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
709 邊界通常被設定為 70 個字元,但是您可以用 C-x f 指令來改變它。您應該以 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
710 一個數字參數的方式來給定您所希望的邊界設定。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
711 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
712 >> 鍵入 C-x f 並附上引數 20:『C-u 2 0 C-x f』。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
713 然後鍵入一些文字,看看 Emacs 以 20 個字元, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
714 在行與行之間進行 fill 動作。然後再用一次 C-x f 將邊界設回 70。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
715 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
716 如果您在一個段落的中間做出改變,Auto Fill 模式並不會為您重新進行 fill |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
717 的動作( re-fill )。要 re-fill 這個段落,鍵入 M-q (META-q),而游標必 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
718 須處在其中。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
719 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
720 >> 移動游標到前一段中,然後鍵入 M-q。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
721 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
722 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
723 * 搜尋( SEARCHING ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
724 --------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
725 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
726 Emacs 可以搜尋字串(字串可以是一群連續的字元或字)【就中文來說,字元和 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
727 字基本上意義相同;此處所指的『字』,是英文中沒有被空白隔開的字元集 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
728 合。】,往前或往後搜尋都可以。搜尋一個字串是一種游標移動指令,它會將游 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
729 標移動到字串出現的下一個地方。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
730 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
731 Emacs 搜尋指令與大部分編輯器的搜尋指令不同的地方在於,它是「漸進的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
732 ( incremental )」。這表示搜尋發生在您鍵入想要搜尋的文字串後。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
733 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
734 要開始搜尋的指令是:C-s 往前搜尋,C-r 往後搜尋。但先等一下!現在先不要 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
735 試。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
736 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
737 當您鍵入 C-s 時,會發現到有一個字串「I-search」出現在回應區中作為提示。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
738 它告訴您 Emacs 現在正處於稱為「漸進式搜尋」的狀態中,等待您鍵入您想要 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
739 搜尋的字串。<Return> 會結束一個搜尋。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
740 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
741 >> 現在鍵入 C-s 開始一個搜尋。慢一點,一次鍵入一個字元, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
742 鍵入『cursor』這個字,每鍵入一個字元時,稍微停一下, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
743 注意看看游標發生了什麼事。現在您已曾經搜尋過「cursor」這個字了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
744 >> 再次鍵入 C-s 來搜尋「cursor」的下一個出現位置。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
745 >> 現在鍵入 <Delback> 四次,看看游標是如何移動的。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
746 >> 鍵入 <Return> 結束搜尋。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
747 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
748 您有沒有看到發生了什麼?在一個漸進式搜尋中,Emacs 試著要走到您鍵入的字 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
749 串的下一個出現位置。要移動到游標所在的下一個出現位置,只要再鍵入 C-s |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
750 一次。如果並沒有這樣的出現位置存在,Emacs 會嗶一聲,並告訴您目前的搜尋 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
751 「失敗」。另外 C-g 也可以用來結束搜尋。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
752 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
753 注意:在某些系統中,鍵入 C-s 將會把螢幕凍結,您將看不到從 Emacs 來的任 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
754 何輸出。這表示作業系統一個稱為「流程控制」的「功能」將 C-s 指令攔截住, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
755 並且不讓它傳到 Emacs。要取消螢幕的凍結,請鍵入 C-q。然後到 Emacs 使用 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
756 手冊中看看對於「漸進式搜尋的同時進入( Spontaneous Entry to |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
757 Incremental Search )」這個主題,以取得處理這個「功能」的建議。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
758 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
759 如果您在一個漸進式搜尋的中間,並且鍵入 <Delback>,您可以發現在搜尋字串 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
760 中的最後一個字元被消除了,並且搜尋會回到這個搜尋的最後一個地方。舉例來 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
761 說,假設您已經鍵入了『c』,用來尋找「c」的第一次出現。現在如果您鍵入 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
762 『u』,游標會移動到「cu」的第一次出現位置。現在鍵入 <Delback> ,這會將 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
763 「u」從搜尋字串中消除,並且游標會移回到「c」的第一次出現位置。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
764 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
765 如果您在一個搜尋的中間,並且鍵入一個 CONTROL 或 META 字元的話,(但有 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
766 一些例外 -- 對搜尋而言特別的字元,像是 C-s 和 C-r ),搜尋會被結束。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
767 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
768 C-s 會開始一個搜尋,它會尋找搜尋字串在目前游標位置「之後」,的任何出現 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
769 位置。如果您想要在先前文字中搜尋,鍵入 C-r 作為替代。除了搜尋的方向相 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
770 反之外,我們所說的有關 C-s 的所有事情,同樣地可以應用到 C-r 上。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
771 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
772 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
773 * 多重窗格( MULTIPLE WINDOWS ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
774 -------------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
775 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
776 Emacs 許多好功能的其中之一是,您可以在螢幕中同時展示超過一個窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
777 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
778 >> 移動游標到這一行並且鍵入 C-u 0 C-l。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
779 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
780 >> 現在鍵入 C-x 2,它會將螢幕平分成兩個窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
781 這兩個窗格都顯示著這個快速指南。游標則停留在上方的窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
782 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
783 >> 鍵入 C-M-v 以捲動下方的窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
784 (如果您並沒有一個真的 META 鍵,則鍵入 ESC C-v 亦可。) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
785 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
786 >> 鍵入 C-x o(『o』指的是其他『other』的意思), |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
787 將游標移動到下方的窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
788 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
789 >> 在下方的窗格中,使用 C-v 和 M-v 來捲動它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
790 繼續維持在上方的窗格中閱讀這些指引。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
791 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
792 >> 再一次鍵入 C-x o 將游標移回到上方的窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
793 游標會回到它在上方窗格中,原本所在的位置。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
794 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
795 您可以持續使用 C-x o 在窗格之間切換。每一個窗格有它自己的游標位置,但 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
796 是只有一個窗格會真的顯示出游標。所有通常的編輯指令只會應用到那個游標所 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
797 在的窗格。我們稱這個為「被選擇的窗格」。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
798 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
799 指令 C-M-v 在當您於一個窗格中編輯文字,並使用其他的窗格作為參考之用時, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
800 是非常有用的。您可以將游標一直保持在您正在編輯的窗格中,並以 C-M-v 指 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
801 令在其他的窗格循序地前進。【驗證工作特別適合以這種方式來進行,如 GNU |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
802 中譯小組:找一個原始英文檔案;再找它翻譯好的中文檔案,編輯這個「被選擇 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
803 的窗格」,以 C-M-v 指令跟上驗證中的段落……。】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
804 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
805 C-M-v 是 CONTROL-META 字元的一個例子。如果您有一個真的 META 鍵,您可以 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
806 同時按住 CONTROL 和 META 再鍵入 v 來鍵入 C-M-v。CONTROL 或 META 「誰先 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
807 被按住」並沒有影響,因為這兩個鍵都是用來修飾您所鍵入的字元。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
808 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
809 如果您並沒有一個真的 META 鍵,您可以使用 ESC 來作為替代,這樣子順序就 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
810 有關係了:您必須鍵入 ESC ,跟著鍵入 CONTROL-v,CONTROL-ESC v 並不會作 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
811 用。這是因為 ESC 是一個具有本身作用的字元,而不是一個修飾鍵。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
812 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
813 >> (在上方窗格)鍵入 C-x 1 以除去下方窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
814 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
815 (如果您已經在底端的窗格鍵入 C-x 1,那麼將會把上面的窗格隱藏住。將這個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
816 指令想像成「只保留一個窗格 -- 我正在編輯的這個。」) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
817 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
818 您不需要在兩個不同的窗格中顯示相同的緩衝區。如果您使用 C-x C-f 在一個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
819 窗格中找檔案,另一個窗格並不因而改變。您可以在獨立的任一個窗格中找〔它 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
820 自己的〕一個檔案。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
821 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
822 這裡有另外一個方式可以用來,使用兩個窗格顯示兩個不同的東西: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
823 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
824 >> 鍵入 C-x 4 C-f,後面跟著您的其中一個檔案的名稱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
825 以 <Return> 作為結束。看看指定的檔案出現在下方的窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
826 游標也跑到那裡。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
827 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
828 >> 鍵入 C-x o 以回到上方的窗格,然後以 C-x 1 刪除掉下方窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
829 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
830 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
831 * 遞迴編輯階層( RECURSIVE EDITING LEVELS ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
832 -------------------------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
833 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
834 有時候您會進入所謂的「遞迴編輯階層」。它是由位在狀態行的方括弧所指明, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
835 並且包含住以小括弧來指明的模式名稱。舉例來說,您可能會看到 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
836 [(Fundamental)],而不是 (Fundamental)。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
837 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
838 要離開遞迴編輯階層,請鍵入 ESC ESC ESC。這是個全功能的「離開」指令。您 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
839 也可以使用它來除去多餘的窗格,並且離開小緩衝區。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
840 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
841 >> 鍵入 M-x 以進入小緩衝區;然後鍵入 ESC ESC ESC 離開。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
842 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
843 您無法使用 C-g 來離開遞迴編輯階層。這是因為 C-g 是用來取消指令以及「位 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
844 於」遞迴編輯階層中的「引數( arguments )」之故。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
845 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
846 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
847 * 取得更多的幫助( GETTING MORE HELP ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
848 --------------------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
849 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
850 在本快速指南中,我們試著僅提供剛剛好的資訊讓您可以開始使用 Emacs。在 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
851 Emacs 中有太多可取得的資訊,想要在這裡全部解釋是不可能的。然而,您也許 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
852 會想要學習更多 Emacs 相關的資訊,因為它有許多其他有用的功能。Emacs 提 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
853 供了「閱讀有關 Emacs 指令」的指令。這些「help」指令都以 CONTROL-h 這個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
854 字元作為開頭,稱作為「Help 字元」。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
855 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
856 要使用 Help 功能,鍵入 C-h 字元,然後再鍵入一個說明您所需要的幫助的字 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
857 元。如果您真的不知道要問什麼,那麼請鍵入『C-h ?』,此時 Emacs 將會告訴 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
858 您它能夠提供的幫助。如果您已經鍵入 C-h,但發現您並不需要任何幫助,鍵入 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
859 C-g 來取消掉它就是了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
860 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
861 (有些網站將 C-h 這個字元的意義改變了。他們真的不應該把它設為對所有使 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
862 用者全部都適用的方法,所以您現在就有了個理由來抱怨系統管理者了。在此同 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
863 時,如果 C-h 並沒有在窗格的底部顯示任何有關幫助的訊息,試著鍵入 F1 鍵, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
864 或是 M-x help <Return>。) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
865 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
866 最基本的 HELP 功能是 C-h c。鍵入 C-h,字元 c,以及一個或一串字元;然後 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
867 Emacs 會顯示一個非常簡短的有關這個指令的解釋。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
868 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
869 >> 鍵入 C-h c C-p。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
870 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
871 訊息應該會像是這樣: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
872 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
873 C-p runs the command previous-line |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
874 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
875 這告訴了您「函數的名稱」。函數名稱主要是用來自訂以及擴充 Emacs。但是由 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
876 於函數名稱是由「用來指出這指令在做些什麼」而被選定,它們因此也可以作為 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
877 非常簡短的文件 -- 足夠提醒您已經學過的指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
878 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
879 多字元指令像是 C-x C-s 和 (如果您沒有 META 或 EDIT 或 ALT 鍵)<ESC>v |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
880 也可以在 C-h c 後面出現。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
881 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
882 要取得更多有關一個指令的資訊,用 C-h k 來取代使用 C-h c 。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
883 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
884 >> 鍵入 C-h k C-p。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
885 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
886 這會在一個 Emacs 窗格顯示這個函數的說明文件以及它的名稱。當您閱讀完後, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
887 鍵入 C-x 1 以跳離這些幫助文字。您並不需要馬上跟著做。您可以做些編輯, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
888 當參考到幫助文字時再鍵入 C-x 1。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
889 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
890 這裡有一些其他有用的 C-h 選項: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
891 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
892 C-h f 解釋一個函數。您要鍵入此函數的名稱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
893 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
894 >> 試著鍵入 C-h f previous-line<Return>。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
895 這會印出 Emacs 所有的有關「實作出 C-p 這個指令的函數」的資訊 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
896 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
897 C-h v 這個類似的指令會顯示出「您可以用來自訂 Emacs 行為的變數」的文件。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
898 當 Emacs 要求時,您需要鍵入這變數的名稱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
899 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
900 C-h a 指令相關查找( Command Apropos )。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
901 鍵入一個關鍵字然後 Emacs 會列出所有 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
902 「在其名稱中含有此關鍵字」的全部指令。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
903 這些指令全部都可以經由 META-x 來啟動。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
904 對於一些指令而言,指令相關查找也會列出 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
905 「可以執行相同指令」的一個或兩個字元的串列。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
906 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
907 >> 鍵入 C-h a file<Return>。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
908 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
909 這會在另一個窗格顯示一個「在其名稱中含有『file』的全部 M-x 指令」的列 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
910 表。您將會看到像是 C-x C-f 的「字元-指令」列在其相對應指令名稱(如: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
911 find-file )的旁邊。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
912 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
913 >> 鍵入 C-M-v 上下移動 help 窗格。試個幾次。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
914 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
915 >> 鍵入 C-x 1 來刪除 help 窗格。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
916 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
917 C-h i 閱讀線上使用手冊( a.k.a. Info )。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
918 這個指令將您帶到了稱為「*info*」的特殊緩衝區,在那, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
919 您可以閱讀安裝在您的系統裡的軟體套件的線上使用手冊。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
920 鍵入 m emacs <Return> 以閱讀 Emacs 使用手冊。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
921 如果您在此之前未曾使用過 Info 系統,請鍵入『?』。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
922 Emacs 將會帶您進入 Info 模式功能的導覽指南。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
923 一旦完成了本快速指南的研讀,您應該查閱 Emacs Info |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
924 使用手冊,以作為主要的參考文件。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
925 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
926 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
927 * 更多功能特色( MORE FEATURES ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
928 --------------------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
929 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
930 您可以經由閱讀 Emacs 使用手冊〈不論是一本書或是在 Info 中的線上版本 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
931 (使用 Help 選單或是鍵入 F10 h r )〉來學到更多有關它的知識。有兩個您 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
932 可能會特別喜歡的功能特色是可以節省打字量的 completion 還有簡化檔案處理 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
933 的 dired 。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
934 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
935 Completion 是一種避免不必要的打字的方式。舉例來說,如果您想要切換 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
936 *Messages* 緩衝區,您可以鍵入 C-x b *M<Tab> ,只要可以從您已經鍵入的文 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
937 字中確定, Emacs 就會將剩下的緩衝區名稱補齊。 Completion 是在 Emacs 使 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
938 用手冊的 Info 中,稱為「Completion」的節點中所解釋的。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
939 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
940 Dired 使您可以在一個目錄中列出檔案(次目錄則是可選的)、在列表中到處移 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
941 動、拜訪、重新命名、刪除以及對檔案作操作。 Dired 是在 Emacs 使用手冊的 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
942 Info 中,稱為「Dired」的節點中所解釋的。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
943 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
944 使用手冊也解釋了許多其它 Emacs 的功能特色。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
945 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
946 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
947 * 結論( CONCLUSION ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
948 ---------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
949 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
950 記住,要完全離開 Emacs 請使用 C-x C-c 。要暫時離開到 shell,稍後再回到 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
951 Emacs,請使用 C-z 。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
952 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
953 本快速指南對於所有的新手應該都是易於理解的,所以如果您發現了什麼地方不 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
954 清楚,不要只是坐著怪自己 -- (向本文作者和翻譯)發點牢騷吧! |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
955 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
956 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
957 * 翻譯( TRANSLATION ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
958 ----------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
959 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
960 本快速指南的翻譯人員列表如下,如果您在閱讀本文之前,「完全」對 Emacs |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
961 沒有概念,請告訴我們您的意見以作為本文後續的改進依據。翻譯也提供了一份 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
962 《GNU Emacs 中文處理說明》在 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
963 http://www.gnu.org/software/chinese/guide/emacs-chinese.zh.html 〈部份 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
964 內容已經整理到本快速指南〉,也請您自行參閱。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
965 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
966 編輯器是電腦使用者最常接觸到的應用程式,因此不應該讓初學者感到過於困難, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
967 就一般的評論來說, Emacs 是不難學會使用的編輯器,但您的意見可以使它更 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
968 為貼近一般的使用者,並使電腦作為工具的角色得以充分發揮。如果您願意提供 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
969 改進的意見,請寄 email 到<chinese-translators@gnu.org> 。請不要害羞, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
970 我們歡迎任何有關的討論;如果您不想寄到郵件清單,請直接 email 給本文翻 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
971 譯 <chliu@gnu.org> 。請在 Title 行中包含此字串「Emacs TUTORIAL: <your |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
972 issue here>」。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
973 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
974 如果您是 Emacs 老手,GNU Chinese Translators Team (GNU/CTT) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
975 <http://www.gnu.org/software/chinese/> 歡迎您的加入,我們現在正需要願 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
976 意投入翻譯 Emacs 使用手冊的人員。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
977 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
978 本快速指南並沒有採用習慣上編輯器所使用的翻譯術語,一方面因為它的實際意 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
979 義與一般的編輯器不同,原文本就不同;另一方面也因為 Emacs 所採用的視覺 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
980 設計概念,早在視窗化系統之前就已經存在,本質也不相同。總之,翻譯以為這 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
981 樣可以幫助對於 Emacs 整個設計哲學的理解。如果收到的回覆中,大部份要求 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
982 提出修改,我們還是從善如流。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
983 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
984 (0) 為了避免「游標移動指令」論述上的混淆,本文採用的術語為: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
985 往「前」移( move Forward );往「後」移( move Backware ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
986 〔或是往「回」移〕; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
987 往「上」移( Previous line );往「下」移( Next line )。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
988 (1) 在本文中,「行」指的是 row,這是採用一般的習慣用法。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
989 為了避免誤導中文讀者,特別在此說明。在正式的用法中: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
990 「column」翻譯為「行」,以「縱」為行(直行),也譯為「欄」; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
991 「row」翻譯為「列」,以「橫」為列(橫列)。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
992 讀者思索一下「合縱連橫」應該可以理解。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
993 大約是因為中文原本是直書的,我們說「一行字」是沒問題; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
994 但現在大部份的情形中文是橫書的,由於習慣使然也稱為一行字了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
995 (2) 有關於「文字」及其集合的相關譯文,翻譯所採用的有: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
996 編輯的「文字」:「然後鍵入一些文字」; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
997 用來作為說明功能的「文件」:「這個函數的說明文件」; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
998 特指其所說明的內容的「文本」:「實際效力以英文本為準」。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
999 即使只是「一行字」,只要它是用來作為說明之用, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1000 翻譯還是將它視為「文件」。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1001 (3) 「cut」的動作在 Emacs 中分為「殺掉」和「刪除」,之間的差異如下: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1002 一般編輯器中的「cut」:只有最近被 cut 的文字擺到 clipboard 中; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1003 「殺掉( killing )」:被殺掉的文字,全部被加入到 kill ring 中; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1004 「刪除( deleting )」:被刪除的文字,就是被刪除了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1005 因此在一般編輯器中,您只能 paste「最近」被 cut 的文字; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1006 而在 Emacs 中,您可以「拉回」任何先前被殺掉的文字,同時, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1007 它的作法很容易。至於被刪除的,因為用來作為「刪除」功能的指令, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1008 所能移去的文字數量都很少,因此也沒什麼好拉回的; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1009 如果真的想回復這些文字,undo 您的動作就是了。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1010 (4) 「window」同時翻譯為「視窗」和「窗格」, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1011 前者表示現在一般概念中的視窗系統,如「X 視窗」; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1012 後者表示 Emacs 中的視窗,翻譯在此通稱為「窗格」。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1013 Emacs 的「窗格」即使在命令列提示下也可以正常工作, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1014 此一基本特性顯然值得我們以另一個專用術語來描述它。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1015 (5) 關於檔案的術語,「找」一個檔案在 Emacs 中有兩種作用: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1016 找一個「並不存在」的檔案,讀者應認知為「開新檔案」; |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1017 找一個「已經存在」的檔案,則是「開啟舊檔」。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1018 Emacs 只以一個「找」的動作來解決,主要的原因是「實際上」 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1019 的軟體工作如此。駭客們應該會發現這樣比較自然, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1020 因為它反應了電腦的工作方式,同時操作起來也較少廢話。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1021 (6) 在【】中的文字為翻譯的註解。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1022 (7) 關於使中文文件結構化的議題,問題已經獲得解決。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1023 (8) 本翻譯文本所採用的簡繁用語差異列表如下: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1024 zh cn |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1025 文件 文檔 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1026 軟體 軟件 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1027 作業 操作 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1028 套件 包 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1029 視窗 窗口 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1030 遞迴 遞歸 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1031 駭客 黑客 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1032 資訊 信息 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1033 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1034 另外,我們也十分歡迎讀者可以直接修改本快速指南,做出自己的版本,以自己 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1035 認為最為合適的方式來介紹 Emacs 。如果您做出了這樣個人化的版本,並且認 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1036 為足供大家參考使用,請寄給 <chinese-coordinators@gnu.org> ,我們會將您 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1037 的版本公開在 GNU/CTT 的網頁中提供給中文使用者下載。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1038 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1039 翻譯:劉 昭宏 <chliu@gnu.org> |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1040 驗證:馬 雪萍 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1041 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1042 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1043 * 複製( COPYING ) |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1044 ------------------- |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1045 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1046 本快速指南沿襲自具有悠久歷史的 Emacs 快速指南,由 Stuart Cracraft 為了 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1047 原始的 Emacs 所撰寫的版本開始。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1048 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1049 這個版本的快速指南和 GNU Emacs 一樣都是版權化的,並且允許在某些條件下 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1050 散佈其拷貝: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1051 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1052 Copyright (C) 1985, 1996, 1998, 2001, 2002, 2003, 2004, |
100972 | 1053 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
82726
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1054 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1055 Permission is granted to anyone to make or distribute verbatim copies |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1056 of this document as received, in any medium, provided that the |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1057 copyright notice and permission notice are preserved, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1058 and that the distributor grants the recipient permission |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1059 for further redistribution as permitted by this notice. |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1060 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1061 本文允許在不變更文件內容的前提下刊登在任何形式的媒體中, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1062 但需保留版權聲明以及許可聲明, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1063 散佈者也必須給予接受者如同此聲明所允許的,進一步散佈的許可。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1064 【本段譯文提供讀者作為參考以幫助理解,實際效力以英文本為準。】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1065 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1066 Permission is granted to distribute modified versions |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1067 of this document, or of portions of it, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1068 under the above conditions, provided also that they |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1069 carry prominent notices stating who last altered them. |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1070 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1071 本文允許在與上述相同的條件下,散佈修改後的版本,或是其中的一部份, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1072 但它們也必須帶有顯著的,說明由誰最後更動了它的聲明。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1073 【Copyleft 版權除了提供使用者自由外,也維護原始作者, |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1074 以及後來的修改作者的名譽權( credit )。 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1075 本段譯文提供讀者作為參考以幫助理解,實際效力以英文本為準。】 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1076 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1077 複製 Emacs 本身的條件較為複雜,但是具有相同的精神。請閱讀 COPYING 這個 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1078 檔案,並且確實給予您的朋友 GNU Emacs 的拷貝。請經由「使用、撰寫、以及 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1079 分享自由軟體」來幫助消除軟體障礙主義(擁有權)! |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1080 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1081 ;;; DO NOT PUT THIS ON ZHS OR ZHT FILE... |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1082 ;;; Local Variables: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1083 ;;; coding: chinese-big5 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1084 ;;; End: |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1085 |
3aac487eec5e
Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff
changeset
|
1086 ;;; arch-tag: a51dafb4-e602-432b-8020-5d5d5f150811 |