annotate etc/TUTORIAL.sl @ 80264:ff365ee5c861

*** empty log message ***
author Juri Linkov <juri@jurta.org>
date Sun, 02 Mar 2008 16:18:21 +0000 (2008-03-02)
parents 1dd7437446ea
children 08874225702d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1 Prvo berilo za Emacs. Pogoji uporabe in raz�irjanja so navedeni na koncu.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
2
Dave Love <fx@gnu.org>
parents:
diff changeset
3 Ukazi v Emacsu v splo�nem vklju�ujejo tipki CONTROL (v�asih ozna�eni
Dave Love <fx@gnu.org>
parents:
diff changeset
4 CTRL ali CTL) in META (v�asih ozna�ena EDIT ali ALT). Namesto, da bi ju
Dave Love <fx@gnu.org>
parents:
diff changeset
5 vedno izpisali s celim imenom, bomo uporabili naslednji okraj�avi:
Dave Love <fx@gnu.org>
parents:
diff changeset
6
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
7 C-<znak> pomeni, da moramo dr�ati pritisnjeno tipko CONTROL, ko
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
8 vtipkamo <znak>. Oznaka C-f tako pomeni: dr�imo pritisnjeno
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
9 tipko CONTROL in pritisnemo tipko f.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
10 M-<znak> pomeni, da moramo dr�ati pritisnjeno tipko META, EDIT ali
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
11 ALT, ko vtipkamo <znak>. �e na tipkovnici ni tipk META, EDIT
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
12 ali ALT, pritisnemo tipko ESC, jo spustimo in zatem
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
13 pritisnemo tipko <chr>. Tipko ESC bomo ozna�evali z <ESC>.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
14
Dave Love <fx@gnu.org>
parents:
diff changeset
15 Pomembno: Emacs zapustimo z ukazom C-x C-c (dva znaka).
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
16 V u�beniku so vaje, s katerimi preskusite nove ukaze. Ozna�ujeta jih
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
17 znaka ,>>` ob levem robu. Zgled:
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
18 <<Blank lines inserted here by startup of help-with-tutorial>>
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
19 [Sredina strani je iz didakti�nih razlogov prazna. Besedilo se nadaljuje spodaj]
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
20 >> Vtipkajte zdaj ukaz C-v (View next screen, Prika�i naslednji zaslon),
Dave Love <fx@gnu.org>
parents:
diff changeset
21 da se premaknete na naslednji zaslon (kar poskusite, pritisnite
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
22 hkrati tipko CONTROL in V). Od zdaj naprej boste morali to
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
23 napraviti sami vsaki�, ko pridete do konca zaslona.
Dave Love <fx@gnu.org>
parents:
diff changeset
24
Dave Love <fx@gnu.org>
parents:
diff changeset
25 Ste opazili, da sta se dve vrstici s prej�njega zaslona ponovili? Ta
Dave Love <fx@gnu.org>
parents:
diff changeset
26 kontinuiteta olaj�a branje pri skakanju s strani na stran.
Dave Love <fx@gnu.org>
parents:
diff changeset
27
Dave Love <fx@gnu.org>
parents:
diff changeset
28 Prva stvar, ki si jo morate zapomniti, je, kako se premikate po
Dave Love <fx@gnu.org>
parents:
diff changeset
29 datoteki. Zdaj �e veste, da se premaknete za cel zaslon naprej z
Dave Love <fx@gnu.org>
parents:
diff changeset
30 ukazom C-v. Za cel zaslon nazaj pa se premaknete z ukazom M-v
Dave Love <fx@gnu.org>
parents:
diff changeset
31 (pritisnite tipko META in jo dr�ite ter pritisnite tipko v, ali pa
Dave Love <fx@gnu.org>
parents:
diff changeset
32 pritisnite in spustite <ESC> ter zatem pritisnite tipko v, �e tipke
Dave Love <fx@gnu.org>
parents:
diff changeset
33 META, EDIT ali ALT na va�i tipkovnici ni).
Dave Love <fx@gnu.org>
parents:
diff changeset
34
Dave Love <fx@gnu.org>
parents:
diff changeset
35 >> Nekajkrat pritisnite M-v in C-v, da vidite, kako ukaza delujeta.
Dave Love <fx@gnu.org>
parents:
diff changeset
36
Dave Love <fx@gnu.org>
parents:
diff changeset
37
Dave Love <fx@gnu.org>
parents:
diff changeset
38 * POVZETEK
Dave Love <fx@gnu.org>
parents:
diff changeset
39 ----------
Dave Love <fx@gnu.org>
parents:
diff changeset
40
Dave Love <fx@gnu.org>
parents:
diff changeset
41 Za pregled celega zaslona besedila so uporabni naslednji ukazi:
Dave Love <fx@gnu.org>
parents:
diff changeset
42
Dave Love <fx@gnu.org>
parents:
diff changeset
43 C-v Premik se za cel zaslon naprej
Dave Love <fx@gnu.org>
parents:
diff changeset
44 M-v Premik se za cel zaslon nazaj
Dave Love <fx@gnu.org>
parents:
diff changeset
45 C-l Cel zaslon premaknemo tako, da je zdaj po vertikali
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
46 osredninjen okoli besedila, kjer se nahaja kazal�ek
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
47 (znak v C-l je �rka L, ne �tevka 1)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
48
Dave Love <fx@gnu.org>
parents:
diff changeset
49 >> Poi壕ite kazal�ek na zaslonu in si zapomnite besedilo okoli njega.
Dave Love <fx@gnu.org>
parents:
diff changeset
50 Vtipkajte C-l.
Dave Love <fx@gnu.org>
parents:
diff changeset
51 Ponovno poi壕ite kazal�ek. Besedilo okoli njega je ostalo isto.
Dave Love <fx@gnu.org>
parents:
diff changeset
52
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
53 Za premikanje za cel zaslon naprej ali nazaj lahko tipkovnicah, ki
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
54 imajo ti tipki, uporabljate tudi PageUp in PageDown. Opisan postopek s
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
55 C-v in M-v pa deluje povsod.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
56
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
57
Dave Love <fx@gnu.org>
parents:
diff changeset
58 * PREMIKANJE KAZAL�KA
Dave Love <fx@gnu.org>
parents:
diff changeset
59 ---------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
60
Dave Love <fx@gnu.org>
parents:
diff changeset
61 Premiki za celo stran naprej in nazaj so sicer uporabni, ampak kako pa
Dave Love <fx@gnu.org>
parents:
diff changeset
62 pridemo do izbranega mesta na zaslonu?
Dave Love <fx@gnu.org>
parents:
diff changeset
63
Dave Love <fx@gnu.org>
parents:
diff changeset
64 Na�inov je ve�. Najosnovnej�i je uporaba ukazov C-p, C-b, C-f in
Dave Love <fx@gnu.org>
parents:
diff changeset
65 C-n. Ti po vrsti premaknejo kazal�ek v prej�njo vrstico, znak nazaj,
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
66 znak naprej, in v naslednjo vrstico. Ti �tirje ukazi so enakovredni
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
67 kurzorskim tipkam:
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
68
Dave Love <fx@gnu.org>
parents:
diff changeset
69 prej�nja vrstica, C-p
Dave Love <fx@gnu.org>
parents:
diff changeset
70 :
Dave Love <fx@gnu.org>
parents:
diff changeset
71 :
Dave Love <fx@gnu.org>
parents:
diff changeset
72 nazaj, C-b .... trenutni polo�aj kazal�ka .... naprej, C-f
Dave Love <fx@gnu.org>
parents:
diff changeset
73 :
Dave Love <fx@gnu.org>
parents:
diff changeset
74 :
Dave Love <fx@gnu.org>
parents:
diff changeset
75 naslednja vrstica, C-n
Dave Love <fx@gnu.org>
parents:
diff changeset
76
Dave Love <fx@gnu.org>
parents:
diff changeset
77 >> S pritiski na C-n ali C-p premaknite kazal�ek v sredinsko vrstico
Dave Love <fx@gnu.org>
parents:
diff changeset
78 na diagramu zgoraj. Zatem pritisnite C-l. S tem diagram postavite na
Dave Love <fx@gnu.org>
parents:
diff changeset
79 sredino zaslona.
Dave Love <fx@gnu.org>
parents:
diff changeset
80
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
81 V angle壕ini ima izbor tipk nazoren pomen. P kot ,previous`
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
82 (prej�nji), N kot ,next` (naslednji), B kot ,backward` (nazaj) in F
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
83 kot ,forward` (naprej). Te osnovne ukaze za premikanje kazal�ka boste
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
84 uporabljali ves �as.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
85
Dave Love <fx@gnu.org>
parents:
diff changeset
86 >> Nekajkrat pritisnite C-n, da pride kazal�ek do te vrstice.
Dave Love <fx@gnu.org>
parents:
diff changeset
87
Dave Love <fx@gnu.org>
parents:
diff changeset
88 >> Z nekaj C-f se pomaknite na desno na sredo vrstice, nato pa nekajkrat
Dave Love <fx@gnu.org>
parents:
diff changeset
89 pritisnite C-p. Opazujte, kaj se dogaja s kazal�kom na sredini
Dave Love <fx@gnu.org>
parents:
diff changeset
90 vrstice.
Dave Love <fx@gnu.org>
parents:
diff changeset
91
Dave Love <fx@gnu.org>
parents:
diff changeset
92 Vsaka vrstice v besedilu je zaklju�ena z znakom za novo vrstico
Dave Love <fx@gnu.org>
parents:
diff changeset
93 (angl. Newline). Ta lo�uje vrstico v besedilu od naslednje. Tudi
Dave Love <fx@gnu.org>
parents:
diff changeset
94 zadnja vrstica v datoteki mora biti zalju�ena z znakom za novo vrstico
Dave Love <fx@gnu.org>
parents:
diff changeset
95 (�eprav tega Emacs ne zahteva).
Dave Love <fx@gnu.org>
parents:
diff changeset
96
Dave Love <fx@gnu.org>
parents:
diff changeset
97 >> Poskusite ukaz C-b, ko je kazal�ek na za�etku vrstice. Kazal�ek se
Dave Love <fx@gnu.org>
parents:
diff changeset
98 mora premakniti na konec prej�nje vrstice. To je zato, ker se je
Dave Love <fx@gnu.org>
parents:
diff changeset
99 ravnokar premaknil prek znaka za konec vrstice.
Dave Love <fx@gnu.org>
parents:
diff changeset
100
Dave Love <fx@gnu.org>
parents:
diff changeset
101 Ukaz C-f premika kazal�ek prek znaka za novo vrstico enako kot C-b.
Dave Love <fx@gnu.org>
parents:
diff changeset
102
Dave Love <fx@gnu.org>
parents:
diff changeset
103 >> Poskusite �e nekajkrat pritisniti C-b, da dobite ob�utek za
Dave Love <fx@gnu.org>
parents:
diff changeset
104 premikanje kazal�ka. Potem nekajkrat poskusite C-f, da pridete do konca
Dave Love <fx@gnu.org>
parents:
diff changeset
105 vrstice. �e enkrat pritisnite C-f, da sko�ite v naslednjo vrstico.
Dave Love <fx@gnu.org>
parents:
diff changeset
106
Dave Love <fx@gnu.org>
parents:
diff changeset
107 Ko s kazal�kom dose�ete zgornji ali spodnji rob zaslona, se besedilo
Dave Love <fx@gnu.org>
parents:
diff changeset
108 toliko premakne, da kazal�ek ostane na zaslonu. V angle壕ini se temu
Dave Love <fx@gnu.org>
parents:
diff changeset
109 pravi ,,scrolling``. To omogo�a, da lahko premaknemo kazal�ek na
Dave Love <fx@gnu.org>
parents:
diff changeset
110 katerokoli mesto v besedilu, a vseeno ostanemo na zaslonu.
Dave Love <fx@gnu.org>
parents:
diff changeset
111
Dave Love <fx@gnu.org>
parents:
diff changeset
112 >> Poskusite kazal�ek pripeljati s C-n �isto do dna zaslona in si oglejte,
Dave Love <fx@gnu.org>
parents:
diff changeset
113 kaj se zgodi.
Dave Love <fx@gnu.org>
parents:
diff changeset
114
Dave Love <fx@gnu.org>
parents:
diff changeset
115 �e se vam zdi premikanje po en znak prepo�asno, se lahko premikate za
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
116 celo besedo. M-f (META-f) premakne kazal�ek za eno besedo naprej, M-b
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
117 pa za besedo nazaj.
Dave Love <fx@gnu.org>
parents:
diff changeset
118
Dave Love <fx@gnu.org>
parents:
diff changeset
119 >> Poskusite nekajkrat M-f in M-b.
Dave Love <fx@gnu.org>
parents:
diff changeset
120
Dave Love <fx@gnu.org>
parents:
diff changeset
121 �e je kazal�ek sredi besede, ga M-f prestavi na konec besede. �e je v
Dave Love <fx@gnu.org>
parents:
diff changeset
122 belini med besedami, ga M-f premakne na konec naslednje besede. M-b
Dave Love <fx@gnu.org>
parents:
diff changeset
123 deluje podobno, a v nasprotni smeri.
Dave Love <fx@gnu.org>
parents:
diff changeset
124
Dave Love <fx@gnu.org>
parents:
diff changeset
125 >> Nekajkrat poskusite M-f in M-b, vmes pa �e nekaj C-f in
Dave Love <fx@gnu.org>
parents:
diff changeset
126 C-b. Opazujte u�inke M-f in M-b, ko je kazal�ek sredi besede ali
Dave Love <fx@gnu.org>
parents:
diff changeset
127 med besedami.
Dave Love <fx@gnu.org>
parents:
diff changeset
128
Dave Love <fx@gnu.org>
parents:
diff changeset
129 Ste opazili paralelo med C-f in C-b na eni strani ter M-f in M-b na
Dave Love <fx@gnu.org>
parents:
diff changeset
130 drugi? V Emacsu se dostikrat ukazi Meta nana�ajo na operacije nad
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
131 enotami jezika (besede, stavki, odstavki), medtem ko se ukazi Control
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
132 nana�ajo na operacije, neodvisne od zvrsti besedila (znaki, vrstice
Dave Love <fx@gnu.org>
parents:
diff changeset
133 ipd.).
Dave Love <fx@gnu.org>
parents:
diff changeset
134
Dave Love <fx@gnu.org>
parents:
diff changeset
135 Podobna zveza je tudi med vrsticami in stavki: ukaza C-a in C-e
Dave Love <fx@gnu.org>
parents:
diff changeset
136 premakneta kazal�ek na za�etek oz. konec vrstice, M-a in M-e pa na
Dave Love <fx@gnu.org>
parents:
diff changeset
137 za�etek oz. konec stavka.
Dave Love <fx@gnu.org>
parents:
diff changeset
138
Dave Love <fx@gnu.org>
parents:
diff changeset
139 >> Poskusite nekaj ukazov C-a, potem pa nekaj ukazov C-e.
Dave Love <fx@gnu.org>
parents:
diff changeset
140 Poskusite nekaj ukazov M-a, potem pa nekaj ukazov M-e.
Dave Love <fx@gnu.org>
parents:
diff changeset
141
Dave Love <fx@gnu.org>
parents:
diff changeset
142 Ste opazili, da ponovljeni C-a ne napravijo ni�, ponovljeni M-a pa se
Dave Love <fx@gnu.org>
parents:
diff changeset
143 premikajo naprej? �eprav se ne obna�ata enako, pa je vendar obna�anje
Dave Love <fx@gnu.org>
parents:
diff changeset
144 enega in drugega po svoje naravno.
Dave Love <fx@gnu.org>
parents:
diff changeset
145
Dave Love <fx@gnu.org>
parents:
diff changeset
146 Polo�aju kazal�ka na zaslonu pravimo tudi ,,point``, to�ka.
Dave Love <fx@gnu.org>
parents:
diff changeset
147 Parafrazirano: kazal�ek ka�e na zaslonu, kje je to�ka v besedilu.
Dave Love <fx@gnu.org>
parents:
diff changeset
148
Dave Love <fx@gnu.org>
parents:
diff changeset
149 Povzetek preprostih ukazov za premikanje kazal�ka, vklju�no s premiki
Dave Love <fx@gnu.org>
parents:
diff changeset
150 po besedo in stavek:
Dave Love <fx@gnu.org>
parents:
diff changeset
151
Dave Love <fx@gnu.org>
parents:
diff changeset
152 C-f Premik za znak naprej
Dave Love <fx@gnu.org>
parents:
diff changeset
153 C-b Premik za znak nazaj
Dave Love <fx@gnu.org>
parents:
diff changeset
154
Dave Love <fx@gnu.org>
parents:
diff changeset
155 M-f Premik za besedo naprej
Dave Love <fx@gnu.org>
parents:
diff changeset
156 M-b Premik za besedo nazaj
Dave Love <fx@gnu.org>
parents:
diff changeset
157
Dave Love <fx@gnu.org>
parents:
diff changeset
158 C-n Premik v naslednjo vrstico
Dave Love <fx@gnu.org>
parents:
diff changeset
159 C-p Premik v prej�njo vrstico
Dave Love <fx@gnu.org>
parents:
diff changeset
160
Dave Love <fx@gnu.org>
parents:
diff changeset
161 C-a Premik na za�etek vrstice
Dave Love <fx@gnu.org>
parents:
diff changeset
162 C-e Premik na konec vrstice
Dave Love <fx@gnu.org>
parents:
diff changeset
163
Dave Love <fx@gnu.org>
parents:
diff changeset
164 M-a Premik na za�etek stavka
Dave Love <fx@gnu.org>
parents:
diff changeset
165 M-e Premik na konec stavka
Dave Love <fx@gnu.org>
parents:
diff changeset
166
Dave Love <fx@gnu.org>
parents:
diff changeset
167 >> Za vajo nekajkrat poskusite vsakega od teh ukazov.
Dave Love <fx@gnu.org>
parents:
diff changeset
168 To so najpogosteje uporabljani ukazi.
Dave Love <fx@gnu.org>
parents:
diff changeset
169
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
170 �e dva pomembna ukaza za premikanje kazal�ka sta M-< (META-manj�i od),
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
171 ki ga premakne na za�etek datoteke, in M-> (META-ve�ji od), ki ga
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
172 premakne na konec datoteke.
Dave Love <fx@gnu.org>
parents:
diff changeset
173
Dave Love <fx@gnu.org>
parents:
diff changeset
174 Na ameri�kih tipkovnicah najdete znak < nad vejico in morate
Dave Love <fx@gnu.org>
parents:
diff changeset
175 pritisniti tipko Shift, da pridete do njega. Z ukazom M-< je enako -
Dave Love <fx@gnu.org>
parents:
diff changeset
176 prav tako morate pritisniti tipko Shift, sicer moste izvedli drug
Dave Love <fx@gnu.org>
parents:
diff changeset
177 ukaz, Meta-vejica. Na na�ih tipkovnicah sta oba znaka na isti tipko,
Dave Love <fx@gnu.org>
parents:
diff changeset
178 in za ukaz M-> morate pritisniti �e tipko Shift.
Dave Love <fx@gnu.org>
parents:
diff changeset
179
Dave Love <fx@gnu.org>
parents:
diff changeset
180 >> Poskusite zdaj M-<, skok na za�etek tega u�benika.
Dave Love <fx@gnu.org>
parents:
diff changeset
181 Potem se vrnite nazaj z zaporednimi C-v.
Dave Love <fx@gnu.org>
parents:
diff changeset
182
Dave Love <fx@gnu.org>
parents:
diff changeset
183 >> Poskusite zdaj M->, skok na konec tega u�benika.
Dave Love <fx@gnu.org>
parents:
diff changeset
184 Potem se vrnite nazaj z zaporednimi M-v.
Dave Love <fx@gnu.org>
parents:
diff changeset
185
Dave Love <fx@gnu.org>
parents:
diff changeset
186 �e ima va�a tipkovnica kurzorske tipke, lahko premikate kazal�ek po
Dave Love <fx@gnu.org>
parents:
diff changeset
187 zaslonu tudi z njimi. Vseeno priporo�amo, da se privadite ukazov C-b,
Dave Love <fx@gnu.org>
parents:
diff changeset
188 C-f, C-n in C-p, in to iz treh razlogov. Prvi�, delujejo na �isto vseh
Dave Love <fx@gnu.org>
parents:
diff changeset
189 terminalih. Drugi�, z nekaj prakse v Emacsu boste opazili, da je
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
190 tipkanje ukazov s CONTROL hitrej�e od tipkanja s kurzorskimi tipkami, ker
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
191 ni treba ves �as premikati desnice s tipkovnice na kurzorske tipke in
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
192 nazaj. In tretji�, ko se enkrat navadite teh ukazov s CONTROL, se boste
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
193 enostavneje nau�ili tudi bolj zapletenih ukazov za premikanje kazal�ka.
Dave Love <fx@gnu.org>
parents:
diff changeset
194
Dave Love <fx@gnu.org>
parents:
diff changeset
195 Ve�ini ukazov v Emacsu lahko podamo �tevil�ni argument; najve�krat ta
Dave Love <fx@gnu.org>
parents:
diff changeset
196 pove, kolikokrat zapovrstjo naj se ukaz izvede. Ve�kratno ponovitev
Dave Love <fx@gnu.org>
parents:
diff changeset
197 ukaza izvedemo tako, da najprej vtipkamo C-u, zatem �tevilo,
Dave Love <fx@gnu.org>
parents:
diff changeset
198 kolikokrat naj se ukaz ponovi, in nazadnje �eljeni ukaz. �e ima va�a
Dave Love <fx@gnu.org>
parents:
diff changeset
199 tipkovnica tipko META (ali EDIT ali ALT), lahko izpustite ukaz C-u in
Dave Love <fx@gnu.org>
parents:
diff changeset
200 namesto tega vtipkate �tevilo ponovitev, medtem ko dr�ite pritisnjeno
Dave Love <fx@gnu.org>
parents:
diff changeset
201 tipko META. Druga metoda je sicer kraj�a, priporo�amo pa prvo, ker
Dave Love <fx@gnu.org>
parents:
diff changeset
202 deluje na vseh terminalih. Tak�en �tevil�ni argument je ,,prefiksni``
Dave Love <fx@gnu.org>
parents:
diff changeset
203 argument, ker vnesemo argument pred ukazom, na katerega se nana�a.
Dave Love <fx@gnu.org>
parents:
diff changeset
204
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
205 Zgled: C-u 8 C-f premakne kazal�ek za osem znakov naprej.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
206
Dave Love <fx@gnu.org>
parents:
diff changeset
207 >> Poskusite s primernim argumentom za �tevilo ponovitev ukaza
Dave Love <fx@gnu.org>
parents:
diff changeset
208 C-n ali C-p priti �im bli�e tej vrstici v enem samem skoku.
Dave Love <fx@gnu.org>
parents:
diff changeset
209
Dave Love <fx@gnu.org>
parents:
diff changeset
210 Ve�ina ukazov, ne pa vsi, uporablja �tevil�ni argument kot �tevilo
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
211 ponovitev ukaza. Nekateri ukazi - nobeden od tistih, ki smo si jih
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
212 ogledali do zdaj - ga uporabljajo kot stikalo: s podanim prefiksnim
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
213 argumentom napravi ukaz nekaj drugega kot obi�ajno.
Dave Love <fx@gnu.org>
parents:
diff changeset
214
Dave Love <fx@gnu.org>
parents:
diff changeset
215 Ukaza C-v in M-v sta tudi izjemi, a druga�ni. �e jima podamo argument,
Dave Love <fx@gnu.org>
parents:
diff changeset
216 premakneta zaslon za navedeno �tevilo vrstic, ne pa zaslonov. Ukaz C-u
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
217 8 C-v, na primer, premakne zaslon navzgor za 8 vrstic.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
218
Dave Love <fx@gnu.org>
parents:
diff changeset
219 >> Poskusite zdaj C-u 8 C-v
Dave Love <fx@gnu.org>
parents:
diff changeset
220
Dave Love <fx@gnu.org>
parents:
diff changeset
221 To bi moralo zaslon premakniti navzgor za osem vrstic. �e bi ga radi
Dave Love <fx@gnu.org>
parents:
diff changeset
222 premaknili nazaj, poskusite M-v z istim argumentom.
Dave Love <fx@gnu.org>
parents:
diff changeset
223
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
224 �e uporabljate grafi�ni vmesnik, denimo X11 ali MS Windows, imate
72441
672046feba65 Synchronize with TUTORIAL.
Eli Zaretskii <eliz@gnu.org>
parents: 68640
diff changeset
225 verjetno ob robu Emacsovega okna navpi�no pravokotno ploskev,
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
226 imenovano drsnik. Pogled na besedilo lahko premikate tudi tako, da z
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
227 mi�ko kliknete na drsnik.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
228
Dave Love <fx@gnu.org>
parents:
diff changeset
229 >> Postavite kazalec na vrh ozna�enega obmo�ja na drsniku in pritisnite
Dave Love <fx@gnu.org>
parents:
diff changeset
230 srednji gumb na mi�ki. To bi moralo premakniti besedilo na mesto,
Dave Love <fx@gnu.org>
parents:
diff changeset
231 dolo�eno s tem, kako visoko ali nizko na drsnik ste kliknili.
Dave Love <fx@gnu.org>
parents:
diff changeset
232
Dave Love <fx@gnu.org>
parents:
diff changeset
233 >> Medtem ko dr�ite srednji gumb pritisnjen, premikajte mi�ko gor in
Dave Love <fx@gnu.org>
parents:
diff changeset
234 dol. Vidite, kako se premika besedilo v Emacsovem oknu, ko
Dave Love <fx@gnu.org>
parents:
diff changeset
235 premikate mi�ko?
Dave Love <fx@gnu.org>
parents:
diff changeset
236
Dave Love <fx@gnu.org>
parents:
diff changeset
237
Dave Love <fx@gnu.org>
parents:
diff changeset
238 * �E SE EMACS OBESI
Dave Love <fx@gnu.org>
parents:
diff changeset
239 -------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
240
Dave Love <fx@gnu.org>
parents:
diff changeset
241 �e se Emacs preneha odzivati na va�e ukaze, ga lahko varno prekinete z
Dave Love <fx@gnu.org>
parents:
diff changeset
242 ukazom C-g. Z njim lahko prekinete ukaze, za katere bi trajalo
Dave Love <fx@gnu.org>
parents:
diff changeset
243 predolgo, da bi se izvedli.
Dave Love <fx@gnu.org>
parents:
diff changeset
244
Dave Love <fx@gnu.org>
parents:
diff changeset
245 Isti ukaz, C-g, lahko uporabite tudi, da prekli�ete �tevil�ni
Dave Love <fx@gnu.org>
parents:
diff changeset
246 argument, ali pa za�etek ukaza, ki ga ne �elite izvesti.
Dave Love <fx@gnu.org>
parents:
diff changeset
247
Dave Love <fx@gnu.org>
parents:
diff changeset
248 >> Vtipkajte C-u 100, s �imer ste izbrali �tevil�ni argument 100,
Dave Love <fx@gnu.org>
parents:
diff changeset
249 zatem pa vtipkajte C-g. Vtipkajte zdaj C-f. Kazal�ek se je
Dave Love <fx@gnu.org>
parents:
diff changeset
250 premaknil le za en znak, ker ste �tevil�ni argument vmes preklicali
Dave Love <fx@gnu.org>
parents:
diff changeset
251 s C-g.
Dave Love <fx@gnu.org>
parents:
diff changeset
252
Dave Love <fx@gnu.org>
parents:
diff changeset
253 Tudi �e ste po nesre�i vtipkali <ESC>, se ga lahko znebite s C-g.
Dave Love <fx@gnu.org>
parents:
diff changeset
254
Dave Love <fx@gnu.org>
parents:
diff changeset
255
Dave Love <fx@gnu.org>
parents:
diff changeset
256 * ONEMOGO�ENI UKAZI
Dave Love <fx@gnu.org>
parents:
diff changeset
257 -------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
258
Dave Love <fx@gnu.org>
parents:
diff changeset
259 Nekaj ukazov v Emacsu je namenoma ,,onemogo�enih``, da bi jih
Dave Love <fx@gnu.org>
parents:
diff changeset
260 za�etniki ne izvedli po nesre�i.
Dave Love <fx@gnu.org>
parents:
diff changeset
261
Dave Love <fx@gnu.org>
parents:
diff changeset
262 �e vtipkate tak onemogo�en ukaz, se bo na zaslonu pojavilo novo okno z
Dave Love <fx@gnu.org>
parents:
diff changeset
263 obvestilom, kateri ukaz ste sku�ali izvesti, in vas vpra�alo, �e ga
Dave Love <fx@gnu.org>
parents:
diff changeset
264 res �elite izvesti.
Dave Love <fx@gnu.org>
parents:
diff changeset
265
Dave Love <fx@gnu.org>
parents:
diff changeset
266 �e v resnici �elite poskusiti ukaz, pritisnite preslednico kot odgovor
Dave Love <fx@gnu.org>
parents:
diff changeset
267 na vpra�anje. Normalno verjetno ukaza ne �elite izvesti, zato na
Dave Love <fx@gnu.org>
parents:
diff changeset
268 vpra�anje odgovorite z ,n`.
Dave Love <fx@gnu.org>
parents:
diff changeset
269
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
270 >> Vtipkajte C-x C-l (ki je onemogo�en ukaz),
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
271 zatem na vpra�anje odgovorite n.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
272
Dave Love <fx@gnu.org>
parents:
diff changeset
273
Dave Love <fx@gnu.org>
parents:
diff changeset
274 * OKNA
Dave Love <fx@gnu.org>
parents:
diff changeset
275 ------
Dave Love <fx@gnu.org>
parents:
diff changeset
276
Dave Love <fx@gnu.org>
parents:
diff changeset
277 Emacs lahko prika�e ve� oken in v vsakem svoje besedilo. Kasneje bomo
Dave Love <fx@gnu.org>
parents:
diff changeset
278 razlo�ili, kako uporabljamo ve� oken hkrati. Zaenkrat bomo povedali
Dave Love <fx@gnu.org>
parents:
diff changeset
279 le, kako se znebite dodatnih oken, ki jih lahko odpre vgrajena pomo� ali
Dave Love <fx@gnu.org>
parents:
diff changeset
280 pa izpis kak�nega drugega programa. Preprosto je:
Dave Love <fx@gnu.org>
parents:
diff changeset
281
Dave Love <fx@gnu.org>
parents:
diff changeset
282 C-x 1 Eno okno (torej, zaprimo vsa ostala).
Dave Love <fx@gnu.org>
parents:
diff changeset
283
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
284 To je CONTROL-x, ki mu sledi �tevka 1. Ukaz C-x 1 raztegne �ez cel
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
285 zaslon okno, v katerem se nahaja kazal�ek, ostala pa zapre.
Dave Love <fx@gnu.org>
parents:
diff changeset
286
Dave Love <fx@gnu.org>
parents:
diff changeset
287 >> Premaknite kazal�ek do te vrstice in vtipkajte C-u 0 C-l
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
288 >> Vtipkajte CONTROL-h k CONTROL-f.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
289 Vidite, kako se je to okno skr�ilo in odstopilo prostor oknu,
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
290 ki pojasnjuje ukaz CONTROL-f?
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
291
Dave Love <fx@gnu.org>
parents:
diff changeset
292 >> Vtipkajte C-x 1 in spodnje okno se bo zaprlo.
Dave Love <fx@gnu.org>
parents:
diff changeset
293
Dave Love <fx@gnu.org>
parents:
diff changeset
294 Za razliko od ukazov, ki smo se jih nau�ili do zdaj, je ta ukaz
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
295 sestavljen iz dveh znakov. Za�ne se z znakom CONTROL-x. Cela vrsta
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
296 ukazov se za�ne enako, in mnogi od njih zadevajo delo z datotekami,
Dave Love <fx@gnu.org>
parents:
diff changeset
297 delovnimi podro�ji in podobnim. Vsem tem ukazom je skupno, da se
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
298 za�nejo s CONTROL-x, ki mu sledi �e en, dva ali trije znaki.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
299
Dave Love <fx@gnu.org>
parents:
diff changeset
300
Dave Love <fx@gnu.org>
parents:
diff changeset
301 * VRIVANJE IN BRISANJE
Dave Love <fx@gnu.org>
parents:
diff changeset
302 ----------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
303
Dave Love <fx@gnu.org>
parents:
diff changeset
304 �e �elite v obstoje�e besedilo vriniti novo, preprosto premaknite
Dave Love <fx@gnu.org>
parents:
diff changeset
305 kazal�ek na �eljeno mesto in za�nite tipkati. Znake, ki jih lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
306 vidite, na primer A, 7, * in podobno, razume Emacs kot del besedila in
Dave Love <fx@gnu.org>
parents:
diff changeset
307 jih takoj vrine. S pritiskom na Return (ali Enter) vrinete znak za
Dave Love <fx@gnu.org>
parents:
diff changeset
308 skok v novo vrstico.
Dave Love <fx@gnu.org>
parents:
diff changeset
309
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
310 Zadnji vtipkani znak lahko izbri�ete s pritiskom na tipko
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
311 <Delback>. To je tista tipka na tipkovnici, ki jo navadno uporabljate
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
312 za brisanje nazadnje natipkanega znaka. Navadno je to velika tipka
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
313 vrstico ali dve nad tipko <Return>, ki je ozna�ena z "Backspace",
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
314 "Delete" ali "Del".
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
315
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
316 �e imate na tipkovnici tipko "Backspace", je to tipka <Delback>. Naj
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
317 vas ne zmede, �e imate poleg tega �e tipko "Delete" - <Delback> je
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
318 "Backspace".
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
319
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
320 Splo�no <Delback> pobri�e znak neposredno pred trenutnim polo�ajem
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
321 kazal�ka.
Dave Love <fx@gnu.org>
parents:
diff changeset
322
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
323 >> Vtipkajte zdaj nekaj znakov in jih zatem s tipko <Delback> pobri�ite.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
324 Ni� naj vas ne skrbi, �e se je ta vrstica spremenila. Izvirnika
Dave Love <fx@gnu.org>
parents:
diff changeset
325 tega u�benika ne boste pokvarili -- tole je samo va�a osebna kopija.
Dave Love <fx@gnu.org>
parents:
diff changeset
326
Dave Love <fx@gnu.org>
parents:
diff changeset
327 Ko vrstica postane predolga za zaslon, se ,,nadaljuje`` v naslednji
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
328 vrstici na zaslonu. Obrnjena po�evnica (znak ,\`) ali v grafi�nih
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
329 okoljih zavita pu壕ica ob desnem robu ozna�uje vrstico, ki se
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
330 nadaljuje v naslednji zaslonski vrstici.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
331
Dave Love <fx@gnu.org>
parents:
diff changeset
332 >> Zdaj za�nite tipkati besedilo, dokler ne dose�ete desnega roba, in
Dave Love <fx@gnu.org>
parents:
diff changeset
333 �e naprej. Opazili boste, da se pojavi znak za nadaljevanje.
Dave Love <fx@gnu.org>
parents:
diff changeset
334
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
335 >> S tipko <Delback> pobri�ite toliko znakov, da vrstica ne sega
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
336 ve� �ez �irino zaslona. Znak za nadaljevanje v naslednji
Dave Love <fx@gnu.org>
parents:
diff changeset
337 vrstici je izginil.
Dave Love <fx@gnu.org>
parents:
diff changeset
338
Dave Love <fx@gnu.org>
parents:
diff changeset
339 Znak za novo vrstico lahko pobri�emo enako kot vsak drug znak. S tem,
Dave Love <fx@gnu.org>
parents:
diff changeset
340 ko pobri�emo znak za novo vrstico, zdru�imo vrstici v eno samo. �e bo
Dave Love <fx@gnu.org>
parents:
diff changeset
341 nova vrstica predolga, da bi cela pri�la na zaslon, bo razdeljena v
Dave Love <fx@gnu.org>
parents:
diff changeset
342 ve� zaslonskih vrstic.
Dave Love <fx@gnu.org>
parents:
diff changeset
343
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
344 >> Premaknite kazal�ek na za�etek vrstice in pritisnite <Delback>. To
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
345 zdru�i vrstico s prej�njo.
Dave Love <fx@gnu.org>
parents:
diff changeset
346
Dave Love <fx@gnu.org>
parents:
diff changeset
347 >> Pritisnite <Return>. S tem ste ponovno vrinili znak za skok v novo
Dave Love <fx@gnu.org>
parents:
diff changeset
348 vrstico, ki ste ga malo prej zbrisali.
Dave Love <fx@gnu.org>
parents:
diff changeset
349
Dave Love <fx@gnu.org>
parents:
diff changeset
350 Spomnimo se, da lahko za ve�ino ukazov v Emacsu dolo�imo, naj se
Dave Love <fx@gnu.org>
parents:
diff changeset
351 izvedejo ve�krat zaporedoma; to vklju�uje tudi vnos teksta. Ponovitev
Dave Love <fx@gnu.org>
parents:
diff changeset
352 obi�ajnega znaka ga ve�krat vrine v besedilo.
Dave Love <fx@gnu.org>
parents:
diff changeset
353
Dave Love <fx@gnu.org>
parents:
diff changeset
354 >> Poskusite zdaj tole: da vnesete osem zvezdic, vtipkajte C-u 8 *
Dave Love <fx@gnu.org>
parents:
diff changeset
355
Dave Love <fx@gnu.org>
parents:
diff changeset
356 Zdaj ste se nau�ili najpreprostej�i na�in, da v Emacsu nekaj natipkate
Dave Love <fx@gnu.org>
parents:
diff changeset
357 in popravite. Bri�ete lahko tudi besede ali vrstice. Tu je povzetek
Dave Love <fx@gnu.org>
parents:
diff changeset
358 ukazov za brisanje:
Dave Love <fx@gnu.org>
parents:
diff changeset
359
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
360 <Delback> pobri�e znak tik pred kazal�kom (levo od
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
361 oznake za kazal�ek)
Dave Love <fx@gnu.org>
parents:
diff changeset
362 C-d pobri�e znak tik za kazal�kom (,pod` oznako
Dave Love <fx@gnu.org>
parents:
diff changeset
363 za kazal�ek)
Dave Love <fx@gnu.org>
parents:
diff changeset
364
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
365 M-<Delback> pobri�e besedo tik pred kazal�kom
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
366 M-d pobri�e besedo tik za kazal�kom
Dave Love <fx@gnu.org>
parents:
diff changeset
367
Dave Love <fx@gnu.org>
parents:
diff changeset
368 C-k zavr�e besedilo desno od kazal�ka do konca vrstice
Dave Love <fx@gnu.org>
parents:
diff changeset
369 M-k zavr�e besedilo od polo�aja kazal�ka do konca stavka
Dave Love <fx@gnu.org>
parents:
diff changeset
370
Dave Love <fx@gnu.org>
parents:
diff changeset
371 �rka ,d` je iz angle�ke besede ,delete` (pobrisati), �rka ,k` pa iz
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
372 besede ,kill` (pobiti). Ste opazili, da <Delback> in C-d na eni, ter
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
373 M-<Delback> in M-d na drugi strani nadaljujeta paralelo, ki sta jo za�ela
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
374 C-f in M-f (<Delback> pravzaprav ni kontrolni znak, kar pa naj nas ne
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
375 moti). C-k in M-k sta v enakem sorodu s C-e in M-e: prvi deluje na
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
376 vrstice, drugi na stavke.
Dave Love <fx@gnu.org>
parents:
diff changeset
377
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
378 Obstaja tudi splo�en postopek za brisanje kateregakoli dela delovnega
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
379 podro�ja. Kazal�ek postavimo na en konec podro�ja, ki ga �elimo
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
380 izbrisati, in pritisnemo C-@ ali C-SPC (SPC je
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
381 preslednica). Katerikoli od obeh ukazov deluje. Premaknite kazal�ek na
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
382 drug konec podro�ja, ki ga �elite izbrisati, in pritisnite C-w. S tem
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
383 ste zavrgli vse besedilo med obema mejama.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
384
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
385 >> Premaknite kazal�ek na �rko O, s katero se za�enja prej�nji
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
386 odstavek.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
387 >> Vtipkajte C-SPC. Emacs prika�e sporo�ilo "Mark set" (slov. Oznaka
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
388 postavljena) na dnu ekrana.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
389 >> Premaknite kazal�ek na �rko V v "postavimo" v drugi vrstici istega
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
390 odstavka.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
391 >> Vtipkajte C-w. S tem zavr�emo vse besedilo za�en�i z O in vse do
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
392 �rke V.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
393
Dave Love <fx@gnu.org>
parents:
diff changeset
394 Razlika med tem, �e zavr�ete cel odstavek besedila (angl. ,,kill``,
Dave Love <fx@gnu.org>
parents:
diff changeset
395 pobiti) ali pa �e pobri�ete znak (angl. ,,delete``), je ta, da lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
396 prvega vrnete nazaj z ukazom C-y, drugega pa ne. Na splo�no ukazi, ki
Dave Love <fx@gnu.org>
parents:
diff changeset
397 lahko povzro�ijo veliko �kode (pobri�ejo veliko besedila), shranijo
Dave Love <fx@gnu.org>
parents:
diff changeset
398 pobrisano besedilo; tisti, ki pobri�ejo samo posamezni znak, ali samo
Dave Love <fx@gnu.org>
parents:
diff changeset
399 prazne vrstice in presledke, pa ne.
Dave Love <fx@gnu.org>
parents:
diff changeset
400
Dave Love <fx@gnu.org>
parents:
diff changeset
401 >> Postavite kazal�ek na za�etek neprazne vrstice. Pritisnite C-k, da
Dave Love <fx@gnu.org>
parents:
diff changeset
402 pobri�ete vsebino vrstice.
Dave Love <fx@gnu.org>
parents:
diff changeset
403 >> �e enkrat pritisnite C-k. To pobri�e �e znak za novo vrstico.
Dave Love <fx@gnu.org>
parents:
diff changeset
404
Dave Love <fx@gnu.org>
parents:
diff changeset
405 Ste opazili, da prvi C-k pobri�e vsebino vrstice, naslednji C-k pa �e
Dave Love <fx@gnu.org>
parents:
diff changeset
406 vrstici samo, s �imer se vse besedilo pod biv�o vrstico premakne za
Dave Love <fx@gnu.org>
parents:
diff changeset
407 eno vrstico navzgor? Ukaz C-k obravnava �tevil�ni argument malo
Dave Love <fx@gnu.org>
parents:
diff changeset
408 druga�e: pobri�e toliko in toliko vrstic z vsebinami vred. To ni zgolj
Dave Love <fx@gnu.org>
parents:
diff changeset
409 ponovitev. C-u 2 C-k pobri�e dve polni vrstici besedila, kar je nekaj
Dave Love <fx@gnu.org>
parents:
diff changeset
410 drugega, kot �e dvakrat vtipkate C-k.
Dave Love <fx@gnu.org>
parents:
diff changeset
411
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
412 Besedilo, ki ste ga prej pobili, lahko povrnete (angl. ,,yank`` --
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
413 potegniti). Predstavljajte si, kot da potegnete nazaj nekaj, kar vam
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
414 je nekdo odnesel. Pobito besedilo lahko potegnete nazaj na isti ali pa
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
415 na kak�en drug kraj v besedilu, ali pa celo v kaki drugi
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
416 datoteki. Isto besedilo lahko ve�krat potegnete nazaj, tako da je v
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
417 delovnem podro�ju pove�terjeno.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
418
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
419 Ukaz za vra�anje pobitega besedila je C-y.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
420
Dave Love <fx@gnu.org>
parents:
diff changeset
421 >> Poskusite z ukazom C-y povrniti pobrisano besedilo.
Dave Love <fx@gnu.org>
parents:
diff changeset
422
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
423 �e ste uporabili ve� zaporednih ukazov C-k, je vse pobrisano besedilo
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
424 shranjeno skupaj, in en sam C-y bo vrnil vse tako pobrisane vrstice.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
425
Dave Love <fx@gnu.org>
parents:
diff changeset
426 >> Poskusite, nekajkrat vtipkajte C-k.
Dave Love <fx@gnu.org>
parents:
diff changeset
427
Dave Love <fx@gnu.org>
parents:
diff changeset
428 Zdaj pa vrnimo pobrisano besedilo:
Dave Love <fx@gnu.org>
parents:
diff changeset
429
Dave Love <fx@gnu.org>
parents:
diff changeset
430 >> Vtipkajte C-y. Zdaj pa premaknite kazal�ek za nekaj vrstic navzdol
Dave Love <fx@gnu.org>
parents:
diff changeset
431 in �e enkrat vtipkajte C-y. Vidite zdaj, kako se kopira dele
Dave Love <fx@gnu.org>
parents:
diff changeset
432 besedila?
Dave Love <fx@gnu.org>
parents:
diff changeset
433
Dave Love <fx@gnu.org>
parents:
diff changeset
434 Kaj pa, �e ste pobrisali nekaj besedila, ki bi ga radi vrnili, vendar
Dave Love <fx@gnu.org>
parents:
diff changeset
435 ste za iskanim odlomkom pobrisali �e nekaj? C-y vrne samo nazadnje
Dave Love <fx@gnu.org>
parents:
diff changeset
436 pobrisan odlomek. Vendar tudi prej�nje besedilo ni izgubljeno. Do
Dave Love <fx@gnu.org>
parents:
diff changeset
437 njega lahko pridete z ukazom M-y. Ko ste vrnili nazadnje zbrisano
Dave Love <fx@gnu.org>
parents:
diff changeset
438 besedilo s C-y, pritisnite M-y, ki ga zamenja s predzanje pobrisanim
Dave Love <fx@gnu.org>
parents:
diff changeset
439 besedilom. Vsak naslednji M-y prika�e �e eno prej. Ko ste kon�no
Dave Love <fx@gnu.org>
parents:
diff changeset
440 pri�li do iskanega besedila, ni treba napraviti ni� posebnega, da bi
Dave Love <fx@gnu.org>
parents:
diff changeset
441 ga obdr�ali. Preprosto nadaljujte z urejanjem, in vrnjeno besedilo bo
Dave Love <fx@gnu.org>
parents:
diff changeset
442 ostalo, kamor ste ga odlo�ili.
Dave Love <fx@gnu.org>
parents:
diff changeset
443
Dave Love <fx@gnu.org>
parents:
diff changeset
444 �e pritisnete M-y dovolj velikokrat, se boste vrnili na za�ete, torej
Dave Love <fx@gnu.org>
parents:
diff changeset
445 spet na zadnje pobrisano besedilo.
Dave Love <fx@gnu.org>
parents:
diff changeset
446
Dave Love <fx@gnu.org>
parents:
diff changeset
447 >> Pobri�ite vrstico, premaknite se nekam drugam, in pobri�ite �e
Dave Love <fx@gnu.org>
parents:
diff changeset
448 eno vrstico.
Dave Love <fx@gnu.org>
parents:
diff changeset
449 Z ukazom C-y dobite nazaj to drugo vrstico.
Dave Love <fx@gnu.org>
parents:
diff changeset
450 Z ukazom M-y pa jo zamenjate s prvo vrstico.
Dave Love <fx@gnu.org>
parents:
diff changeset
451 Ponovite ukaz M-y �e nekajkrat in si oglejte, kaj dobite na
Dave Love <fx@gnu.org>
parents:
diff changeset
452 zaslon. Ponavljajte ga, dokler se ne prika�e ponovno nazadnje
Dave Love <fx@gnu.org>
parents:
diff changeset
453 pobrisana vrstica, in �e naprej. �e �elite, lahko tudi ukazu
Dave Love <fx@gnu.org>
parents:
diff changeset
454 M-y podate pozitivno ali negativno �tevilo ponovitev.
Dave Love <fx@gnu.org>
parents:
diff changeset
455
Dave Love <fx@gnu.org>
parents:
diff changeset
456
Dave Love <fx@gnu.org>
parents:
diff changeset
457 * PREKLIC UKAZA (UNDO)
Dave Love <fx@gnu.org>
parents:
diff changeset
458 ----------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
459
Dave Love <fx@gnu.org>
parents:
diff changeset
460 �e ste besedilo spremenili, a ste se kasneje premislili, lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
461 besedilo vrnete v prvotno stanje z ukazom Undo, C-x u. Normalno vrne
Dave Love <fx@gnu.org>
parents:
diff changeset
462 C-x u zadnjo spremembo besedila; �e ukaz ponovimo, prekli�emo �e
Dave Love <fx@gnu.org>
parents:
diff changeset
463 predzadnjo spremembo, in vsaka nadaljnja ponovitev se�e �e eno
Dave Love <fx@gnu.org>
parents:
diff changeset
464 spremembo globlje v zgodovino.
Dave Love <fx@gnu.org>
parents:
diff changeset
465
Dave Love <fx@gnu.org>
parents:
diff changeset
466 Emacs hrani bolj ali manj celotno zgodovino na�ih ukazov, z dvema
Dave Love <fx@gnu.org>
parents:
diff changeset
467 izjemama: ukazov, ki niso napravili nobene spremembe v besedilu
Dave Love <fx@gnu.org>
parents:
diff changeset
468 (npr. premik kazal�ka), ne shranjuje, in zaporedje do 20 vrinjenih
Dave Love <fx@gnu.org>
parents:
diff changeset
469 znakov shrani kot en sam ukaz. Slednje prihrani nekaj ukazov C-x u, ki
Dave Love <fx@gnu.org>
parents:
diff changeset
470 bi jih morali vtipkati.
Dave Love <fx@gnu.org>
parents:
diff changeset
471
Dave Love <fx@gnu.org>
parents:
diff changeset
472 >> Pobri�ite to vrstico z ukazom C-k, potem jo prikli�ite nazaj s C-x u.
Dave Love <fx@gnu.org>
parents:
diff changeset
473
Dave Love <fx@gnu.org>
parents:
diff changeset
474 C-_ je alternativni ukaz za preklic zadnjega ukaza. Deluje enako kot
Dave Love <fx@gnu.org>
parents:
diff changeset
475 s C-x u, ga je pa la�je odtipkati, �e morate ukaz ponoviti ve�krat
Dave Love <fx@gnu.org>
parents:
diff changeset
476 zaporedoma. Te�ava z ukazom C-_ je, da na nekaterih tipkovnicah ni
Dave Love <fx@gnu.org>
parents:
diff changeset
477 povsem o�itno, kako ga vtipkati, zato je podvojen �e kot C-x u. Na
Dave Love <fx@gnu.org>
parents:
diff changeset
478 nekaterih terminalih moramo na primer vtipkati /, medtem ko dr�imo
Dave Love <fx@gnu.org>
parents:
diff changeset
479 pritisnjeno tipko CONTROL.
Dave Love <fx@gnu.org>
parents:
diff changeset
480
Dave Love <fx@gnu.org>
parents:
diff changeset
481 �e podamo ukazu C-_ ali C-x u numeri�ni argument, je to enako, kot �e
Dave Love <fx@gnu.org>
parents:
diff changeset
482 bi ukaz ro�no ponovili tolikokrat, kot pravi argument.
Dave Love <fx@gnu.org>
parents:
diff changeset
483
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
484 Ukaz za brisanje besedila lahko prekli�ete in besedilo povrnete,
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
485 enako, kot �e bi besedilo pobili. Razlika med brisanjem in pobijanjem
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
486 besedila je le ta, da le slednje lahko potegnete nazaj z ukazom
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
487 C-y. Preklic ukaza pa velja za eno in drugo.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
488
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
489
Dave Love <fx@gnu.org>
parents:
diff changeset
490 * DATOTEKE
Dave Love <fx@gnu.org>
parents:
diff changeset
491 ----------
Dave Love <fx@gnu.org>
parents:
diff changeset
492
Dave Love <fx@gnu.org>
parents:
diff changeset
493 Da bi bile spremembe v besedilu trajne, morate besedilo shraniti v
Dave Love <fx@gnu.org>
parents:
diff changeset
494 datoteko. V nasprotnem primeru jih boste za vedno izgubili tisti hip,
Dave Love <fx@gnu.org>
parents:
diff changeset
495 ko boste zapustili Emacs. Besedilo postavimo v datoteko tako, da
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
496 na disku ,,poi壕emo`` (angl. find) datoteko, preden za�nemo tipkati
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
497 (pravimo tudi, da ,,obi壕emo`` datoteko).
Dave Love <fx@gnu.org>
parents:
diff changeset
498
Dave Love <fx@gnu.org>
parents:
diff changeset
499 Poiskati datoteko pomeni, da v Emacsu vidimo vsebino datoteke. To je
Dave Love <fx@gnu.org>
parents:
diff changeset
500 bolj ali manj tako, kot da z Emacsom urejamo datoteko samo. Vendar pa
Dave Love <fx@gnu.org>
parents:
diff changeset
501 spremembe ne postanejo trajne, dokler datoteke ne shranimo
Dave Love <fx@gnu.org>
parents:
diff changeset
502 (angl. save) na disk. Tako imamo mo�nost, da se izognemo temu, da bi
Dave Love <fx@gnu.org>
parents:
diff changeset
503 nam na pol spremenjene datoteke le�ale po disku, kadar tega ne
Dave Love <fx@gnu.org>
parents:
diff changeset
504 �elimo. Ker pa Emacs ohrani izvorno datoteko pod spremenjenim imenom,
Dave Love <fx@gnu.org>
parents:
diff changeset
505 lahko prvotno datoteko prikli�emo nazaj celo �e potem, ko smo datoteko
Dave Love <fx@gnu.org>
parents:
diff changeset
506 �e shranili na disk.
Dave Love <fx@gnu.org>
parents:
diff changeset
507
Dave Love <fx@gnu.org>
parents:
diff changeset
508 V predzadnji vrstici na dnu zaslona vidite vrstico, ki se za�ne in
Dave Love <fx@gnu.org>
parents:
diff changeset
509 kon�a z vezaji, in vsebuje niz znakov ,,--:-- TUTORIAL``. Ta del
Dave Love <fx@gnu.org>
parents:
diff changeset
510 zaslona navadno vsebuje ime datoteke, ki smo jo obiskali. Zdajle je to
Dave Love <fx@gnu.org>
parents:
diff changeset
511 ,,TUTORIAL``, va�a delovna kopija u�benika Emacsa. Ko boste poiskali
Dave Love <fx@gnu.org>
parents:
diff changeset
512 kak�no drugo datoteko, bo na tem mestu pisalo njeno ime.
Dave Love <fx@gnu.org>
parents:
diff changeset
513
Dave Love <fx@gnu.org>
parents:
diff changeset
514 Posebnost ukaza za iskanje datoteke je, da moramo povedati, katero
Dave Love <fx@gnu.org>
parents:
diff changeset
515 datoteko i壕emo. Pravimo, da ukaz ,,prebere argument s terminala`` (v
Dave Love <fx@gnu.org>
parents:
diff changeset
516 tem primeru je argument ime datoteke). Ko vtipkate ukaz
Dave Love <fx@gnu.org>
parents:
diff changeset
517
Dave Love <fx@gnu.org>
parents:
diff changeset
518 C-x C-f (poi壕i datoteko)
Dave Love <fx@gnu.org>
parents:
diff changeset
519
Dave Love <fx@gnu.org>
parents:
diff changeset
520 vas Emacs povpra�a po imenu datoteke. Kar vtipkate, se sproti vidi v
Dave Love <fx@gnu.org>
parents:
diff changeset
521 vrstici na dnu zaslona. Temu delovnemu podro�ju pravimo pogovorni
Dave Love <fx@gnu.org>
parents:
diff changeset
522 vmesnik (minibuffer), kadar se uporablja za tovrstni vnos. Znotraj
Dave Love <fx@gnu.org>
parents:
diff changeset
523 pogovornega vmesnika lahko uporabljate obi�ajne ukaze za urejanje, �e
Dave Love <fx@gnu.org>
parents:
diff changeset
524 ste se na primer pri tipkanju zmotili.
Dave Love <fx@gnu.org>
parents:
diff changeset
525
Dave Love <fx@gnu.org>
parents:
diff changeset
526 Sredi tipkanja imena datoteke (ali katerega koli drugega opravila v
Dave Love <fx@gnu.org>
parents:
diff changeset
527 pogovornem vmesniku) lahko ukaz prekli�ete s C-g.
Dave Love <fx@gnu.org>
parents:
diff changeset
528
Dave Love <fx@gnu.org>
parents:
diff changeset
529 >> Vtipkajte C-x C-f, zatem pa �e C-g. Zadnji ukaz od treh je
Dave Love <fx@gnu.org>
parents:
diff changeset
530 zaprl pogovorni vmesnik in tudi preklical ukaz C-x C-f, ki je
Dave Love <fx@gnu.org>
parents:
diff changeset
531 uporabljal pogovorni vmesnik. Konec z iskanjem datoteke.
Dave Love <fx@gnu.org>
parents:
diff changeset
532
Dave Love <fx@gnu.org>
parents:
diff changeset
533 Ko ste dokon�ali ime, ga vnesete s pritiskom na <Return>. S tem se
Dave Love <fx@gnu.org>
parents:
diff changeset
534 po�ene ukaz C-x C-f in poi壕e iskano datoteko. Pogovorni vmesnik
Dave Love <fx@gnu.org>
parents:
diff changeset
535 izgine, ko je ukaz izveden.
Dave Love <fx@gnu.org>
parents:
diff changeset
536
Dave Love <fx@gnu.org>
parents:
diff changeset
537 Trenutek kasneje se vsebina datoteke pojavi na zaslonu. Zdaj lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
538 dopolnjujete, urejate ali kako druga�e spreminjate vsebino. Ko �elite,
Dave Love <fx@gnu.org>
parents:
diff changeset
539 da ostanejo spremembe trajne, izvedete ukaz:
Dave Love <fx@gnu.org>
parents:
diff changeset
540
Dave Love <fx@gnu.org>
parents:
diff changeset
541 C-x C-s (shrani datoteko)
Dave Love <fx@gnu.org>
parents:
diff changeset
542
Dave Love <fx@gnu.org>
parents:
diff changeset
543 Besedilo se s tem shrani iz pomnilnika ra�unalnika na datoteko na
Dave Love <fx@gnu.org>
parents:
diff changeset
544 disk. Ko prvi� izvedete ta ukaz, se izvorna datoteka preimenuje, tako
Dave Love <fx@gnu.org>
parents:
diff changeset
545 da ni izgubljena. Najdete jo pod novim imenom, ki se od starega
Dave Love <fx@gnu.org>
parents:
diff changeset
546 razlikuje po tem, da ima na koncu pripet znak ,,~``.
Dave Love <fx@gnu.org>
parents:
diff changeset
547
Dave Love <fx@gnu.org>
parents:
diff changeset
548 Ko je Emacs shranil datoteko, izpi�e njeno ime. Shranjujte raje
Dave Love <fx@gnu.org>
parents:
diff changeset
549 pogosteje kot ne, da v primeru, �e gre z ra�unalnikom kaj narobe, ne
Dave Love <fx@gnu.org>
parents:
diff changeset
550 izgubite veliko.
Dave Love <fx@gnu.org>
parents:
diff changeset
551
Dave Love <fx@gnu.org>
parents:
diff changeset
552 >> Vtipkajte C-x C-s, s �imer boste shranili svojo kopijo tega
Dave Love <fx@gnu.org>
parents:
diff changeset
553 u�benika. Emacs bo v vrstici na dnu zaslona izpisal ,,Wrote
Dave Love <fx@gnu.org>
parents:
diff changeset
554 ...TUTORIAL``.
Dave Love <fx@gnu.org>
parents:
diff changeset
555
Dave Love <fx@gnu.org>
parents:
diff changeset
556 Opozorilo: na nekaterih sistemih bo ukaz C-x C-s zamrznil zaslon, in
Dave Love <fx@gnu.org>
parents:
diff changeset
557 tako ne boste videli, da Emacs �e kaj izpi�e. To je znak, da je
Dave Love <fx@gnu.org>
parents:
diff changeset
558 operacijski sistem prestregel znak C-s in ga interpretiral kot znak za
Dave Love <fx@gnu.org>
parents:
diff changeset
559 prekinitev toka podatkov, namesto da bi ga posredoval Emacsu. Zaslon
Dave Love <fx@gnu.org>
parents:
diff changeset
560 ,,odmrznete`` z ukazom C-q. �e je va� sistem eden takih, si za nasvet,
Dave Love <fx@gnu.org>
parents:
diff changeset
561 kako re�iti to nev�e�nost, oglejte razdelek ,,Spontaneous Entry to
Dave Love <fx@gnu.org>
parents:
diff changeset
562 Incremental Search`` v priro�niku za Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
563
Dave Love <fx@gnu.org>
parents:
diff changeset
564 Poi壕ete lahko lahko �e obstoje�o datoteko, da si jo ogledate ali
Dave Love <fx@gnu.org>
parents:
diff changeset
565 popravite, ali pa tudi datoteko, ki �e ne obstaja. To je na�in, kako z
Dave Love <fx@gnu.org>
parents:
diff changeset
566 Emacsom ustvarimo novo datoteko: poi壕ite datoteko z izbranim imenom,
Dave Love <fx@gnu.org>
parents:
diff changeset
567 ki bo sprva prazna, in za�nite pisati. Ko jo boste prvi� shranili, bo
Dave Love <fx@gnu.org>
parents:
diff changeset
568 Emacs ustvaril datoteko z vne�enim besedilom. Od tod dalje delate na
Dave Love <fx@gnu.org>
parents:
diff changeset
569 �e obstoje�i datoteki.
Dave Love <fx@gnu.org>
parents:
diff changeset
570
Dave Love <fx@gnu.org>
parents:
diff changeset
571
Dave Love <fx@gnu.org>
parents:
diff changeset
572 * DELOVNA PODRO�JA
Dave Love <fx@gnu.org>
parents:
diff changeset
573 ------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
574
Dave Love <fx@gnu.org>
parents:
diff changeset
575 Tudi �e ste z ukazom C-x C-f poiskali in odprli drugo datoteko, prva
Dave Love <fx@gnu.org>
parents:
diff changeset
576 ostane v Emacsu. Nanjo se vrnete tako, da jo �e enkrat ,,poi壕ete`` z
Dave Love <fx@gnu.org>
parents:
diff changeset
577 ukazom C-x C-f. Tako imate lahko v Emacsu hkrati kar precej datotek.
Dave Love <fx@gnu.org>
parents:
diff changeset
578
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
579 >> Ustvarite datoteko z imenom ,,bla`` tako, da vtipkate C-x C-f
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
580 bla <Return>. Natipkajte nekaj besedila, ga po potrebi popravite, in
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
581 shranite v datoteko ,,bla`` z ukazom C-x C-s. Ko ste kon�ali, se
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
582 vrnite v u�benik z ukazom C-x C-f TUTORIAL <Return>.
Dave Love <fx@gnu.org>
parents:
diff changeset
583
Dave Love <fx@gnu.org>
parents:
diff changeset
584 Emacs hrani besedilo vsake datoteke v takoimenovanem ,,delovnem
Dave Love <fx@gnu.org>
parents:
diff changeset
585 podro�ju`` (angl. buffer). Ko poi壕emo datoteko, Emacs ustvari zanjo
Dave Love <fx@gnu.org>
parents:
diff changeset
586 novo delovno podro�je. Vsa obstoje�a delovna podro�ja v Emacsu vidimo
Dave Love <fx@gnu.org>
parents:
diff changeset
587 z ukazom:
Dave Love <fx@gnu.org>
parents:
diff changeset
588
Dave Love <fx@gnu.org>
parents:
diff changeset
589 C-x C-b Seznam delovnih podro�ij.
Dave Love <fx@gnu.org>
parents:
diff changeset
590
Dave Love <fx@gnu.org>
parents:
diff changeset
591 >> Poskusite C-x C-b zdaj.
Dave Love <fx@gnu.org>
parents:
diff changeset
592
Dave Love <fx@gnu.org>
parents:
diff changeset
593 Vidite, da ima vsako delovno podro�je svoje ime, pri nekaterih pa pi�e
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
594 tudi ime datoteke, katere vsebina se hrani v njem. Vsako besedilo, ki
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
595 ga vidite v katerem od Emacsovih oken, je vedno del kak�nega delovnega
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
596 podro�ja.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
597
Dave Love <fx@gnu.org>
parents:
diff changeset
598 >> Z ukazom C-x 1 se znebite seznama delovnih podro�ij.
Dave Love <fx@gnu.org>
parents:
diff changeset
599
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
600 Tudi �e imate ve� delovnih podro�ij, pa je vedno le eno od njih
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
601 trenutno dejavno. To je tisto delovno podro�je, ki ga popravljate. �e
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
602 �elite popravljati drugo delovno podro�je, morate ,,preklopiti``
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
603 nanj. �e bi radi preklopili na delovno podro�je, ki pripada kak�ni
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
604 datoteki, �e poznate en na�in, kako to storiti: ponovno ,,obi壕ete``
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
605 (odprete) to datoteko z ukazom C-x C-f. Obstaja pa �e la�ji na�in: z
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
606 ukazom C-x b. Pri tem ukazu morate navesti ime delovnega podro�ja.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
607
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
608 >> Vtipkajte C-x b bla <Return>, s �imer se vrnete v delovno podro�je
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
609 ,,bla`` z vsebino datoteke ,,bla``, ki ste jo maloprej
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
610 odprli. Zatem vtipkajte C-x b TUTORIAL <RETURN>, s �imer se vrnete
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
611 nazaj v ta u�benik.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
612
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
613 Ve�inoma se ime delovnega podro�ja kar ujema z imenom datoteke (brez
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
614 poti do datoteke), ne pa vedno. Seznam delovnih podro�ij, ki ga
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
615 prika�e ukaz C-x C-b, prika�e imena vseh delovnih podro�ij.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
616
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
617 Vsako besedilo, ki ga vidite v katerem od Emacsovih oken, je vedno del
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
618 kak�nega delovnega podro�ja. Nekatera delovna podro�ja ne pripadajo
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
619 nobeni datoteki. Podro�je ,,*Buffer List*``, na primer, je �e eno
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
620 takih. To delovno podro�je smo ustvarili ravnokar, ko smo pognali ukaz
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
621 C-x C-b, in vsebuje seznam delovnih podro�ij. Tudi delovno podro�je
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
622 ,,Messages`` ne pripada nobeni datoteki, ampak vsebuje sporo�ila, ki
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
623 jih je Emacs izpisoval v odzivnem podro�ju na dnu zaslona.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
624
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
625 >> Vtipkajte C-x b *Messages* <Return> in si oglejte delovno podro�je
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
626 s sporo�ili, zatem pa vtipkajte C-x b TUTORIAL <Return> in se tako
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
627 vrnite v u�benik.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
628
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
629 �e ste spreminjali besedilo ene datoteke, potem pa poiskali drugo, to
Dave Love <fx@gnu.org>
parents:
diff changeset
630 ne shrani spremeb v prvo datoteko. Te ostanejo znotraj Emacsa, na
Dave Love <fx@gnu.org>
parents:
diff changeset
631 delovnem podro�ju, ki pripada prvi datoteki. Ustvarjenje ali
Dave Love <fx@gnu.org>
parents:
diff changeset
632 spreminjanje delovnega podro�ja druge datoteke nima nobenega vpliva na
Dave Love <fx@gnu.org>
parents:
diff changeset
633 podro�je prve. To je zelo uporabno, pomeni pa tudi, da potrebujemo
Dave Love <fx@gnu.org>
parents:
diff changeset
634 udobno pot, da shranimo delovno podro�je prve datoteke. Nerodno bi
Dave Love <fx@gnu.org>
parents:
diff changeset
635 bilo preklapljanje na prvo podro�je s C-x C-f, da bi shranili s C-x
Dave Love <fx@gnu.org>
parents:
diff changeset
636 C-s. Namesto tega imamo:
Dave Love <fx@gnu.org>
parents:
diff changeset
637
Dave Love <fx@gnu.org>
parents:
diff changeset
638 C-x s Shrani nekatera delovna podro�ja
Dave Love <fx@gnu.org>
parents:
diff changeset
639
Dave Love <fx@gnu.org>
parents:
diff changeset
640 Ukaz C-x poi壕e delovna podro�ja, katerih vsebina je bila spremenjena,
Dave Love <fx@gnu.org>
parents:
diff changeset
641 odkar je bila zadnji� shranjena na datoteko. Za vsako tako delovno
Dave Love <fx@gnu.org>
parents:
diff changeset
642 podro�je C-x s vpra�a, �e ga �elite shraniti.
Dave Love <fx@gnu.org>
parents:
diff changeset
643
Dave Love <fx@gnu.org>
parents:
diff changeset
644
Dave Love <fx@gnu.org>
parents:
diff changeset
645 * RAZ�IRJEN NABOR UKAZOV
Dave Love <fx@gnu.org>
parents:
diff changeset
646 ------------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
647
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
648 �e mnogo, mnogo je ukazov Emacsa, ki bi zaslu�ili, da jih obesimo na
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
649 razne kontrolne in meta znake. Emacs se temu izogne z ukazom X (iz angl.
Dave Love <fx@gnu.org>
parents:
diff changeset
650 eXtend - raz�iriti), ki uvede ukaz iz raz�irjenega nabora. Dveh vrst je:
Dave Love <fx@gnu.org>
parents:
diff changeset
651
Dave Love <fx@gnu.org>
parents:
diff changeset
652 C-x Znakovna raz�iritev (angl. Character eXtend).
Dave Love <fx@gnu.org>
parents:
diff changeset
653 Sledi mu en sam znak.
Dave Love <fx@gnu.org>
parents:
diff changeset
654 M-x Raz�iritev s poimenovanim ukazom. Sledi mu dolgo ime
Dave Love <fx@gnu.org>
parents:
diff changeset
655 ukaza.
Dave Love <fx@gnu.org>
parents:
diff changeset
656
Dave Love <fx@gnu.org>
parents:
diff changeset
657 Tudi ti ukazi so na splo�no uporabni, ne uporabljamo pa jih tako
Dave Love <fx@gnu.org>
parents:
diff changeset
658 pogosto kot tiste, ki ste se jih �e nau�ili. Dva ukaza iz raz�irjenega
Dave Love <fx@gnu.org>
parents:
diff changeset
659 nabora �e poznamo: C-x C-f, s katerim poi壕emo datoteko, in C-x C-s, s
Dave Love <fx@gnu.org>
parents:
diff changeset
660 katerim datoteko shranimo. �e en primer je ukaz, s katerim Emacsu
Dave Love <fx@gnu.org>
parents:
diff changeset
661 povemo, da �elimo kon�ati z delom iz iziti iz Emacsa. Ta ukaz je C-x
Dave Love <fx@gnu.org>
parents:
diff changeset
662 C-c (ne skrbite: preden kon�a, Emacs ponudi, da shrani vse spremenjene
Dave Love <fx@gnu.org>
parents:
diff changeset
663 datoteke).
Dave Love <fx@gnu.org>
parents:
diff changeset
664
Dave Love <fx@gnu.org>
parents:
diff changeset
665 Z ukazom C-z Emacs zapustimo samo *za�asno*, tako da lahko ob vrnitvi
Dave Love <fx@gnu.org>
parents:
diff changeset
666 nadaljujemo z delom, kjer smo ostali.
Dave Love <fx@gnu.org>
parents:
diff changeset
667
Dave Love <fx@gnu.org>
parents:
diff changeset
668 Na sistemih, ki to dopu壕ajo, ukaz C-z izide iz Emacsa v ukazno
Dave Love <fx@gnu.org>
parents:
diff changeset
669 lupino, a ga ne kon�a - �e uporabljate ukazno lupino C, se lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
670 vrnete z ukazom ,fg` ali splo�neje z ukazom ,,%emacs``.
Dave Love <fx@gnu.org>
parents:
diff changeset
671
Dave Love <fx@gnu.org>
parents:
diff changeset
672 Drugod ukaz C-z po�ene sekundarno ukazno lupino, tako da lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
673 po�enete kak�en drug program in se kasneje vrnete v Emacs. V tem
Dave Love <fx@gnu.org>
parents:
diff changeset
674 primeru pravzaprav Emacsa ne zapustimo. Ukaz ,,exit`` v ukazni lupini
Dave Love <fx@gnu.org>
parents:
diff changeset
675 je navadno na�in, da zapremo sekundarno lupino in se vrnemo v Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
676
Dave Love <fx@gnu.org>
parents:
diff changeset
677 Ukaz C-x C-c uporabimo, �e se nameravamo odjaviti s sistema. To je
Dave Love <fx@gnu.org>
parents:
diff changeset
678 tudi pravilen na�in za izhod iz Emacsa, �e je tega pognal program za
Dave Love <fx@gnu.org>
parents:
diff changeset
679 delo s po�to ali kak drug program, saj ta verjetno ne ve, kaj
Dave Love <fx@gnu.org>
parents:
diff changeset
680 napraviti z za�asno prekinjenim Emacsom. V vseh ostalih primerih pa,
Dave Love <fx@gnu.org>
parents:
diff changeset
681 �e se ne nameravate odjaviti s sistema, uporabite C-z, in se vrnite v
Dave Love <fx@gnu.org>
parents:
diff changeset
682 Emacs, ko bi radi spet urejali besedilo.
Dave Love <fx@gnu.org>
parents:
diff changeset
683
Dave Love <fx@gnu.org>
parents:
diff changeset
684 Ukazov C-x je veliko. Zaenkrat smo spoznali naslednje:
Dave Love <fx@gnu.org>
parents:
diff changeset
685
Dave Love <fx@gnu.org>
parents:
diff changeset
686 C-x C-f Poi壕i datoteko.
Dave Love <fx@gnu.org>
parents:
diff changeset
687 C-x C-s Shrani datoteko.
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
688 C-x C-b Prika�i seznam delovnih podro�ij.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
689 C-x C-c Kon�aj Emacs.
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
690 C-x 1 Zapri vsa okna razen enega.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
691 C-x u Preklic zadnjega ukaza.
Dave Love <fx@gnu.org>
parents:
diff changeset
692
Dave Love <fx@gnu.org>
parents:
diff changeset
693 Poimenovani raz�irjeni ukazi so ukazi, ki se uporabljajo �e bolj
Dave Love <fx@gnu.org>
parents:
diff changeset
694 poredko, ali pa se uporabljajo samo v nekaterih na�inih dela. Eden
Dave Love <fx@gnu.org>
parents:
diff changeset
695 takih je na primer ukaz replace-string, ki po vsem besedilu zamenja en
Dave Love <fx@gnu.org>
parents:
diff changeset
696 niz znakov z drugim. Ko vtipkate M-x, se to izpi�e v pogovornem
Dave Love <fx@gnu.org>
parents:
diff changeset
697 vmesniku na dnu zaslona, Emacs pa �aka, da vtipkate ime ukaza, ki ga
Dave Love <fx@gnu.org>
parents:
diff changeset
698 �elite priklicati; v tem primeru je to ,,replace-string``. Vtipkajte
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
699 samo ,,repl s<TAB>`` in Emacs bo dopolnil ime (<TAB> je tabulatorska
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
700 tipka; navadno jo najdemo nad tipko Caps Lock ali Shift na levi strani
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
701 tipkovnice). Ukaz vnesete s pritiskom na <Return>.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
702
Dave Love <fx@gnu.org>
parents:
diff changeset
703 Ukaz replace-string potrebuje dva argumenta -- niz, ki ga �elite
Dave Love <fx@gnu.org>
parents:
diff changeset
704 zamenjati, in niz, s katerim bi radi zamenjali prvega. Vsakega posebej
Dave Love <fx@gnu.org>
parents:
diff changeset
705 vnesete in zaklju�ite s pritiskom na tipko Return.
Dave Love <fx@gnu.org>
parents:
diff changeset
706
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
707 >> Premaknite kazal�ek na prazno vrstico dve vrstici pod to, zatem
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
708 vtipkajte M-x repl s<Return>zamenjala<Return>spremenila<Return>.
Dave Love <fx@gnu.org>
parents:
diff changeset
709
Dave Love <fx@gnu.org>
parents:
diff changeset
710 Opazite, kako se je ta vrstica zamenjala? Vse besede
Dave Love <fx@gnu.org>
parents:
diff changeset
711 z-a-m-e-n-j-a-l-a od tod do konca besedila ste nadomestili z besedo
Dave Love <fx@gnu.org>
parents:
diff changeset
712 ,,spremenila``.
Dave Love <fx@gnu.org>
parents:
diff changeset
713
Dave Love <fx@gnu.org>
parents:
diff changeset
714
Dave Love <fx@gnu.org>
parents:
diff changeset
715 * AVTOMATI�NO SHRANJEVANJE
Dave Love <fx@gnu.org>
parents:
diff changeset
716 --------------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
717
Dave Love <fx@gnu.org>
parents:
diff changeset
718 Spremembe v datoteki, ki jih �e niste shranili na disk, so izgubljene,
Dave Love <fx@gnu.org>
parents:
diff changeset
719 �e medtem denimo zmanjka elektrike. Da bi vas zavaroval pred tem,
Dave Love <fx@gnu.org>
parents:
diff changeset
720 Emacs periodi�no avtomati�no shrani vse datoteke, ki jih
Dave Love <fx@gnu.org>
parents:
diff changeset
721 urejate. Avtomati�no shranjena datoteka se od izvorne razlikuje po
Dave Love <fx@gnu.org>
parents:
diff changeset
722 znaku ,#` na za�etku in koncu imena: �e se je va�a datoteka imenovala
Dave Love <fx@gnu.org>
parents:
diff changeset
723 ,,hello.c``, se avtomati�no shranjena datoteka imenuje
Dave Love <fx@gnu.org>
parents:
diff changeset
724 ,,#hello.c#``. Ko normalno shranite datoteko, avtomati�no shranjena
Dave Love <fx@gnu.org>
parents:
diff changeset
725 datoteka ni ve� potrebna, in Emacs jo pobri�e.
Dave Love <fx@gnu.org>
parents:
diff changeset
726
Dave Love <fx@gnu.org>
parents:
diff changeset
727 �e res pride do izgube podatkov v pomnilniku, lahko povrnete avtomati�no
Dave Love <fx@gnu.org>
parents:
diff changeset
728 shranjeno besedilo tako, da normalno poi壕ete datoteko (pravo ime
Dave Love <fx@gnu.org>
parents:
diff changeset
729 datoteke, ne ime avtomati�no shranjene datoteke), zatem pa vtipkate M-x
Dave Love <fx@gnu.org>
parents:
diff changeset
730 recover file<Return>. Ko vas vpra�a za potrditev, vtipkajte yes<Return>
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
731 za nadaljevanje in povrnitev avtomati�no shranjenenih podatkov.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
732
Dave Love <fx@gnu.org>
parents:
diff changeset
733
Dave Love <fx@gnu.org>
parents:
diff changeset
734 * ODZIVNO PODRO�JE
Dave Love <fx@gnu.org>
parents:
diff changeset
735 ------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
736
Dave Love <fx@gnu.org>
parents:
diff changeset
737 Kadar Emacs opazi, da po�asi vtipkavate ukaz, odpre v zadnji vrstici
Dave Love <fx@gnu.org>
parents:
diff changeset
738 na dnu zaslona odzivno podro�je in v njem sproti prikazuje natipkano.
Dave Love <fx@gnu.org>
parents:
diff changeset
739
Dave Love <fx@gnu.org>
parents:
diff changeset
740
Dave Love <fx@gnu.org>
parents:
diff changeset
741 * STATUSNA VRSTICA
Dave Love <fx@gnu.org>
parents:
diff changeset
742 ------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
743
Dave Love <fx@gnu.org>
parents:
diff changeset
744 Vrstica nad odzivnim podro�jem je statusna vrstica. Ta ka�e verjetno
Dave Love <fx@gnu.org>
parents:
diff changeset
745 nekaj podobnega kot:
Dave Love <fx@gnu.org>
parents:
diff changeset
746
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
747 --:** TUTORIAL (Fundamental)--L670--58%----------------------
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
748
Dave Love <fx@gnu.org>
parents:
diff changeset
749 V njej so izpisani pomembni podatki o stanju Emacsa in besedilu, ki ga
Dave Love <fx@gnu.org>
parents:
diff changeset
750 urejate.
Dave Love <fx@gnu.org>
parents:
diff changeset
751
Dave Love <fx@gnu.org>
parents:
diff changeset
752 Zdaj �e veste, kaj pomeni ime datoteke -- to je datoteka, ki ste jo
Dave Love <fx@gnu.org>
parents:
diff changeset
753 poiskali. Oznaka --NN%-- pomeni, da je nad vrhom zaslona �e NN
Dave Love <fx@gnu.org>
parents:
diff changeset
754 odstotkov celotne datoteke. �e je za�etek datoteke na zaslonu, bo
Dave Love <fx@gnu.org>
parents:
diff changeset
755 namesto --00%-- pisalo --Top--. Podobno bo pisalo --Bot--, �e je
Dave Love <fx@gnu.org>
parents:
diff changeset
756 zadnja vrstica datoteke na zaslonu. �e je datoteka, ki jo ogledujete,
Dave Love <fx@gnu.org>
parents:
diff changeset
757 tako kratka, da gre vsa na en zaslon, pa bo pisalo --All--.
Dave Love <fx@gnu.org>
parents:
diff changeset
758
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
759 �rka L in �tevilke za njo ka�ejo polo�aj �e druga�e, kot zaporedno
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
760 �tevilko vrstice, v kateri je kazal�ek.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
761
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
762 Zvezdice na za�etku vrstice pomenijo, da ste datoteko �e spreminjali.
Dave Love <fx@gnu.org>
parents:
diff changeset
763 Tik po tem, ko ste odprli ali shranili datoteko, ni nobenih zvezdic,
Dave Love <fx@gnu.org>
parents:
diff changeset
764 so samo �rtice.
Dave Love <fx@gnu.org>
parents:
diff changeset
765
Dave Love <fx@gnu.org>
parents:
diff changeset
766 Del statusne vrstice znotraj oklepajev vam pove, v kak�nem na�inu dela
Dave Love <fx@gnu.org>
parents:
diff changeset
767 Emacs. Privzeti na�in je osnovni na�in (Fundamental), v katerem ste
Dave Love <fx@gnu.org>
parents:
diff changeset
768 sedaj. Fundamental je eden od glavnih na�inov (angl. major
Dave Love <fx@gnu.org>
parents:
diff changeset
769 mode). Emacs pozna veliko razli�nih glavnih na�inov. Nekateri od njih
Dave Love <fx@gnu.org>
parents:
diff changeset
770 so namenjeni pisanju programov, kot na primer Lisp, ali pisanju
Dave Love <fx@gnu.org>
parents:
diff changeset
771 besedil, kot npr. Text. Naenkrat je lahko aktiven le en glavni na�in,
Dave Love <fx@gnu.org>
parents:
diff changeset
772 njegovo ime pa je vedno izpisano v statusni vrstici, kjer zdaj pi�e
Dave Love <fx@gnu.org>
parents:
diff changeset
773 Fundamental.
Dave Love <fx@gnu.org>
parents:
diff changeset
774
Dave Love <fx@gnu.org>
parents:
diff changeset
775 Glavni na�ini lahko spremenijo pomen nekaterim ukazom. Obstajajo,
Dave Love <fx@gnu.org>
parents:
diff changeset
776 denimo, ukazi za pisanje komentarjev v programu, in ker ima vsak
Dave Love <fx@gnu.org>
parents:
diff changeset
777 programski jezik svoje predstave o tem, kako mora komentar izgledati,
Dave Love <fx@gnu.org>
parents:
diff changeset
778 mora vsak glavni na�in vnesti komentarje druga�e. Ker je vsak glavni
Dave Love <fx@gnu.org>
parents:
diff changeset
779 na�in ime raz�irjenega ukaza, lahko tako tudi izbiramo glavni
Dave Love <fx@gnu.org>
parents:
diff changeset
780 na�in. Na primer, M-x fundamental-mode vas postavi v na�in
Dave Love <fx@gnu.org>
parents:
diff changeset
781 Fundamental.
Dave Love <fx@gnu.org>
parents:
diff changeset
782
Dave Love <fx@gnu.org>
parents:
diff changeset
783 �e nameravate popravljati slovensko (ali angle�ko) besedilo, kot je na
Dave Love <fx@gnu.org>
parents:
diff changeset
784 primer tole, boste verjetno izbrali tekstovni na�in (Text).
Dave Love <fx@gnu.org>
parents:
diff changeset
785 >> Vtipkajte M-x text mode<Return>.
Dave Love <fx@gnu.org>
parents:
diff changeset
786
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
787 Brez skrbi, noben od ukazov Emacsa, ki ste se jih nau�ili, se s tem ne
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
788 spremeni kaj dosti. Lahko pa opazite, da Emacs zdaj jemlje opu壕aje za
Dave Love <fx@gnu.org>
parents:
diff changeset
789 dele besed, ko se premikate z M-f ali M-b. V osnovnem na�inu jih je
Dave Love <fx@gnu.org>
parents:
diff changeset
790 obravnaval kot meje med besedami.
Dave Love <fx@gnu.org>
parents:
diff changeset
791
Dave Love <fx@gnu.org>
parents:
diff changeset
792 Glavni na�ini navadno po�enjajo majhne spremembe, kot je ta: ve�ina
Dave Love <fx@gnu.org>
parents:
diff changeset
793 ukazov ,,opravi isti posel``, vendar pa to po�nejo na razli�en na�in.
Dave Love <fx@gnu.org>
parents:
diff changeset
794
Dave Love <fx@gnu.org>
parents:
diff changeset
795 Dokumentacijo o trenutno aktivnem glavnem na�inu dobite z ukazom C-h m.
Dave Love <fx@gnu.org>
parents:
diff changeset
796
Dave Love <fx@gnu.org>
parents:
diff changeset
797 >> Uporabite C-u C-v enkrat ali ve�krat, toliko, da bo ta vrstica blizu
Dave Love <fx@gnu.org>
parents:
diff changeset
798 vrha zaslona.
Dave Love <fx@gnu.org>
parents:
diff changeset
799 >> Vtipkajte C-h m, da vidite, v �em se tekstovni na�in (Text) razlikuje
Dave Love <fx@gnu.org>
parents:
diff changeset
800 od osnovnega (Fundamental).
Dave Love <fx@gnu.org>
parents:
diff changeset
801 >> Vtipkajte C-x 1, da umaknete dokumentacijo z zaslona.
Dave Love <fx@gnu.org>
parents:
diff changeset
802
Dave Love <fx@gnu.org>
parents:
diff changeset
803 Glavnim na�inom pravimo glavni na�ini zato, ker obstajajo tudi
Dave Love <fx@gnu.org>
parents:
diff changeset
804 podna�ini (angl. minor modes). Podna�ini ne nadome壕ajo glavnih
Dave Love <fx@gnu.org>
parents:
diff changeset
805 na�inom, ampak le spreminjajo njihovo obna�anje. Podna�ine lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
806 aktiviramo ali deaktiviramo neodvisno od glavnega na�ina in neodvisno
Dave Love <fx@gnu.org>
parents:
diff changeset
807 od ostalih podna�inov. Tako lahko ne uporabljate nobenega podna�ina,
Dave Love <fx@gnu.org>
parents:
diff changeset
808 en podna�in, ali kombinacijo ve�ih podna�inov.
Dave Love <fx@gnu.org>
parents:
diff changeset
809
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
810 Podna�in, ki je zelo uporaben posebno za pisanje besedil, je Auto
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
811 Fill. Ko je vklopljen, Emacs med pisanjem avtomati�no deli vrstice na
Dave Love <fx@gnu.org>
parents:
diff changeset
812 presledkih med besedami, tako da vrstice niso predolge.
Dave Love <fx@gnu.org>
parents:
diff changeset
813
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
814 Vklopite ga lahko z ukazom M-x auto fill mode<Return>. Ko je
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
815 vklopljen, ga lahko izklopite z istim ukazom, M-x
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
816 auto fill mode<Return>. Z istim ukazom torej preklapljamo
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
817 (angl. toggle) med vklopljenim in izklopljenim stanjem.
Dave Love <fx@gnu.org>
parents:
diff changeset
818
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
819 >> Vtipkajte zdaj M-x auto fill mode<Return>. Potem za�nite tipkati
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
820 "asdf asdkl sdjf sdjkf"... dokler ne opazite, da je Emacs razbil
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
821 vrstico na dve. Med tipkanjem mora biti dovolj presledkov, saj
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
822 Auto Fill prelamlja vrstice samo na presledkih.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
823
Dave Love <fx@gnu.org>
parents:
diff changeset
824 �irina besedila je navadno postavljena na 70 znakov, kar pa lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
825 spremenite z ukazom C-x f. Novo �irino morate podati kot �tevil�ni
Dave Love <fx@gnu.org>
parents:
diff changeset
826 argument.
Dave Love <fx@gnu.org>
parents:
diff changeset
827
Dave Love <fx@gnu.org>
parents:
diff changeset
828 >> Vtipkajte C-x f in argument 20. (C-u 2 0 C-x f). Zatem vtipkajte
Dave Love <fx@gnu.org>
parents:
diff changeset
829 nekaj besedila in poglejte, �e bo Emacs res delil vrstice pri 20
Dave Love <fx@gnu.org>
parents:
diff changeset
830 znakih. Potem z ukazom C-x f postavite mejo nazaj na 70.
Dave Love <fx@gnu.org>
parents:
diff changeset
831
Dave Love <fx@gnu.org>
parents:
diff changeset
832 Auto Fill deluje le, kadar pi�ete novo besedilo, ne pa,
Dave Love <fx@gnu.org>
parents:
diff changeset
833 kadar popravljate �e napisan odstavek.
Dave Love <fx@gnu.org>
parents:
diff changeset
834 Tak odstavek lahko poravnate tako, da kazal�ek premaknete nekam
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
835 znotraj odstavka in uka�ete M-q (META-q).
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
836
Dave Love <fx@gnu.org>
parents:
diff changeset
837 >> Premaknite kazal�ek v prej�nji odstavek in izvedite M-q.
Dave Love <fx@gnu.org>
parents:
diff changeset
838
Dave Love <fx@gnu.org>
parents:
diff changeset
839
Dave Love <fx@gnu.org>
parents:
diff changeset
840 * ISKANJE
Dave Love <fx@gnu.org>
parents:
diff changeset
841 ---------
Dave Love <fx@gnu.org>
parents:
diff changeset
842
Dave Love <fx@gnu.org>
parents:
diff changeset
843 Emacs lahko v besedilu poi壕e niz znakov (zaporedje znakov ali besed),
Dave Love <fx@gnu.org>
parents:
diff changeset
844 naprej ali nazaj po besedilu. Iskanje spada v skupino ukazov za
Dave Love <fx@gnu.org>
parents:
diff changeset
845 premikanje kazal�ka, saj premakne kazal�ek na kraj v besedilu, kjer je
Dave Love <fx@gnu.org>
parents:
diff changeset
846 na�el iskani niz.
Dave Love <fx@gnu.org>
parents:
diff changeset
847
Dave Love <fx@gnu.org>
parents:
diff changeset
848 Iskanje v Emacsu je morda nekoliko druga�no od tistega, ki ste ga
Dave Love <fx@gnu.org>
parents:
diff changeset
849 navajeni, in sicer je ,,inkrementalno``. To pomeni, da se iskanje
Dave Love <fx@gnu.org>
parents:
diff changeset
850 odvija hkrati s tem, ko tipkate iskani niz.
Dave Love <fx@gnu.org>
parents:
diff changeset
851
Dave Love <fx@gnu.org>
parents:
diff changeset
852 Ukaza za iskanje sta C-s za iskanje naprej po datoteki in C-r za
Dave Love <fx@gnu.org>
parents:
diff changeset
853 iskanje nazaj po datoteki. PO�AKAJTE! Ne preizku�ajte jih �e ta hip!
Dave Love <fx@gnu.org>
parents:
diff changeset
854
Dave Love <fx@gnu.org>
parents:
diff changeset
855 Ko boste natipkali C-s, boste opazili niz ,,I-search`` kot pozivnik
Dave Love <fx@gnu.org>
parents:
diff changeset
856 v pogovornem vmesniku. To vam pove, da je Emacs v inkrementalnem iskanju
Dave Love <fx@gnu.org>
parents:
diff changeset
857 in vas �aka, da za�nete tipkati, kar i壕ete. <Return> zaklju�i iskanje.
Dave Love <fx@gnu.org>
parents:
diff changeset
858
Dave Love <fx@gnu.org>
parents:
diff changeset
859 >> Pritisnite zdaj C-s. PO�ASI, �rko za �rko, vtipkajte besedo
Dave Love <fx@gnu.org>
parents:
diff changeset
860 ,,kazal�ek``. Za vsako vtipkano �rko se ustavite in si oglejte, kaj
Dave Love <fx@gnu.org>
parents:
diff changeset
861 se je zgodilo s kazal�kom.
Dave Love <fx@gnu.org>
parents:
diff changeset
862 >> �e enkrat pritisnite C-s, da poi壕ete naslednji ,,kazal�ek``.
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
863 >> �estkrat pritisnite <Delback> in opazujte, kako se premika kazal�ek.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
864 >> Kon�ajte iskanje s tipko <Return>.
Dave Love <fx@gnu.org>
parents:
diff changeset
865
Dave Love <fx@gnu.org>
parents:
diff changeset
866 Ste videli, kaj se je zgodilo? Emacs pri inkrementalnem iskanju sku�a
Dave Love <fx@gnu.org>
parents:
diff changeset
867 poiskati niz, ki ste ga natipkali do tistega hipa. Da poi壕ete
Dave Love <fx@gnu.org>
parents:
diff changeset
868 naslednje mesto, kjer se pojavi ,,kazal�ek``, samo �e enkrat
Dave Love <fx@gnu.org>
parents:
diff changeset
869 pritisnete C-s. �e takega mesta ni, Emacs �ivkne in vam sporo�i, da
Dave Love <fx@gnu.org>
parents:
diff changeset
870 iskanje ni uspelo. Tudi C-g prekine iskanje.
Dave Love <fx@gnu.org>
parents:
diff changeset
871
Dave Love <fx@gnu.org>
parents:
diff changeset
872 OPOZORILO: Na nekaterih sistemih bo s pritiskom na C-s ekran
Dave Love <fx@gnu.org>
parents:
diff changeset
873 zmrznil. To je znak, da je operacijski sistem prestregel znak C-s in
Dave Love <fx@gnu.org>
parents:
diff changeset
874 ga interpretiral kot znak za prekinitev toka podatkov, namesto da bi
Dave Love <fx@gnu.org>
parents:
diff changeset
875 ga posredoval programu Emacs. Ekran ,,odtajate`` s pritiskom na
Dave Love <fx@gnu.org>
parents:
diff changeset
876 C-q. Potem si oglejte razdelek ,,Spontaneous Entry to Incremental
Dave Love <fx@gnu.org>
parents:
diff changeset
877 Search`` v priro�niku za nasvet, kako se spopasti s to nev�e�nostjo.
Dave Love <fx@gnu.org>
parents:
diff changeset
878
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
879 �e sredi inkrementalnega iskanja pritisnete <Delback>, boste opazili,
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
880 da to pobri�e zadnji znak v iskanem nizu, kazal�ek pa se premakne
Dave Love <fx@gnu.org>
parents:
diff changeset
881 nazaj na mesto v besedilu, kjer je na�el kraj�i niz. Na primer,
Dave Love <fx@gnu.org>
parents:
diff changeset
882 predpostavimo, da ste do zdaj natipkali ,,ka`` in je kazal�ek na
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
883 mestu, kjer se prvi� pojavi ,,ka``. �e zdaj pritisnete <Delback>, boste
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
884 s tem v pogovornem vmesniku izbrisali ,a`, hkrati pa se bo kazal�ek
Dave Love <fx@gnu.org>
parents:
diff changeset
885 postavil na mesto, kjer je prvi� na�el ,k`, preden ste natipkali �e
Dave Love <fx@gnu.org>
parents:
diff changeset
886 ,a`.
Dave Love <fx@gnu.org>
parents:
diff changeset
887
Dave Love <fx@gnu.org>
parents:
diff changeset
888 �e sredi iskanja vtipkate katerikoli kontrolni znaki ali metaznak
Dave Love <fx@gnu.org>
parents:
diff changeset
889 (razen tistih, ki imajo poseben pomen pri iskanju, to sta C-s in C-r),
Dave Love <fx@gnu.org>
parents:
diff changeset
890 se iskanje prekine.
Dave Love <fx@gnu.org>
parents:
diff changeset
891
Dave Love <fx@gnu.org>
parents:
diff changeset
892 C-s za�ne iskati na mestu v datoteki, kjer trenutno stoji kazal�ek, in
Dave Love <fx@gnu.org>
parents:
diff changeset
893 i壕e do konca datoteke. �e bi radi iskali proti za�etku datoteke,
Dave Love <fx@gnu.org>
parents:
diff changeset
894 namesto C-s vtipkamo C-r. Vse, kar smo povedali o ukazu C-s, velja
Dave Love <fx@gnu.org>
parents:
diff changeset
895 tudi za C-r, le smer iskanja je obrnjena.
Dave Love <fx@gnu.org>
parents:
diff changeset
896
Dave Love <fx@gnu.org>
parents:
diff changeset
897
Dave Love <fx@gnu.org>
parents:
diff changeset
898 * VE� OKEN NA ZASLONU
Dave Love <fx@gnu.org>
parents:
diff changeset
899 ---------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
900
Dave Love <fx@gnu.org>
parents:
diff changeset
901 Ena simpati�nih lastnosti Emacsa je, da zna hkrati prikazati ve� oken
Dave Love <fx@gnu.org>
parents:
diff changeset
902 na ekranu, tudi �e ne delamo v grafi�nem na�inu.
Dave Love <fx@gnu.org>
parents:
diff changeset
903
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
904 >> Premaknite kazal�ek v to vrstico in vtipkajte C-u 0 C-l (zadnji
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
905 znak je CONTROL-L, ne CONTROL-1)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
906 >> Zdaj vtipkajte C-x 2, da razdelite zaslon na dve okni.
Dave Love <fx@gnu.org>
parents:
diff changeset
907 V obeh oknih imate odprt ta priro�nik. Kazal�ek je ostal v zgornjem
Dave Love <fx@gnu.org>
parents:
diff changeset
908 oknu.
Dave Love <fx@gnu.org>
parents:
diff changeset
909 >> Pritisnite C-M-v za listanje v spodnjem oknu.
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
910 (�e nimate tipke META, tipkajte ESC C-v).
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
911 >> Vtipkajte C-x o (o kot ,,other``, drugi), da preselite kazal�ek v
Dave Love <fx@gnu.org>
parents:
diff changeset
912 spodnje okno.
Dave Love <fx@gnu.org>
parents:
diff changeset
913 >> S C-v in M-v se v spodnjem oknu premikate po vsebini datoteke.
Dave Love <fx@gnu.org>
parents:
diff changeset
914 Zgornje okno �e vedno ka�e ta navodila.
Dave Love <fx@gnu.org>
parents:
diff changeset
915 >> Ponovni C-x o vas vrne v zgornje okno. Kazal�ek se je vrnil na
Dave Love <fx@gnu.org>
parents:
diff changeset
916 mesto, kjer je bil, preden smo sko�ili v spodnje okno.
Dave Love <fx@gnu.org>
parents:
diff changeset
917
Dave Love <fx@gnu.org>
parents:
diff changeset
918 Z ukazom C-x o lahko preklapljamo med okni. Vsako okno si zapomni, kje
Dave Love <fx@gnu.org>
parents:
diff changeset
919 v oknu je ostal kazal�ek, samo trenutno aktivno okno pa kazal�ek tudi
Dave Love <fx@gnu.org>
parents:
diff changeset
920 v resnici prika�e. Vsi obi�ajni ukazi za urejanje, ki smo se jih
Dave Love <fx@gnu.org>
parents:
diff changeset
921 nau�ili, veljajo za aktivno okno.
Dave Love <fx@gnu.org>
parents:
diff changeset
922
Dave Love <fx@gnu.org>
parents:
diff changeset
923 Ukaz C-M-v je zelo uporaben, kadar urejamo besedilo v enem oknu,
Dave Love <fx@gnu.org>
parents:
diff changeset
924 drugega pa uporabljamo samo za pomo�. Kazal�ek ostaja ves �as v oknu,
Dave Love <fx@gnu.org>
parents:
diff changeset
925 v katerem urejamo, po vsebini spodnjega okna pa se vseeno lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
926 premikamo, ne da bi morali venomer skakati iz enega okna v drugega.
Dave Love <fx@gnu.org>
parents:
diff changeset
927
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
928 C-M-v je primer znaka CONTROL-META. �e imate v resnici tipko META (na
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
929 PC navadno levi Alt), lahko vtipkate C-M-v tako, da dr�ite pritisnjeni
Dave Love <fx@gnu.org>
parents:
diff changeset
930 tako CONTROL kot META, medtem ko vtipkate v. Ni pomembno, katero od
Dave Love <fx@gnu.org>
parents:
diff changeset
931 tipk, CONTROL ali META, pritisnete prvo, saj obe delujeta �ele, ko
Dave Love <fx@gnu.org>
parents:
diff changeset
932 pritisnete znak, ki sledi (v zgornjem primeru ,v`).
Dave Love <fx@gnu.org>
parents:
diff changeset
933
Dave Love <fx@gnu.org>
parents:
diff changeset
934 Nasprotno pa je vrstni red pritiskanja pomemben, �e nimate tipke META
Dave Love <fx@gnu.org>
parents:
diff changeset
935 in namesto nje uporabljate ESC. V tem primeru morate najprej
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
936 pritisniti ESC, potem pa Control-v. Obratna kombinacija, CONTROL-ESC v
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
937 ne deluje. To je zato, ker je ESC znak sam po sebi, ne pa modifikator,
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
938 kot sta CONTROL in META.
Dave Love <fx@gnu.org>
parents:
diff changeset
939
Dave Love <fx@gnu.org>
parents:
diff changeset
940 >> V zgornjem oknu vtipkajte C-x 1, da se znebite spodnjega okna.
Dave Love <fx@gnu.org>
parents:
diff changeset
941
Dave Love <fx@gnu.org>
parents:
diff changeset
942 (�e bi vtipkali C-x 1 v spodnjem oknu, bi se znebili
Dave Love <fx@gnu.org>
parents:
diff changeset
943 zgornjega. Razmi�ljajte o tem ukazu kot ,,Obdr�i samo eno okno, in
Dave Love <fx@gnu.org>
parents:
diff changeset
944 sicer tisto, v katerem sem zdaj.``)
Dave Love <fx@gnu.org>
parents:
diff changeset
945
Dave Love <fx@gnu.org>
parents:
diff changeset
946 Seveda ni nujno, da obe okni ka�eta isto delovno podro�je. �e v enem
Dave Love <fx@gnu.org>
parents:
diff changeset
947 oknu izvedete C-x C-f in poi壕ete novo datoteko, se vsebina drugega
Dave Love <fx@gnu.org>
parents:
diff changeset
948 okna ne spremeni. V vsakem oknu lahko neodvisno obdelujete drugo
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
949 datoteko.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
950
Dave Love <fx@gnu.org>
parents:
diff changeset
951 Pa �e ena pot, kako v dveh oknih prika�ete dve razli�ni datoteki:
Dave Love <fx@gnu.org>
parents:
diff changeset
952
Dave Love <fx@gnu.org>
parents:
diff changeset
953 >> Vtipkajte C-x 4 C-f, in na pozivnik vtipkajte ime ene va�ih
Dave Love <fx@gnu.org>
parents:
diff changeset
954 datotek. Kon�ajte z <Return>. Odpre se �e eno okno in izbrana
Dave Love <fx@gnu.org>
parents:
diff changeset
955 datoteka se pojavi v drugem oknu. Tudi kazal�ek se preseli v drugo
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
956 okno.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
957
Dave Love <fx@gnu.org>
parents:
diff changeset
958 >> Vtipkajte C-x o, da se vrnete nazaj v zgornje okno, in C-x 1, da
Dave Love <fx@gnu.org>
parents:
diff changeset
959 zaprete spodnje okno.
Dave Love <fx@gnu.org>
parents:
diff changeset
960
Dave Love <fx@gnu.org>
parents:
diff changeset
961
Dave Love <fx@gnu.org>
parents:
diff changeset
962 * REKURZIVNI NIVOJI UREJANJA
Dave Love <fx@gnu.org>
parents:
diff changeset
963 ----------------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
964
Dave Love <fx@gnu.org>
parents:
diff changeset
965 V�asih boste pri�li v nekaj, �emur se pravi ,,rekurzivni nivo
Dave Love <fx@gnu.org>
parents:
diff changeset
966 urejanja``. To se vidi po tem, da v statusni vrstici oglati oklepaji
Dave Love <fx@gnu.org>
parents:
diff changeset
967 oklepajo ime glavnega na�ina. V osnovnem na�inu bi, na primer, videli
Dave Love <fx@gnu.org>
parents:
diff changeset
968 [(Fundamental)] namesto (Fundamental).
Dave Love <fx@gnu.org>
parents:
diff changeset
969
Dave Love <fx@gnu.org>
parents:
diff changeset
970 Iz rekurzivnega nivoja urejanja se re�ite, �e vtipkate ESC ESC ESC. To
Dave Love <fx@gnu.org>
parents:
diff changeset
971 zaporedje je vsenamenski ukaz ,,pojdi ven``. Uporabite ga lahko tudi
Dave Love <fx@gnu.org>
parents:
diff changeset
972 za ukinjanje odve�nih oken, ali vrnitev iz pogovornega vmesnika.
Dave Love <fx@gnu.org>
parents:
diff changeset
973
Dave Love <fx@gnu.org>
parents:
diff changeset
974 >> Pritisnite M-x, da odprete pogovorni vmesnik, zatem pa vtipkajte
Dave Love <fx@gnu.org>
parents:
diff changeset
975 ESC ESC ESC, da pridete ven iz njega.
Dave Love <fx@gnu.org>
parents:
diff changeset
976
Dave Love <fx@gnu.org>
parents:
diff changeset
977 Z ukazom C-g ne morete iz rekurzivnega nivoja urejanja, ker C-g
Dave Love <fx@gnu.org>
parents:
diff changeset
978 prekli�e ukaze ali argumente ZNOTRAJ rekurzivnega nivoja.
Dave Love <fx@gnu.org>
parents:
diff changeset
979
Dave Love <fx@gnu.org>
parents:
diff changeset
980
Dave Love <fx@gnu.org>
parents:
diff changeset
981 * DODATNA POMO�
Dave Love <fx@gnu.org>
parents:
diff changeset
982 ---------------
Dave Love <fx@gnu.org>
parents:
diff changeset
983
Dave Love <fx@gnu.org>
parents:
diff changeset
984 V tem uvodu smo posku�ali zbrati dovolj informacij, da lahko za�nete
Dave Love <fx@gnu.org>
parents:
diff changeset
985 Emacs uporabljati. Emacs ponuja toliko, da bi bilo nemogo�e vse to
Dave Love <fx@gnu.org>
parents:
diff changeset
986 zbrati tukaj. Verjetno pa bi se vseeno radi nau�ili kaj o �tevilnih
Dave Love <fx@gnu.org>
parents:
diff changeset
987 koristnih mo�nostih, ki jih �e ne poznate. Emacs ima �e vgrajene
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
988 veliko dokumentacije, do katere lahko pridete s pritiskom na CONTROL-h
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
989 (h kot ,,help``, pomo�).
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
990
Dave Love <fx@gnu.org>
parents:
diff changeset
991 Za pomo� pritisnete C-h, potem pa vtipkate znak, ki pove, kak�no pomo�
Dave Love <fx@gnu.org>
parents:
diff changeset
992 �elite. �e ste poplnoma izgubljeni, vtipkajte C-h ? in Emacs vam bo
Dave Love <fx@gnu.org>
parents:
diff changeset
993 povedal, kak�na pomo� je sploh na voljo. �e ste vtipkali C-h, pa ste
Dave Love <fx@gnu.org>
parents:
diff changeset
994 si premislili, lahko ukaz prekli�ete s C-g.
Dave Love <fx@gnu.org>
parents:
diff changeset
995
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
996 (Na nekaterih sistemih se znak C-h preslika v kaj drugega. To ni
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
997 dobro, in v takem primeru se prito�ite sistemskemu vzdr�evalcu. Medtem
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
998 pa, �e C-h ne prika�e sporo�ila o pomo�i na dnu zaslona, namesto tega
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
999 poskusite pritisniti tipko F1 ali pa vtipkajte M-x help <Return>.)
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1000
Dave Love <fx@gnu.org>
parents:
diff changeset
1001 Najosnovnej�i tip pomo�i prika�e C-h c. Pritisnite C-h, tipko c, zatem
Dave Love <fx@gnu.org>
parents:
diff changeset
1002 pa ukazni znak ali zaporedje ukaznih znakov, in Emacs bo izpisal
Dave Love <fx@gnu.org>
parents:
diff changeset
1003 kratek opis ukaza.
Dave Love <fx@gnu.org>
parents:
diff changeset
1004
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1005 >> Vtipkajte C-h c C-p.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1006 Izpi�e se nekaj takega kot
Dave Love <fx@gnu.org>
parents:
diff changeset
1007
Dave Love <fx@gnu.org>
parents:
diff changeset
1008 C-p runs the command previous-line
Dave Love <fx@gnu.org>
parents:
diff changeset
1009
Dave Love <fx@gnu.org>
parents:
diff changeset
1010 Ukaz je izpisal ime funkcije, ki izvede ukaz. Imena funkcij
Dave Love <fx@gnu.org>
parents:
diff changeset
1011 uporabljamo, kadar pi�emo prilagoditve in raz�iritve Emacsa. Ker pa so
Dave Love <fx@gnu.org>
parents:
diff changeset
1012 navadno imena funkcij izbrana tako, da kaj povedo o tem, kaj funkcija
Dave Love <fx@gnu.org>
parents:
diff changeset
1013 po�ne, bo verjetno to tudi dovolj za kratko osve�itev, �e ste se z
Dave Love <fx@gnu.org>
parents:
diff changeset
1014 ukazom �e kdaj sre�ali.
Dave Love <fx@gnu.org>
parents:
diff changeset
1015
Dave Love <fx@gnu.org>
parents:
diff changeset
1016 Ukazu C-h lahko sledi tudi zaporedje znakov, kot na primer C-x C-s,
Dave Love <fx@gnu.org>
parents:
diff changeset
1017 ali, �e nimate tipke META, <Esc>v.
Dave Love <fx@gnu.org>
parents:
diff changeset
1018
Dave Love <fx@gnu.org>
parents:
diff changeset
1019 Za ve� informacij o ukazu vtipkajte C-h k namesto C-h c.
Dave Love <fx@gnu.org>
parents:
diff changeset
1020
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1021 >> Vtipkajte C-h k C-p.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1022
Dave Love <fx@gnu.org>
parents:
diff changeset
1023 To odpre novo okno in v njem prika�e dokumentacijo o funkciji, obenem
Dave Love <fx@gnu.org>
parents:
diff changeset
1024 z njenim imenom. Ko ste opravili, vtipkajte C-x 1, da se znebite okna
Dave Love <fx@gnu.org>
parents:
diff changeset
1025 z pomo�jo. Tega seveda ni potrebno napraviti takoj, ampak lahko
Dave Love <fx@gnu.org>
parents:
diff changeset
1026 urejate, medtem ko imate odprto okno s pomo�jo, in ga zaprete, ko ste
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
1027 kon�ali.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1028
Dave Love <fx@gnu.org>
parents:
diff changeset
1029 Sledi �e nekaj uporabnih mo�nosti, ki jih ponuja pomo�:
Dave Love <fx@gnu.org>
parents:
diff changeset
1030
Dave Love <fx@gnu.org>
parents:
diff changeset
1031 C-h f Opi�i funkcijo. Kot argument morate podati ime
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
1032 funkcije.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1033
Dave Love <fx@gnu.org>
parents:
diff changeset
1034 >> Poskusite C-h f previous-line<Return>.
Dave Love <fx@gnu.org>
parents:
diff changeset
1035 To izpi�e vse podatke, ki jih ima Emacs o funkciji, ki izvede ukaz C-p.
Dave Love <fx@gnu.org>
parents:
diff changeset
1036
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1037 Podoben ukaz C-h v izpi�e dokumentacijo za spremenljivke, s katerimi
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1038 lahko nastavite obna�anje Emacsa. Ob pozivniku morate vpisati ime
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1039 spremenljivke.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1040
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1041 C-h a Apropos. Vtipkajte klju�no besedo in Emacs bo izpisal
Dave Love <fx@gnu.org>
parents:
diff changeset
1042 vse ukaze, ki vsebujejo to klju�no besedo. Vse te
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1043 ukaze lahko prikli�ete z META-x. Pri nekaterih ukazih
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1044 bo Apropos izpisal tudi eno ali dvoznakovno
Dave Love <fx@gnu.org>
parents:
diff changeset
1045 zaporedje, s katerim dose�ete isti u�inek.
Dave Love <fx@gnu.org>
parents:
diff changeset
1046
Dave Love <fx@gnu.org>
parents:
diff changeset
1047 >> Vtipkajte C-h a file<Return>.
Dave Love <fx@gnu.org>
parents:
diff changeset
1048
Dave Love <fx@gnu.org>
parents:
diff changeset
1049 To odpre novo okno, v katerem so vsa dolga imena ukazov, ki vsebujejo
Dave Love <fx@gnu.org>
parents:
diff changeset
1050 ,,file`` v imenu. Izvedete jih lahko z M-x. Pri nekaterih se izpi�e
Dave Love <fx@gnu.org>
parents:
diff changeset
1051 tudi kratek ukaz, npr. C-x C-f ali C-x C-w pri ukazih find-file in
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
1052 write-file.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1053
Dave Love <fx@gnu.org>
parents:
diff changeset
1054 >> Pritisnite C-M-v, da se sprehajate po oknu s pomo�jo. Poskusite
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
1055 nekajkrat.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1056
Dave Love <fx@gnu.org>
parents:
diff changeset
1057 >> Vtipkajte C-x 1, da zaprete okno s pomo�jo.
Dave Love <fx@gnu.org>
parents:
diff changeset
1058
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
1059 C-h i Priro�niki z navodili za uporabo (tkim. datoteke
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1060 "info"). Ta ukaz vas prestavi v posebno delovno
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1061 podro�je, imenovano "info". V njem lahko prebirate
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1062 priro�nike za programe, ki so name壕eni v sistemu. Z
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1063 ukazom m emacs<Return> denimo dobite priro�nik za
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1064 urejevalnik Emacs. �e sistema Info �e niste
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1065 uporabljali, vtipkajte ? in Emacs vas bo popeljal na
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1066 v�deni izlet po na�inu Info in mo�nostih, ki jih
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1067 ponuja. Ko boste zaklju�ili z branjem tega prvega
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1068 berila, bo priro�nik za Emacs v sistemu Info va�
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1069 glavni vir dokumentacije.
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1070
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1071
47165
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1072 * DRUGE MO�NOSTI
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1073 ----------------
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1074
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1075 �e ve� se lahko nau�ite o Emacsu z branjem priro�nika, bodisi
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1076 natisnjenega, bodisi na zaslonu v sistemu Info (uporabite menu Help
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1077 ali vtipkajte F10 h r). Dve mo�nosti, ki vam bosta morda posebej v�e�,
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1078 sta samodejno zaklju�evanje vrstice, s katerim prihranite nekaj
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1079 tipkanja, in dired, s katerim poenostavimo delo z datotekami.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1080
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1081 Samodejno zaklju�evanje vrstic je na�in, s katerim prihranimo nekaj
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1082 tipkanja. �e �elite denimo preklopiti v delovno podro�je *Messages*,
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1083 je dovolj, da vtipkate C-x b *M<Tab> in Emacs bo sam dopolnil
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1084 preostanek imena delovnega podro�ja. Samodejno zaklju�evanje je
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1085 opisano v sistemu Info v priro�niku za Emacs, razdelek ,,Completion``.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1086
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1087 Dired omogo�a izpis seznama datotek v imeniku (in po mo�nosti tudi
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1088 podimenikih), premikanje po seznamu, obiskovanje (odpiranje),
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1089 preimenovanje, brisanje in druge operacije z datotekami. Dired je
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1090 opisav v sistemu Info v priro�niku za Emacs, razdelek ,,Dired``.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1091
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1092 Priro�nik opisuje tudi mnoge druge mo�nosti Emacsa.
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1093
ed7cb07ea5c7 Updated version.
Pavel Janík <Pavel@Janik.cz>
parents: 44343
diff changeset
1094
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1095 * ZAKLJU�EK
Dave Love <fx@gnu.org>
parents:
diff changeset
1096 -----------
Dave Love <fx@gnu.org>
parents:
diff changeset
1097
Dave Love <fx@gnu.org>
parents:
diff changeset
1098 Zapomnite si, da Emacs zapustite z ukazom C-x C-c. �e bi radi samo
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
1099 za�asno sko�ili v ukazno lupino in se kasneje vrnili v Emacs, pa
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
1100 storite to z ukazom C-z.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1101
Dave Love <fx@gnu.org>
parents:
diff changeset
1102 Ta u�benik je napisan z namenom, da bi bil razumljiv vsem novincem v
Dave Love <fx@gnu.org>
parents:
diff changeset
1103 Emacsu. �e se vam kaj ne zdi jasno napisano, ne valite krivde nase -
Dave Love <fx@gnu.org>
parents:
diff changeset
1104 prito�ite se!
Dave Love <fx@gnu.org>
parents:
diff changeset
1105
Dave Love <fx@gnu.org>
parents:
diff changeset
1106
44343
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1107 * RAZMNO�EVANJE IN RAZ�IRJANJE
3faaa85004f2 New version.
Pavel Janík <Pavel@Janik.cz>
parents: 34304
diff changeset
1108 ------------------------------
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1109
Dave Love <fx@gnu.org>
parents:
diff changeset
1110 Angle�ki izvirnik tega uvoda v Emacs je naslednik dolge vrste tovrstnih
Dave Love <fx@gnu.org>
parents:
diff changeset
1111 besedil, za�en�i s tistim, ki ga je Stuart Cracraft napisal za izvorni
Dave Love <fx@gnu.org>
parents:
diff changeset
1112 Emacs. V sloven壕ino ga je prevedel Primo� Peterlin.
Dave Love <fx@gnu.org>
parents:
diff changeset
1113
Dave Love <fx@gnu.org>
parents:
diff changeset
1114 To besedilo, kot sam GNU Emacs, je avtorsko delo, in njegovo
Dave Love <fx@gnu.org>
parents:
diff changeset
1115 razmno�evanje in raz�irjanje je dovoljeno pod naslednjimi pogoji:
Dave Love <fx@gnu.org>
parents:
diff changeset
1116
65088
f05a048483cc Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 61221
diff changeset
1117 Copyright (C) 1985, 1996, 1998, 2001, 2002, 2003, 2004,
79776
1dd7437446ea Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
1118 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1119
Dave Love <fx@gnu.org>
parents:
diff changeset
1120 Dovoljeno je izdelovati in raz�irjati neokrnjene kopije tega spisa
Dave Love <fx@gnu.org>
parents:
diff changeset
1121 v kakr�nikoli obliki pod pogojem, da je ohranjena navedba o
Dave Love <fx@gnu.org>
parents:
diff changeset
1122 avtorstvu in to dovoljenje, ter da distributer dovoljuje prejemniku
Dave Love <fx@gnu.org>
parents:
diff changeset
1123 nadaljnje raz�irjanje pod pogoji, navedenimi v tem dovoljenju.
Dave Love <fx@gnu.org>
parents:
diff changeset
1124
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47165
diff changeset
1125 Pod pogoji iz prej�njega odstavka je dovoljeno raz�irjati
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1126 spremenjene verzije tega spisa ali njegovih delov, �e je jasno
Dave Love <fx@gnu.org>
parents:
diff changeset
1127 ozna�eno, kdo je nazadnje vnesel spremembe.
Dave Love <fx@gnu.org>
parents:
diff changeset
1128
Dave Love <fx@gnu.org>
parents:
diff changeset
1129 Pogoji za razmno�evanje in raz�irjanje samega Emacsa so malo druga�ni,
Dave Love <fx@gnu.org>
parents:
diff changeset
1130 a v istem duhu. Prosimo, preberite datoteko COPYING in potem dajte
Dave Love <fx@gnu.org>
parents:
diff changeset
1131 kopijo programa GNU Emacs svojim prijateljem. Pomagajte zatreti
Dave Love <fx@gnu.org>
parents:
diff changeset
1132 obstrukcionizem (,,lastni�tvo``) v programju tako, da uporabljate,
Dave Love <fx@gnu.org>
parents:
diff changeset
1133 pi�ete in delite prosto programje!
Dave Love <fx@gnu.org>
parents:
diff changeset
1134
Dave Love <fx@gnu.org>
parents:
diff changeset
1135 ;;; Local Variables:
Dave Love <fx@gnu.org>
parents:
diff changeset
1136 ;;; coding: iso-latin-2
54963
a40f83f2ce7e Set sentence-end-double-space to nil in Local Variables.
Juri Linkov <juri@jurta.org>
parents: 52401
diff changeset
1137 ;;; sentence-end-double-space: nil
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1138 ;;; End:
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
1139
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
1140 ;;; arch-tag: 985059e4-44c6-4ac9-b627-46c8db57acf6