annotate etc/tutorials/TUTORIAL.sk @ 106785:a32698d5bb0c

(format-annotate-function): Only set write-region-post-annotation-function after running to-fn so as not to affect nested write-region calls (bug#5273).
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 10 Jan 2010 00:22:54 -0500
parents c90853557b90
children 1d1d5d9bd884
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82722
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 Tútorial k Emacsu. Podmienky pozri na konci.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2 Do češtiny preložil Milan Zamazal <pdm@zamazal.org>, do slovenčiny Miroslav
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3 Vaško <zemiak@zoznam.sk>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5 Máte pred sebou tútorial k Emacsu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7 Príkazy Emacsu všeobecne využívajú klávesu CONTROL (občas označovanú ako CTRL
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8 alebo CTL) alebo klávesu META (občas označovanú EDIT alebo ALT). Aby sme tieto
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9 názvy nemuseli stále písať v plnom znení, budeme používať nasledujúce skratky:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
10 C-<chr> znamená podržať klávesu CONTROL a stlačiť znak <chr>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
11 Teda C-f znamená: podržte klávesu CONTROL a stlačte f.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
12 M-<chr> znamená podržať klávesu META, EDIT alebo ALT a stlačiť <chr>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
13 Ak nemáte žiadnu z kláves META, EDIT ani ALT, tak namiesto toho
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 stlačte a pustite klávesu ESC a potom <chr>. Klávesu ESC budeme
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15 označovať <ESC>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
16
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
17 Dôležitá poznámka: prácu s Emacsom ukončíte stlačením C-x C-c (dva znaky).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
18 Znaky ">>" na ľavom okraji označujú miesta, kde si máte vyskúšať príkaz. Napr.:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
19 <<Blank lines inserted here by startup of help-with-tutorial>>
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
20 [Prostredná časť obrazovky je prázdna zámerne. Text pokračuje nižšie.]
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
21 >> Teraz stlačte C-v (view next screen) pre posun na ďalšiu obrazovku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22 (Smelo do toho, spravte to pridržaním klávesy control a stlačením v.)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23 Od tejto chvíle by ste toto mali robiť ak dočítate zobrazenú
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
24 obrazovku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 Všimnite si, že pri posuve obrazoviek vždy zostávajú zobrazené dva riadky
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27 z predchádzajúcej obrazovky; to poskytuje určitú náväznosť pri postupnom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28 čítaní textu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 Prvá vec, ktorú potrebujete vedieť je, ako sa v texte pohybovať
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31 z jedného miesta na druhé. Už viete, ako sa posunúť o jednu obrazovku
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32 vpred, pomocou C-v. Na prechod o obrazovku späť použite M-v
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 (podržte klávesu META a stlačte v alebo stlačte <ESC>v ak
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 nemáte klávesy META, EDIT ani ALT).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 >> Skúste stlačiť M-v a potom C-v, niekoľko krát to zopakujte.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39 * ZHRNUTIE
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 ----------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
42 Na prezeranie obrazovkových stránok sú užitočné nasledujúce príkazy:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
43
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
44 C-v Posuv o obrazovku vpred
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45 M-v Posuv o obrazovku späť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
46 C-l Zmazanie obrazovky a znovuzobrazenie celého textu,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47 pritom sa text pod kurzorom presunie k stredu obrazovky.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 (Ide o Control-L a nie Control-1.)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50 >> Nájdite kurzor a zapamätajte si, aký je okolo neho text.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 Potom stlačte C-l.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 Nájdite kurzor znovu a všimnite si, že je okolo neho ten istý text.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54 Na pohyb po celých obrazovkách môžete tiež použiť klávesy PageUp a PageDown,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 ak ich Váš terminál má, ale pre pohyb sú efektívnejšie klávesy C-v a M-v.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 * ZÁKLADNÉ OVLÁDANIE KURZORU
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 ----------------------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60 Pohyb medzi obrazovkami je užitočný, ale ako sa premiestnime na konkrétne
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61 miesto v texte na obrazovke?
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 Je to možné dosiahnuť niekoľkými spôsobmi. Najzákladnejším spôsobom je
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 použitie príkazov C-p, C-b, C-f a C-n. Každý z týchto príkazov presunie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 kurzor na obrazovke o jeden riadok alebo stĺpec v danom smere.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66 Tu je tabuľka znázorňujúca smer posunu kurzoru vyvolaný týmito štyrmi
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67 príkazmi:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69 Predchádzajúci riadok, C-p
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70 :
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71 :
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 Dozadu, C-b .... Momentálna pozícia kurzoru .... Dopredu, C-f
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73 :
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74 :
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75 Nasledujúci riadok, C-n
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 >> Presuňte kurzor na prostredný riadok tohto diagramu pomocou
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78 C-n alebo C-p. Potom stlačte C-l, aby ste na obrazovke videli celý
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79 diagram vycentrovaný.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
81 Pravdepodobne si tieto príkazy ľahko zapamätáte podľa začiatočných písmen
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82 anglických názvov: P ako previous (predchádzajúci), N ako next (nasledujúci),
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83 B ako backward (späť), F ako forward (vpred). Sú to základné príkazy pre
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84 pohyb kurzoru a budete ich používať stále, takže by bolo veľmi vhodné, keby
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85 ste sa ich teraz naučili.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 >> Stlačte niekoľko krát C-n, aby ste kurzor presunuli na tento riadok.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
88
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89 >> Posuňte kurzor dovnútra riadku pomocou niekoľkých C-f a potom hore
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
90 stlačením C-p. Pozorujte, čo C-p robí, keď je kurzor uprostred riadku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
91
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92 Každý riadok textu končí znakom nového riadku, ktorý ho oddeľuje od
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
93 nasledujúceho riadku. Znakom nového riadku by mal byť ukončený aj posledný
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
94 riadok súboru (napriek tomu, že to Emacs nevyžaduje).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96 >> Vyskúšajte C-b na začiatku riadku. Kurzor by sa mal presunúť na koniec
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
97 predchádzajúceho riadku, pretože ho tým presuniete cez znak nového riadku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 C-f funguje analogicky ako C-b, tj. na konci riadku dôjde k presunu na
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
100 ďalší riadok.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
101
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
102 >> Stlačte niekoľkokrát C-b, takže uvidíte, kde sa nachádza kurzor.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103 Potom stláčajte C-f, aby ste sa vrátili na koniec riadku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104 Potom stlačte ešte raz C-f, aby ste sa presunuli na nasledujúci
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
105 riadok.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107 Keď kurzorom prejdete cez horný alebo dolný okraj obrazovky, posunie sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
108 text za príslušným okrajom na obrazovku. Táto vlastnosť sa nazýva
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
109 "scrollovanie". Umožňuje premiestniť kurzor na ľubovoľné miesto v texte,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110 bez toho, aby kurzor opustil obrazovku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 >> Skúste posunúť kurzor pod dolný okraj obrazovky pomocou C-n a pozorujte,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113 čo sa stane.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115 Ak je posun po znakoch príliš pomalý, môžete sa pohybovať po
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116 slovách. M-f (Meta-f) robí posun o slovo vpred a M-b robí posun
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
117 o slovo späť.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
118
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
119 >> Stlačte niekoľko krát M-f a M-b.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 Ak sa kurzor nachádza uprostred slova, M-f presunie kurzor na koniec
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 tohto slova. Ak sa nachádza kurzor v medzere medzi slovami, M-f presunie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 kurzor na koniec nasledujúceho slova. M-b pracuje analogicky v opačnom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124 smere.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126 >> Stlačte niekoľko krát M-f a M-b spolu s C-f a C-b, aby ste videli
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127 výsledky príkazov M-f a M-b vykonávaných z rôznych miest vnútri slov
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 a medzi nimi.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 Všimnite si analógie medzi C-f a C-b na jednej strane a M-f a M-b na
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 strane druhej. Meta znaky sú veľmi často využívané pre operácie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 vzťahujúce sa na entity definované jazykom (slová, vety, odstavce),
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 naopak Control znaky pracujú na základných prvkoch nezávislých na tom,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 čo práve editujete (znaky, riadky, a pod.).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 Táto analógia platí tiež pre riadky a vety: C-a a C-e vykonáva presun
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 na začiatok a koniec riadku, M-a a M-e vykonáva presun na začiatok a koniec
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138 vety.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 >> Skúste niekoľko krát C-a a potom niekoľko krát C-e.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141 Skúste niekoľko krát M-a a potom niekoľko krát M-e.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143 Všimnite si, že opakované C-a nerobí nič, ale opakované M-a vždy
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 vykoná presun na ďalšiu vetu. Princípu analógie to síce príliš
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 nezodpovedá, ale napriek tomu je toto chovanie možné považovať za prirodzené.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 Pozícia kurzoru v texte sa tiež nazýva "bod" ("point"). Aby sme to
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 parafrázovali, kurzor je vidieť na obrazovke v mieste, kde je bod umiestnený
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 v texte.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151 Tu je prehľad jednoduchých operácií pre pohyb kurzoru vrátane príkazov pre
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 pohyb medzi slovami a vetami:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 C-f Presun o znak vpred
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155 C-b Presun o znak späť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 M-f Presun o slovo vpred
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 M-b Presun o slovo späť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160 C-n Presun na nasledujúci riadok
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161 C-p Presun na predchádzajúci riadok
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163 C-a Presun na začiatok riadku
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 C-e Presun na koniec riadku
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 M-a Presun späť na začiatok vety
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167 M-e Presun vpred na koniec vety
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 >> Vyskúšajte si teraz niekoľko krát všetky tieto príkazy kvôli cviku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170 Sú to najpoužívanejšie príkazy.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 Ďalšie dva dôležité príkazy pre pohyb kurzoru sú M-< (Meta menšie-ako),
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173 ktorý vykoná presun na začiatok celého textu, a M-> (Meta väčší-ako),
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 ktorý vykoná presun na koniec celého textu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 Na väčšine terminálov je "<" nad čiarkou, takže pre vyvolanie tohto znaku
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 musíte použiť klávesu Shift. Na týchto termináloch je teda nutné použiť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 klávesu Shift aj v prípade príkazu M-<; bez klávesy Shift by ste stlačili
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179 M-čiarka.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181 >> Skúste teraz M-< pre presun na začiatok tútorialu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182 Použite potom opakovane C-v, aby ste sa opäť vrátili sem.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184 >> Skúste teraz M-> pre presun na koniec tútorialu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 Použite potom opakovane M-v, aby ste sa opäť vrátili sem.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187 Kurzor môžete presúvať tiež pomocou kurzorových kláves (klávesy
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188 so šípkami), ak ich Váš terminál má. My Vám však doporučujeme naučiť sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189 C-b, C-f, C-n a C-p, a to z troch dôvodov. Za prvé, tieto klávesy fungujú
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190 na všetkých typoch terminálov. Za druhé, akonáhle raz získate cvik
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191 v používaní Emacsu, zistíte, že používánie týchto CTRL znakov je
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192 rýchlejšie ako používanie kurzorových kláves (pretože nemusíte presúvať
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193 ruku z písacej pozície). Za tretie, ak si zvyknete používať tieto CTRL-znak
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194 príkazy, ľahko sa naučíte používať iné pokročilé príkazy pre pohyb
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195 kurzoru.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197 Väčšina príkazov Emacsu akceptuje numerický argument; ten pre väčšinu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198 príkazov slúži ako opakovač. Počet opakovaní príkazu zadáte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199 prostredníctvom stlačenia C-u nasledovaného stlačením príslušných číslic pred
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200 vyvolaním príkazu. Ak máte META (alebo EDIT či ALT) klávesu, existuje
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201 alternatívna možnosť zadania numerického argumentu: pridržte klávesu META
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202 a stlačte príslušné číslice. Doporučujeme naučiť sa C-u metódu,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203 pretože tá funguje na akomkoľvek terminále. Číselný argument sa tiež nazýva
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 "prefixový argument", pretože ho píšete ešte pred príkazom, na ktorý sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205 vzťahuje.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
206
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207 Napríklad C-u 8 C-f vykoná presun o osem znakov vpred.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209 >> Skúste použiť C-n alebo C-p s numerickým argumentom, na presun kurzoru
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 k tomuto riadku s jediným príkazom.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212 Väčšina príkazov používa numerický argument ako opakovač, ale niektoré príkazy
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213 ho používajú iným spôsobom. Zopár príkazov (ale žiaden z tých, ktoré ste sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
214 doteraz naučili) ho používa ako príznak -- prítomnosť číselného argumentu bez
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
215 ohľadu na jeho hodnotu spôsobí, že sa príkaz správa ináč.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 Iným druhom výnimky sú C-v a M-v. Ak dostanú numerický argument, posunú
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218 obrazovku hore alebo dole o zodpovedajúci počet riadkov namiesto obrazoviek.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219 Napríklad C-u 4 C-v posunie obrazovku o 4 riadky.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 >> Skúste teraz stlačiť C-u 8 C-v.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223 To by malo posunúť obrazovku o 8 riadkov hore. Pokiaľ by ste ju chceli
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224 posunúť naspäť dole, môžete dať argument príkazu M-v.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226 Ak používate X Windows, mali by ste mať na ľavej strane emacsového okna
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 vysokú obdĺžnikovú oblasť, nazvanú scrollbar. Môžete potom text
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228 posúvať klikaním myšou na scrollbar.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230 >> Skúste stlačiť prostredné tlačítko na vrchole zvýraznenej oblasti
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231 vo vnútri scrollbaru. To by malo text posunúť na pozíciu danú tým, ako
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232 vysoko alebo nízko ste klikli.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
233
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234 >> Skúste pri stlačenom prostrednom tlačidle posúvať myšou hore a dole.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235 Uvidíte, ako sa text posúva hore a dole podľa toho, ako
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 hýbete myšou.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239 * KEĎ EMACS NEREAGUJE
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
240 ---------------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
241
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242 Ak Emacs prestane reagovať na Vaše príkazy, môžete prebiehajúcu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243 činnosť bezpečne zastaviť pomocou C-g. Pomocou C-g môžete zastaviť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 príkaz, ktorého činnosť trvá príliš dlho.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246 C-g môžete použiť tiež pre odstránenie numerického argumentu príkazu,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
247 ktorý nechcete dokončiť.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
248
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249 >> Stlačte C-u 100 pre vytvorenie numerického argumentu 100 a potom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
250 stlačte C-g. Teraz stlačte C-f. Kurzor by sa mal posunúť iba
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
251 o jeden znak, pretože ste argument zrušili prostredníctvom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252 C-g.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
254 Ak ste omylom stlačili <ESC>, môžete sa ho zbaviť pomocou C-g.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
257 * DEAKTIVOVANÉ PRÍKAZY
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 ----------------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
260 Niektoré príkazy Emacsu sú "deaktivované" ("disabled"), aby ich
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
261 začínajúci používatelia nemohli vyvolať náhodne.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263 Ak vyvoláte niektorý z deaktivovaných príkazov, Emacs zobrazí hlásenie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264 oznamujúce, ktorý príkaz to bol, s otázkou, či chcete tento príkaz
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265 vykonať.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
267 Ak naozaj chcete príkaz vyskúšať, stlačte medzerník ako odpoveď
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
268 na túto otázku. Zvyčajne, ak nechcete deaktivovaný príkaz
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
269 vykonať, odpovedzte na túto otázku pomocou "n".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271 >> Stlačte C-x C-l (čo je deaktivovaný príkaz),
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
272 potom na otázku odpovedzte n.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
273
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
274
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
275 * OKNÁ
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
276 ------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
278 Emacs môže mať niekoľko okien (windows), pritom každé z nich zobrazuje svoj
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
279 vlastný text. Ako viac okien používať, objasníme neskôr. Teraz chceme
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
280 objasniť, ako sa zbaviť nadbytočných okien a vrátiť sa do základnej
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
281 jednookennej editácie. Je to jednoduché:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
282
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
283 C-x 1 Jedno okno (tj. zrušenie všetkých ostatných okien)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
284
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
285 Teda vloženie Control-x nasledované číslicou 1. C-x 1 rozšíri okno
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286 obsahujúce kurzor cez celú obrazovku. Zruší to všetky ostatné okná.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288 >> Presuňte kurzor na tento riadok a stlačte C-u 0 C-l
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
289 >> Stlačte Control-h k Control-f.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
290 Pozorujte, ako sa aktuálne okno zmenší a objaví sa nové okno
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
291 kvôli zobrazeniu dokumentácie pre príkaz Control-f.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
292
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
293 >> Stlačte C-x 1 a pozorujte, ako okno s dokumentáciou zmizne.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
294
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
295 Tento príkaz sa odlišuje od už naučených príkazov tým, že pozostáva z dvoch
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
296 znakov. Začína znakom CONTROL-x. Exostuje celá séria príkazov začínajúcich
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297 na CONTROL-x; veľa z nich sa týka okien, súborov, bufferov a súvisiacich vecí.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
298 Tieto príkazy pozostávajú z dvoch, troch alebo štyroch znakov.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
299
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
300
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 * VKLADANIE A MAZANIE
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
302 ---------------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
303
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
304 Ak chcete vložiť text, proste ho napíšte. Znaky, ktoré vidíte,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
305 ako A, 7, *, atď., sú Emacsom chápané ako text a vkladané okamžite.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
306 Pre vloženie znaku nového riadku stlačte <Return> (klávesu Enter).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
307
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
308 Posledný znak, ktorý ste napísali, môžete zmazať stlačením <Delback>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309 <Delback> je klávesa na klávesnici -- tá istá, ktorú normálne používate na
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
310 zmazanie naposledy napísaného znaku. Je to zvyčajne veľká klávesa pár riadkov
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
311 nad klávesou <Return>, a je väčšinou označovaná ako "Delete", "Del" alebo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
312 "Backspace".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
314 Ak je veľká klávesa na tom mieste označená ako "Backspace", potom je to ona,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
315 ktorú budete používať ako <Delback>. Môže tam byť niekde inde ešte klávesa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
316 označená ako "Delete", ale to nie je <Delback>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
317
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
318 Všeobecne, <Delback> maže znak bezprostredne pred momentálnou pozíciou kurzoru.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
319
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
320 >> Vykonajte to teraz -- napíšte niekoľko znakov a potom ich zmažte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321 niekoľkými stlačeniami <Delback>. Nebojte sa zmien v tomto súbore;
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322 originálny tútorial sa nezmení. Toto je Vaša osobná kópia.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
324 Keď sa riadok textu zväčší natoľko, že presiahne jeden riadok obrazovky, je
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
325 zobrazený na viacerých riadkoch obrazovky. Riadok textu, ktorý pokračuje na
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
326 ďalšom riadku obrazovky, je indikovaný spätným lomítkom ("\") (alebo, ak
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
327 používate grafický systém, malá zakrivená šípka) na pravom okraji obrazovky.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
328
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
329 >> Vkladajte text, pokiaľ nedosiahnete pravého okraju, a pokračujte vo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330 vkladaní. Objaví sa Vám pokračovací riadok.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332 >> Použite <Delback> pre zmazanie textu, pokiaľ se riadok textu opäť nevojde na
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
333 jeden riadok obrazovky. Pokračovací riadok zmizne.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
334
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
335 Znak nového riadku môžete zmazať ako ktorýkoľvek iný znak. Zmazanie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336 znaku nového riadku medzi dvoma riadkami spôsobí ich spojenie do jediného
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
337 riadku. Ak je výsledný riadok príliš dlhý na to, aby sa vošiel na šírku
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
338 obrazovky, bude zobrazený pokračovacím riadkom.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
340 >> Presuňte kurzor na začiatok riadku a stlačte <Delback>. To tento
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
341 riadok spojí s riadkom predchádzajúcim.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
342
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
343 >> Stlačte <Return> pre znovuvloženie zmazaného znaku nového riadku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
344
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345 Spomeňte si, že väčšina príkazov Emacsu môže dostať počet opakovaní;
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
346 vrátane textových znakov. Opakovanie textových znakov ich vloží
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
347 niekoľko krát.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
348
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
349 >> Vyskúšajte si to -- stlačte C-u 8 * pre vloženie ********.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
350
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
351 Teraz už poznáte najzákladnejšie spôsoby, ako niečo v Emacse napísať a ako
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352 opravovať chyby. Môžete ale tiež mazať text po slovách alebo po riadkoch.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 Tu je zhrnutie operácií pre mazanie textu:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
355 <Delback> Zmazanie znaku bezprostredne pred kurzorom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
356 C-d Zmazanie znaku nasledujúceho za kurzorom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358 M-<Delback> Zrušenie slova bezprostredne pred kurzorom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
359 M-d Zrušenie slova nasledujúceho za kurzorom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
360
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
361 C-k Zrušenie textu od pozície kurzoru do konca riadku
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
362 M-k Zrušenie textu do konca aktuálnej vety
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
363
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
364 Všimnite si, že <Delback> a C-d, resp. M-<Delback> a M-d, rozširujú paralelu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 začatú C-f a M-f (pravda, <Delback> naozaj nie je control znak, ale tým sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
366 nebudeme trápiť). C-k a M-k sú ako C-e a M-e v zmysle vzťahu riadkov k vetám.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
368 Ľubovoľnú časť buffera môžete zrušiť aj nasledujúcim spôsobom. Presuňte sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369 na koniec tejto časti a stlačte C-@ alebo C-SPC (ľubovoľnú z týchto
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370 kombinácií). (SPC znamená medzerník.) Presuňte sa na druhý koniec tejto
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371 časti a stlačte C-w. Text medzi týmito pozíciami bude zrušený.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
372
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
373 >> Presuňte kurzor na písmeno Ľ na začiatku predchádzajúceho odstavca.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
374 >> Stlačte C-SPC. Emacs by mal zobraziť v spodnom riadku obrazovky správu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 "Mark set".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
376 >> Presuňte kurzor na písmeno c v slove "koniec" na druhom riadku
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
377 odstavca.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
378 >> Stlačte C-w. Text, ktorý začína písmenom L a končí pred písmenom "c"
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
379 bude zrušený.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
380
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
381 Uvedomte si, že rozdiel medzi "rušením" ("killing") a "mazaním"
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
382 ("deleting") je ten, že "zrušené" veci môžu byť vhodené späť, zatiaľ čo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
383 "zmazané" nie. Všeobecne príkazy, ktoré môžu zmazať väčšie množstvo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
384 textu, ukladajú text, zatiaľ čo príkazy, ktoré mažú jediný znak alebo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
385 iba prázdne riadky a medzery, mazaný text neukladajú.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
386
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387 >> Presuňte kurzor na začiatok neprázdneho riadku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388 Potom stlačte C-k pre zrušenie textu na tomto riadku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389 >> Stlačte C-k druhý krát. Uvidíte, že to zruší znak nového riadku, ktorý
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
390 je za týmto riadkom.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 Všimnite si, že jedno C-k zruší obsah riadku a druhé C-k zruší riadok
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 samotný a posunie všetky ďalšie riadky hore. C-k spracováva numerický
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394 argument špeciálne: zruší zodpovedajúci počet riadkov VRÁTANE ich
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395 obsahu. To už nie je opakovanie. C-u 2 C-k zruší dva riadky a ich
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396 obsah; dvojité stlačenie C-k by toto obvykle nespravilo.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
398 Vracanie textov späť sa nazýva "vhadzovanie" ("yanking"). (Predstavte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
399 si opätovné vhadzovanie, vracanie späť textu, ktorý bol odstránený.)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400 Zmazaný text môžete vhodiť buď na to isté miesto, odkiaľ bol zmazaný,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401 alebo na iné miesto v bufferi, alebo dokonca aj do iného súboru.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 Text môžete vhodiť aj viac krát, keď vytvárate jeho ďalšie kópie.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 Príkazom na vhadzovanie je C-y. Tento príkaz vloží posledný zmazaný
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405 text na pozíciu, na ktorej sa nachádza kurzor.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407 >> Skúste to; stlačte C-y pre vhodenie textu späť.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409 Ak stlačíte C-k niekoľko krát po sebe. všetok zmazaný text je uložený
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
410 spolu tak, aby bolo možné vhodiť späť všetky riadky naraz.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
411
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
412 >> Stlačte niekoľko krát C-k.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
413
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
414 Teraz obnovte naposledy zrušený text:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
415
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
416 >> Stlačte C-y. Potom posuňte kurzor o niekoľko riadkov nižšie a stlačte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
417 C-y znovu. Teraz vidíte, ako je možné kopírovať text.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
418
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
419 Čo keď máte nejaký text, ktorý by ste radi vhodili späť a potom zrušíte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
420 niečo iného? C-y by vložilo posledný zrušený text. Ale predchádzajúci
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
421 text ni je stratený. Môžete ho získať späť použitím príkazu M-y. Potom,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
422 čo spravíte C-y pre získanie posledného zrušeného textu, stlačenie M-y
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
423 vymení tento vhodený text za predchádzajúci zrušený text. Ďalšími a
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
424 ďalšími stlačeniami M-y dostávate predchádzajúce a predchádzajúce zrušené
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
425 texty. Keď dosiahnete text, ktorý hľadáte, nemusíte s ním pre jeho
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
426 uchovanie nič ďalšieho robiť. Jednoducho vhodený text ponechajte, kde
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
427 je, a pokračujte v editácii.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
428
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
429 Ak opakujete M-y dostatočne dlho, dostanete se späť k východziemu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
430 bodu (posledne zrušenému textu).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
431
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
432 >> Zrušte riadok, presuňte kurzor niekam inam a zrušte iný riadok.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
433 Potom vykonajte C-y pre vrátenie druhého zrušeného riadku.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
434 Potom stlačte M-y a vhodený riadok bude nahradený prvým zrušeným riadkom.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
435 Opakujte M-y a pozorujte, čo dostávate. Pokračujte v tom, pokiaľ sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
436 znova neobjaví druhý zrušený riadok a potom niekoľko ďalších.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
437 Ak chcete, môžete skúsiť predať M-y kladné a záporné argumenty.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
438
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
439
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
440 * UNDO
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
441 ------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
442
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
443 Ak vykonáte v texte zmenu a potom zistíte, že to bol omyl, môžete
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
444 zmenu vrátiť príkazom undo, C-x u.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
445
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
446 C-x u obvykle vráti zmeny vykonané jedným príkazom; pokiaľ C-x u
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
447 zopakujete niekoľko krát po sebe, každé opakovanie vráti jeden ďalší
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
448 príkaz.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
449
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
450 Sú ale dve výnimky: príkazy, ktoré nemenia text, sa nepočítajú (to
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
451 zahŕňa príkazy pre pohyb kurzoru a rolovanie) a znaky vkladajúce
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
452 samy seba sú obvykle spracovávané v skupinách až po 20. (To je kvôli
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
453 tomu, aby sa zredukoval počet C-x u nutných pre vrátenie vkladaného
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
454 textu.)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
455
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
456 >> Zrušte tento riadok pomocou C-k, stlačte potom C-x u a riadok by sa mal
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
457 znova objaviť.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
458
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
459 Alternatívny undo príkaz je C-_; pracuje rovnako ako C-x u, je však
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
460 menej pracné ho aplikovať niekoľko krát za sebou. Nevýhodou C-_ je, že
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
461 na niektorých klávesniciach nie je jasné, ako ho vyvolať. To je dôvod,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
462 prečo ponúkame aj C-x u. Na niektorých termináloch môžete C-_ vyvolať
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
463 stlačením / pri stlačenom CTRL.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
464
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
465 Numerický argument pre C-_ a C-x u funguje ako počet opakovaní.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
466
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
467 Pomocou príkazu undo môžete vrátiť zrušený aj zmazaný text. Rozdiel medzi
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
468 mazaním a rušením textu ovplyvňuje možnosť vhodenia tohto textu pomocou
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
469 C-y, neovplyvňuje ale možnosti príkazu undo.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
470
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
471
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
472 * SÚBORY
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
473 --------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
474
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
475 Aby text, ktorý editujete, zostal trvale uchovaný, musíte ho uložiť do
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
476 súboru. Inak by bol po ukončení Emacsu stratený. Svoju editáciu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
477 spojíte so súborom "vyhľadaním" ("finding") súboru. (Tiež sa to
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
478 nazýva "navštívenie" ("visiting") súboru.)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
479
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
480 Vyhľadanie súboru znamená, že vidíte jeho obsah v Emacse. V mnohých
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
481 ohľadoch je to, ako by ste editovali priamo ten súbor. Napriek tomu zmeny,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
482 ktoré prostredníctvom Emacsu robíte, sa nestanú trvalými, pokiaľ tieto
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
483 zmeny do súboru "neuložíte" ("save"). Tým sa zamedzí nechcenému ponechaniu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
484 čiastočne zmeneného súboru v systéme. Dokonca aj keď súbor uložíte,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
485 Emacs uchová pôvodný súbor pod zmeneným názvom pre prípad, že by ste
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
486 zistili, že vaše úpravy boli chybné.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
487
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
488 Keď sa pozriete do dolnej časti obrazovky, uvidíte riadok, ktorý začína a
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
489 končí pomlčkami a na začiatku má "--:-- TUTORIAL.sk" alebo niečo podobného.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
490 Táto časť obrazovky obvykle obsahuje meno súboru, ktorý je práve
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
491 navštívený. Akurát teraz máte navštívený súbor nazvaný "TUTORIAL.sk",
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
492 ktorý je Vašou osobnou čmáraciou kópiou tútorialu Emacsu. Keď v Emacse
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
493 vyhľadáte súbor, jeho meno sa objaví presne na tom mieste.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
494
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
495 Ďalšou vecou súvisiacou s príkazom pre vyhľadanie súboru je to, že musíte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
496 povedať, ktoré meno súboru chcete. Hovoríme, že príkaz "číta argument
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
497 z terminálu" (v tomto prípade je argumentom meno súboru). Potom, čo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
498 vyvoláte príkaz
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
499
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
500 C-x C-f Vyhľadanie súboru
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
501
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
502 Emacs sa Vás opýta na meno súboru. Meno súboru, ktoré píšete, sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
503 objavuje v spodnom riadku obrazovky, ktorý sa v tejto situácii nazýva
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
504 minibuffer. Pre editáciu mena súboru môžete používať obvyklé editačné
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
505 príkazy Emacsu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
506
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
507 Zadávanie mena súboru (všeobecne akýkoľvek vstup z minibuffera) môžete
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
508 zrušiť príkazom C-g.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
509
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
510 >> Stlačte C-x C-f a potom C-g. To minibuffer zruší a tiež to zruší
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
511 príkaz C-x C-f, ktorý minibuffer použil. Takže nevyhľadáte žiadny
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
512 súbor.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
513
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
514 Po napísaní mena súboru stlačte <Return> na jeho ukončenie.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
515 Príkaz C-x C-f potom začne pracovať a vyhľadá súbor, ktorý ste zvolili.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
516 Po skončení príkazu C-x C-f minibuffer zmizne.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
517
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
518 Po malej chvíli sa obsah súboru objaví na obrazovke a môžete ho
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
519 editovať. Keď chcete zmeny natrvalo uložiť, použite príkaz
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
520
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
521 C-x C-s Uloženie súboru
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
522
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
523 To skopíruje text z Emacsu do súboru. Keď to spravíte prvý krát, Emacs
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
524 premenuje pôvodný súbor na súbor s novým menom, aby nebol stratený.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
525 Nové meno je vytvorené pridaním "~" na koniec pôvodného mena súboru.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
526
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
527 Keď je ukladanie dokončené, Emacs zobrazí meno zapísaného súboru.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
528 Mali by ste ukladať rozumne často, aby ste nestratili príliš veľa práce
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
529 v prípade pádu systému.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
530
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
531 >> Stlačte C-x C-s pre uloženie Vašej kópie tútorialu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
532 Malo by to zobraziť "Wrote ...TUTORIAL.sk" v spodnom riadku obrazovky.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
533
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
534 Existujúci súbor môžete vyhľadať, aby ste ho mohli prehliadať alebo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
535 editovať. Môžete tiež vyhľadať súbor, ktorý ešte neexistuje. To je
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
536 spôsob, akým sa dá vytvoriť súbor v Emacse: vyhľadajte súbor, ktorý
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
537 bude na začiatku prázdny a potom začnite vkladať text určený pre tento
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
538 súbor. Keď požiadate o uloženie, Emacs skutočne vytvorí súbor
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
539 s textom, ktorý ste vložili. Od tej chvíle sa potom môžete cítiť, ako
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
540 keby ste editovali už existujúci súbor.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
541
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
542
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
543 * BUFFERY
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
544 ---------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
545
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
546 Ak vyhľadáte pomocou C-x C-f druhý súbor, prvý súbor v Emacse
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
547 zostáva. Môžete sa doň späť prepnúť jeho opätovným vyhľadaním
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
548 pomocou C-x C-f. Týmto spôsobom môžete do Emacsu dostať pomerne veľa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
549 súborov.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
550
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
551 >> Vytvorte súbor pomenovaný "foo" stlačením C-x C-f foo <Return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
552 Potom vložte nejaký text, zmeňte ho a uložte "foo" stlačením C-x C-s.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
553 Nakoniec stlačte C-x C-f TUTORIAL.sk <Return>, čím sa vrátite späť do
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
554 tútorialu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
555
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
556 Emacs ukladá text každého súboru do objektu nazývaného "buffer".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
557 Vyhľadanie súboru vytvorí v Emacse nový buffer. Ak chcete vidieť zoznam
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
558 bufferov, ktoré momentálne existujú vo Vašom procese Emacs, stlačte:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
559
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
560 C-x C-b Zoznam bufferov
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
561
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
562 >> Skúste teraz C-x C-b.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
563
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
564 Uvidíte, že každý buffer má v zozname meno a môže tam mať tiež meno súboru,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
565 ktorého text obsahuje. AKÝKOĽVEK text, ktorý vidíte v emacsovom okne, je vždy
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
566 súčasťou nejakého bufferu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
567
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
568 >> Stlačte C-x 1, aby ste sa zbavili zoznamu bufferov.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
569
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
570 Ak máte niekoľko bufferov, iba jeden z nich je "aktuálny". Je to ten buffer,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
571 ktorý práve upravujete. Ak chcete upravovať iný buffer, musíte sa doňho
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
572 "prepnúť". Ak sa chcete prepnúť do bufferu so súborom, môžete ho znova otvoriť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
573 príkazom C-x C-f. Ale existuje jednoduchší spôsob: použite príkaz C-x b. Pri
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
574 tomto príkaze musíte napísať meno bufferu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
575
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
576 >> Napíšte C-x b foo <Return> na vrátenie sa do bufferu "foo", ktorý uchováva
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
577 text súboru "foo". Potom napíšte C-x b TUTORIAL.sk <Return> na vrátenie sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
578 do tohto návodu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
579
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
580 Väčšinu času, meno bufferu je také isté ako meno súboru (bez názvu adresára).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
581 Ale nie je to vždy pravda. Zoznam bufferov vytvorený s C-x C-b vždy ukáže mená
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
582 každého bufferu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
583
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
584 HOCAKÝ text, ktorý vidíte v okne Emacsu je vždy časť nejakého bufferu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
585 Niektoré buffery nezodpovedajú súborom. Napríklad, buffer pomenovaný
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
586 "*Buffer List*" nemá žiadny súbor. Je to buffer, ktorý obsahuje zoznam
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
587 bufferov, vytvorený pomocou C-x C-b. Buffer nazvaný "*Messages*" tiež
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
588 nezodpovedá súboru¨obsahuje správy, ktoré sa objavili na spodnom riadku počas
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
589 vášho sedenia s Emacsom.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
590
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
591 >> Napíšte C-x b *Messages* <Return> a pozrite sa na buffer so správami. Potom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
592 napíšte C-x b TUTORIAL.sk <Return> na vrátenie sa do tohto návodu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
593
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
594 Ak zmeníte text jedného súboru a potom vyhľadáte iný súbor,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
595 nespôsobí to uloženie prvého súboru. Jeho zmeny zostávajú v Emacse
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
596 uchované v jemu zodpovedajúcom buffere. Vytvorenie a úprava druhého
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
597 súboru nemá žiadny vplyv na buffer prvého súboru. To je veľmi
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
598 užitočné, ale tiež to znamená, že potrebujete vhodný spôsob, ako uložiť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
599 buffer prvého súboru. Nutnosť prepnúť sa späť pomocou C-x C-f, aby
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
600 ho bolo možné uložiť prostredníctvom C-x C-s, by bola nemiestne
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
601 obťažujúca. Takže máme
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
602
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
603 C-x s Uloženie niektorých bufferov
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
604
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
605 C-x s sa Vás spýta na každý buffer, ktorý obsahuje zmeny, ktoré ste
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
606 neuložili. Pre každý taký buffer sa Vás spýta, či ho má uložiť.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
607
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
608 >> Vložte riadok textu a potom stlačte C-x s.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
609 Emacs by sa Vás mal opýtať, či má byť uložený buffer nazvaný TUTORIAL.sk.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
610 Odpovedzte na túto otázku áno (yes) stlačením "y".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
611
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
612
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
613 * ROZŠIROVANIE SADY PRÍKAZOV
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
614 ----------------------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
615
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
616 Existuje omnoho, omnoho viac príkazov Emacsu, ako tie, ktoré by vôbec mohli
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
617 byť rozmiestnené na všetky control a meta znaky. Emacs tento problém
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
618 obchádza prostredníctvom X (eXtend) príkazu. Ten vzniká dvoma spôsobmi:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
619
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
620 C-x Znakový eXtend. Nasledovaný jedným znakom.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
621 M-x Pomenovaný príkaz eXtend. Nasledovaný dlhým názvom.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
622
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
623 To sú príkazy, ktoré sú všeobecne užitočné, ale menej často používané
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
624 ako tie, ktoré ste sa už naučili. Už ste videli dva z nich: súborové
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
625 príkazy C-x C-f pre vyhľadanie a C-x C-s pre uloženie. Iný príklad je
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
626 príkaz pre ukončenie Emacsu -- tj. príkaz C-x C-c. (Nemajte obavy
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
627 o stratu zmien, ktoré ste spravili; C-x C-c ponúkne uloženie každého
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
628 zmeneného súboru pred tým, než sa Emacs skončí.)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
629
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
630 C-z je príkaz na *dočasné* opustenie Emacsu -- môžete sa po ňom do
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
631 spusteného Emacsu vrátiť.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
632
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
633 Na systémoch, ktoré to umožňujú, C-z Emacs "pozastaví"; tzn. vráti Vás
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
634 do shellu, ale Emacs neskončí. V najbežnejších shelloch sa môžete do
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
635 Emacsu vrátiť príkazom `fg' alebo pomocou `%emacs'.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
636
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
637 Na systémoch, ktoré pozastavovanie procesov nemajú implementované, C-z
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
638 vytvorí subshell bežiaci pod Emacsom, aby Vám dal šancu spustiť iné
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
639 programy a potom sa do Emacsu vrátiť; nevykoná teda pravé opustenie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
640 Emacsu. V tom prípade je obvyklou cestou návratu zo subshellu do Emacsu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
641 shellový príkaz `exit'.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
642
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
643 Chvíľa pre použitie C-x C-c nastane vtedy, keď sa chystáte odhlásiť sa zo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
644 systému. Správne je to tiež pri ukončovaní Emacsu vyvolaného poštovým
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
645 programom a rôznymi inými utilitami, pretože tie nemusia vedieť, ako si poradiť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
646 s pozastavením Emacsu. Napriek tomu za normálnych okolností, pokiaľ sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
647 nechystáte odhlásiť, je lepšie Emacs pozastaviť pomocou C-z ako ho ukončiť.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
648
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
649 Existuje mnoho C-x príkazov. Tu je zoznam tých, ktoré ste sa už naučili:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
650
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
651 C-x C-f Vyhľadanie súboru
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
652 C-x C-s Uloženie súboru
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
653 C-x C-b Zoznam bufferov
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
654 C-x C-c Ukončenie Emacsu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
655 C-x 1 Zrušenie všetkých okien okrem jedného
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
656 C-x u Undo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
657
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
658 Pomenované eXtended príkazy sú príkazy, ktoré sú používané ešte menej, alebo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
659 príkazy, ktoré sú používané iba v istých módoch. Príkladom je príkaz
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
660 replace-string, ktorý globálne nahradí jeden reťazec iným. Keď stlačíte M-x,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
661 vypíše sa na spodnom riadku obrazovky prompt M-x a vy by ste mali zadať meno
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
662 príkazu; v tomto prípade "replace-string". Jednoducho napíšte "repl s<TAB>"
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
663 a Emacs názov doplní. (<TAB> je klávesa Tab, bežne sa nachádza nad klávesou
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
664 CapsLock alebo Shift na ľavom okraji klávesnice.) Skončite zadávanie mena
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
665 príkazu pomocou <Return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
666
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
667 Príkaz replace-string vyžaduje dva argumenty -- reťazec, ktorý má byť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
668 nahradený, a reťazec, ktorý ho má nahradiť. Každý argument musíte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
669 ukončiť pomocou <Return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
670
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
671 >> Presuňte kurzor na prázdny riadok dva riadky pod týmto.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
672 Potom napíšte M-x repl s<Return>zmenil<Return>modifikoval<Return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
673
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
674 Všimnite si, ako sa tento riadok zmenil: nahradili ste slovo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
675 z-m-e-n-i-l slovom "modifikoval", kdekoľvek sa za aktuálnou pozíciou
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
676 kurzoru vyskytlo.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
677
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
678
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
679 * AUTOMATICKÉ UKLADANIE
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
680 -----------------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
681
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
682 Ak ste spravili zmeny v súbore, ale nemáte ich ešte uložené,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
683 môžu byť v prípade páde systému stratené. Aby vás Emacs pred tým ochránil,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
684 periodicky zapisuje "auto save" súbor pre každý súbor, ktorý
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
685 editujete. Meno auto save súboru má na začiatku a na konci #;
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
686 napríklad ak sa Váš soubor nazýva "hello.c", jeho auto save
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
687 súbor sa nazýva "#hello.c#". Ak súbor uložíte normálnym spôsobom,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
688 Emacs auto save súbor zmaže.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
689
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
690 Ak nastane pád systému, môžete svoje úpravy obnoviť z auto-save
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
691 súboru, a to normálnym vyhľadaním súboru (toho, ktorý ste editovali,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
692 nie auto save súboru) a následným spustením M-x recover-file<return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
693 Na žiadosť o potvrdenie odpovedzte zadaním yes<return> pre pokračovanie a
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
694 obnovenie auto-save dát.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
695
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
696
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
697 * ECHO OBLASŤ
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
698 -------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
699
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
700 Keď Emacs vidí, že píšete príkazy pomaly, ukazuje Vám ich v spodnej
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
701 časti obrazovky v oblasti nazývanej "echo oblasť". Echo oblasť obsahuje
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
702 dolný riadok obrazovky.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
703
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
704
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
705 * STAVOVÝ RIADOK
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
706 ----------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
707
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
708 Riadok bezprostredne nad echo oblasťou sa nazýva "stavový riadok"
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
709 ("mode line").
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
710 Stavový riadok vraví niečo ako:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
711
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
712 --:** TUTORIAL.sk (Fundamental)--L670--58%----------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
713
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
714 Tento riadok podáva užitočnú informáciu o stave Emacsu a texte, ktorý
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
715 editujete.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
716
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
717 Už viete, čo znamená meno súboru -- je to súbor, ktorý ste vyhľadali.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
718 -NN%-- označuje Vašu aktuálnu pozíciu v texte; vraví, že NN percent textu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
719 je nad horným okrajom obrazovky. Ak je začiatok súboru na obrazovke, je
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
720 tu --Top-- a nie --00%--. Ak je koniec textu na obrazovke, je tu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
721 --Bot--. Ak sa dívate na tak malý text, že sa celý vojde na obrazovku,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
722 stavový riadok vraví --All--.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
723
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
724 Písmeno L a číslice označujú pozíciu iným spôsobom, udávajú riadok, na ktorom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
725 sa nachádza kurzor.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
726
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
727 Hviezdičky blízko začiatku znamenajú, že ste text zmenili. Tesne po
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
728 vyhľadaní alebo uložení súboru v tejto časti stavového riadku nie sú žiadne
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
729 hviezdičky, iba pomlčky.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
730
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
731 Časť stavového riadku v zátvorkách vraví, v akých editačných módoch sa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
732 nachádzate. Implicitný mód je Fundamental, čo je ten, ktorý momentálne
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
733 používate. Je príkladom hlavného módu ("major mode").
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
734
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
735 Emacs má celý rad hlavných módov. Niektoré z nich sú určené pre
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
736 editovanie rôznych programovacích jazykov a/alebo textov ako napr. Lisp mód,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
737 Text mód, atď. V ľubovoľnom okamihu je aktívny práve jeden hlavný mód a
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
738 jeho meno je možné nájsť v stavovom riadku na mieste, kde je teraz
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
739 "Fundamental".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
740
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
741 Každý hlavný mód mení chovanie niektorých príkazov. Napríklad existujú
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
742 príkazy pre vytváranie komentárov v programe, a pretože každý programovací
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
743 jazyk má inú predstavu o tom, ako má komentár vyzerať,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
744 musí každý hlavný mód vkladať komentáre inak. Každý hlavný mód je
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
745 vlastne meno extended príkazu, ktorým sa do tohoto módu môžete
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
746 prepnúť. Napríklad M-x fundamental-mode je príkaz pre prepnutie sa do
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
747 Fundamental módu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
748
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
749 Ak sa chystát meniť normálny text, ako napríklad tento súbor, pravdepodobne by
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
750 ste mali použiť Text mód.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
751 > Napíšte M-x text-mode <Return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
752
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
753 Nebojte sa, žiadny z príkazov, ktoré ste sa naučili, chovanie Emacsu nijako
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
754 významne nezmení. Môžete si ale všimnúť, že M-f a M-b teraz pracujú
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
755 s apostrofmi ako so súčasťou slova. Pred tým, vo Fundamental móde, M-f
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
756 a M-b pracovali s apostrofmi ako oddeľovačmi slov.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
757
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
758 Hlavné módy obyčajne robia menšie zmeny, ako bola táto: príkazy väčšinou
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
759 robia "to isté", ale v každom hlavnom móde pracujú trochu inak.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
760
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
761 Dokumentáciu k aktuálnemu hlavnému módu si môžete zobraziť stlačením C-h m.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
762
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
763 >> Raz alebo viac krát použite C-u C-v, aby ste tento riadok dostali
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
764 na vrchol obrazovky.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
765 >> Stlačte C-h m, aby ste videli, ako sa Text mód líši od Fundamental
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
766 módu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
767 >> Stlačte C-x 1 pre odstránenie dokumentácie z obrazovky.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
768
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
769 Hlavné módy sa nazývajú hlavné preto, že tiež existujú vedľajšie módy
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
770 (minor modes). Vedľajšie módy nie sú alternatívou k hlavným módom, ale
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
771 ich malé modifikácie. Každý vedľajší mód môže byť zapnutý alebo vypnutý
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
772 sám o sebe nezávisle na všetkých ostatných vedľajších módoch a nezávisle na
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
773 hlavnom móde. Takže nemusíte používať žiadny vedľajší mód alebo môžete
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
774 používať jeden vedľajší mód alebo ľubovoľnú kombináciu niekoľkých
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
775 vedľajších módov.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
776
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
777 Jedným z veľmi užitočných vedľajších módov, hlavne pre úpravy slovenských
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
778 textov, je Auto Fill mód. Keď je tento mód zapnutý, Emacs zalomí riadok
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
779 medzi dvoma slovami, kedykoľvek vkladáte text a riadok sa stane príliš
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
780 dlhým.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
781
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
782 Auto Fill mód môžete zapnúť vykonaním M-x auto-fill-mode<Return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
783 Ak je tento mód zapnutý, môžete ho vypnúť vykonaním M-x
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
784 auto-fill-mode<Return>. Ak je mód vypnutý, tento príkaz ho zapína,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
785 a ak je mód zapnutý, tak ho tento príkaz vypína. Vravíme, že tento
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
786 príkaz prepína ("toggles") tento mód.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
787
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
788 >> Napíšte teďa M-x auto-fill-mode<Return>. Potom vkladajte "asdf " stále
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
789 dookola tak dlho, pokiaľ neuvidíte, ako sa vkladaný riadok rozdelí na dva
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
790 riadky. Do textu musíte vkladať medzery preto, že Auto Fill mód
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
791 zalamuje riadky iba v medzerách.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
792
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
793 Okraj je obvykle nastavený na 70 znakov, ale môžete to zmeniť príkazom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
794 C-x f. Hodnotu okraju, ktorú si prajete, by ste mali predať ako
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
795 numerický argument.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
796
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
797 >> Napíšte C-x f s argumentom 20. (C-u 2 0 C-x f).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
798 Potom napíšte nejaký text a pozorujte, ako Emacs vypĺňa riadky po
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
799 20. znakoch. Potom nastavte okraj späť na 70 opätovným použitím
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
800 C-x f.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
801
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
802 Ak spravíte zmeny uprostred odstavca, Auto Fill mód ho
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
803 nepreformátuje.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
804 Pre preformátovanie odstavca stlačte M-q (Meta-q) s kurzorom vnútri
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
805 odstavca.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
806
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
807 >> Presuňte kurzor do predchádzajúceho odstavcu a stlačte M-q.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
808
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
809
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
810 * VYHĽADÁVANIE
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
811 --------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
812
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
813 Emacs vie v texte vyhľadávať reťazce (tj. skupiny spojených znakov alebo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
814 slov) smerom vpred alebo vzad. Hľadanie reťazca je príkaz presúvajúci
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
815 kurzor; presunie kurzor na najbližšie miesto, kde sa tento reťazec nachádza.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
816
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
817 Vyhľadávací príkaz Emacsu sa líši od vyhľadávacích príkazov väčšiny
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
818 editorov v tom zmysle, že je "inkrementálny". To znamená, že vyhľadávanie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
819 sa robí už v okamžiku, keď zadávate hľadaný reťazec.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
820
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
821 Príkaz pre hľadanie vpred je C-s a pre hľadanie vzad C-r.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
822 POZOR! Ešte to neskúšajte.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
823
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
824 Keď stlačíte C-s, uvidíte v echo oblasti prompt "I-search". To Vám
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
825 vraví, že Emacs sa nacháza v stave, ktorý sa nazýva inkrementálne hľadanie,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
826 a čaká, kým mu zadáte, čo chcete hľadať. <RET> hľadanie ukončí.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
827
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
828 >> Teraz začnite hľadanie stlačením C-s. POMALY, písmeno po písmene, píšte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
829 slovo 'kurzor'. Po každom písmene si všimnite, čo sa deje s kurzorom.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
830 Teraz ste vyhľadali "kurzor" prvý krát.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
831 >> Stlačte C-s znova, aby ste našli ďalší výskyt slova "kurzor".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
832 >> Teraz štyri krát stlačte <Delback> a pozerajte, ako sa kurzor
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
833 presúva.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
834 >> Stlačte <RET> pre ukončenie hľadania.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
835
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
836 Videli ste, čo sa stalo? Emacs sa v inkrementálnom hľadaní pokúša
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
837 prejsť na ďalší výskyt reťazca, ktorý ste dosiaľ napísali. Ak chcete
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
838 prejsť na ďalší výskyt 'kurzor', jednoducho stlačte C-s zas.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
839 Ak už žiadny taký výskyt nie je, Emacs pípne a povie Vám, že
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
840 hľadanie momentálne "zlyháva", C-g hľadanie ukončí.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
841
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
842 POZNÁMKA: Na niektorých systémoch stlačenie C-s spôsobí zatuhnutie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
843 obrazovky a neuvidíte žiadny ďalší výstup z Emacsu. To znamená, že
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
844 "vlastnosť" operačného systému nazvaná "flow control" zachytáva C-s a
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
845 nepustí ho k Emacsu. Pre odtuhnutie obrazovky stlačte C-q. Potom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
846 vyhľadajte v sekcii "Spontaneous Entry to Incremental Search" v manuále
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
847 Emacsu radu, ako obísť túto "vlastnosť".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
848
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
849 Ak uprostred inkrementálneho hľadania stlačíte <Delback>, uvidíte,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
850 že posledný znak v hľadanom reťazci zmizne a hľadanie sa vracia na posledné
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
851 miesto hľadania. Predpokladajme napríklad, že ste napísali "c", aby ste
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
852 našli prvý výskyt "k". Ak teraz stlačíte "u", kurzor sa presunie na
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
853 prvý výskyt "ku". Teraz stlačte <Delback>. To vymaže "u" z hľadaného
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
854 reťazca a kurzor sa presunie späť na prvý výskyt "k".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
855
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
856 Ak uprostred hľadania stlačíte control alebo meta znak (s niekoľkými
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
857 výnimkami -- znaky, ktoré sú špeciálne v hľadaní, ako C-s a C-r),
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
858 hľadanie bude ukončené.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
859
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
860 C-s začína hľadanie, ktoré hľadá akýkoľvek výskyt hľadaného reťazca ZA
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
861 aktuálnu pozíciu kurzoru. Ak chcete niečo hľadať v predchádzajúcom texte,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
862 stlačte namiesto C-s C-r. Všetko, čo sme povedali o C-s, platí tiež o C-r
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
863 okrem toho, že smer hľadania je opačný.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
864
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
865
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
866 * VIAC OKIEN
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
867 ------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
868
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
869 Jednou z pekných vlastností Emacsu je to, že môže na obrazovke zobraziť
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
870 viac okien súčasne.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
871
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
872 >> Presuňte kurzor na tento riadok a stlačte C-u 0 C-l (to je CONTROL-L, nie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
873 CONTROL-1).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
874
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
875 >> Ak stlačíte C-x 2, obrazovka sa rozdelí na dve okná.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
876 Obidve okná zobrazujú tento tútorial. Kurzor zostáva na vrchu okna.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
877
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
878 >> Stlačte C-M-v pre rolovanie spodného okna.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
879 (Ak nemáte skutočnú klávesu Meta, stlačte ESC C-v.)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
880
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
881 >> Stlačte C-x o ("o" ako "other") pre presun kurzoru do dolného okna.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
882 >> Použite C-v a M-v v spodnom okne pre jeho rolovanie.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
883 Pokračujte v čítaní týchto inštrukcií v hornom okne.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
884
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
885 >> Znovu stlačte C-x o pre presun kurzoru späť do horného okna.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
886 Kurzor v hornom okne je presne na mieste, kde bol pôvodne.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
887
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
888 Môžete ďalej používať C-x o pre prepínanie medzi oknami. Každé okno má svoju
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
889 vlastnú pozíciu kurzoru, ale kurzor zobrazuje iba jedno okno.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
890 Všetky obvyklé editačné príkazy platia pre okno, v ktorom sa nachádza
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
891 kurzor. Toto okno nazývame "aktívne okno" ("selected window").
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
892
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
893 Príkaz C-M-v je veľmi užitočný, ak v jednom okne editujete text a
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
894 druhé okno používate iba pre prehľad. Môžete nechávať kurzor stále
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
895 v okne, kde editujete, a postupovať po druhom okne pomocou C-M-v.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
896
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
897 C-M-v je príkladom CONTROL-META znaku. Ak máte skutočnú META klávesu,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
898 môžete vyvolať C-M-v pridržaním oboch kláves CTRL a META pri stlačení v.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
899 Nezáleží na tom, či stlačíte ako prvú klávesu CTRL alebo META, pretože obe
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
900 tieto klávesy fungujú ako modifikátory kláves, ktoré stlačíte.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
901
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
902 Ak nemáte skutočnú META klávesu, môžete namiesto nej použiť ESC, na
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
903 poradí záleží: musíte stlačiť ESC a potom CTRL-v; CTRL-ESC v by
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
904 nefungovalo. To preto, lebo ESC je samostatný znak, a nie modifikátor.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
905
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
906 >> Stlačte C-x 1 (v hornom okne), aby ste sa zbavili dolného okna.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
907
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
908 (Ak by ste C-x 1 stlačili v dolnom okne, odstránilo by to horné okno.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
909 Chápte tento príkaz ako "ponechaj akurát jedno okno -- to, v ktorom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
910 akurát som".)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
911
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
912 Nemusíte v oboch oknách zobrazovať ten istý buffer. Ak použijete
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
913 C-x C-f pre vyhľadanie súboru v jednom z okien, druhé okno sa nezmení.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
914 Môžete vyhľadávať súbory v oboch oknách nezávisle.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
915
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
916 Tu je ďalší spôsob, ako využiť dve okná na zobrazenie dvoch rôznych vecí:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
917
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
918 >> Stlačte C-x 4 C-f nasledované menom niektorého z Vašich súborov.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
919 Dokončite to pomocou <Return>. Vidíte zadaný súbor v dolnom okne.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
920 Presunul sa tam aj kurzor.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
921
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
922 >> Stlačte C-x o pre presun späť do horného okna a C-x 1 pre zmazanie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
923 dolného okna.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
924
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
925
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
926 * REKURZÍVNE EDITAČNÉ ÚROVNE
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
927 ----------------------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
928
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
929 Občas sa dostanete do niečoho, čo sa nazýva "rekurzívna editačná úroveň"
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
930 ("recursive editing level"). To je indikované hranatými zátvorkami v
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
931 stavovom riadku obklopujúcemu zátvorky okolo mena hlavného módu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
932 Napríklad môžete vidieť [(Fundamental)] namiesto (Fundamental).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
933
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
934 Aby ste sa dostali z rekurzívnej editačnej úrovne, stlačte ESC ESC ESC.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
935 To je všeobecný "vyskakovací" príkaz. Môžete ho použiť tiež pre odstránenie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
936 niektorých okien a vyskočenie z minibuffera.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
937
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
938 >> Stlačte M-x, aby ste sa dostali do minibuffera; potom stlačte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
939 ESC ESC ESC, aby ste sa z neho dostali von.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
940
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
941 Z rekurzívnej editačnej úrovne nemôžete vyskočiť pomocou C-g. To preto, že
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
942 C-g je využívané pre rušenie príkazov a argumentov VO VNÚTRI rekurzívnej
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
943 editačnej vrstvy.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
944
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
945
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
946 * ZÍSKANIE ĎALŠEJ NÁPOVEDY
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
947 --------------------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
948
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
949 V tomto tútoriale sme sa pokúsili Vám poskytnúť dostatok informácií,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
950 aby ste mohli začať Emacs používať. V Emacse je toho toľko, že by bolo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
951 nemožné to všetko objasniť v tomto návode. V každom prípade sa o Emacse
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
952 môžete naučiť viac, pretože má veľa užitočných vlastností. Emacs ponúka
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
953 príkazy pre čítanie dokumentácie svojich príkazov. Všetky tieto "help"
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
954 príkazy začínajú znakom Control-h, ktorý sa nazýva "help znak".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
955
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
956 Pre použitie vlastností nápovedy stlačte znak C-h a potom znak hovoriaci,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
957 aký druh nápovedy si žiadate. Ak ste NAOZAJ stratení, stlačte C-h ? a
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
958 Emacs Vám povie, aké druhy nápovedy Vám môže poskytnúť. Ak ste stlačili
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
959 C-h a potom ste sa rozhodli, že žiadnu nápovedu nechcete, jednoducho ju
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
960 zrušte stlačením C-g.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
961
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
962 (Na niektorých počítačoch je význam znaku C-h zmenený. To by naozaj
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
963 nemalo byť všeobecným nastavením pre všetkých používateľov, takže máte právo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
964 posťažovať sa systémovému administrátorovi. Do tej doby, ak C-h
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
965 nezobrazuje hlásenie o nápovede v dolnej časti obrazovky, skúste namiesto
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
966 toho používať klávesu F1 alebo M-x help RET.)
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
967
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
968 Najzákladnejší príkaz nápovedy je C-h c. Stlačte C-h, znak c a klávesový
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
969 príkaz; Emacs potom zobrazí veľmi stručný popis príkazu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
970
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
971 >> Stlačte C-h c C-p.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
972
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
973 Hlásenie by malo vyzerať asi takto
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
974
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
975 C-p runs the command previous-line
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
976
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
977 To vám oznamuje "meno funkcie". Mená funkcií sú používané hlavne pre
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
978 konfiguráciu a rozširovanie Emacsu. Ale pretože mená funkcií sú volené
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
979 tak, aby naznačovali, čo zodpovedajúci príkaz robí, môžu slúžiť tiež
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
980 ako veľmi stručná dokumentácia -- dostatočná na to, aby Vám pripomenula
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
981 príkazy, ktoré ste sa už naučili.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
982
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
983 Viacznakové príkazy ako C-x C-s a (ak nemáte META, EDIT ani ALT
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
984 klávesu) <ESC>v sú pre C-h c povolené tiež.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
985
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
986 Na získanie viac informácií o príkaze použite namiesto C-h c C-h k.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
987
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
988 >> Stlačte C-h k C-p.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
989
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
990 To zobrazí dokumentáciu k funkcii a jej meno v emacsovom okne. Ak
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
991 výstup prečítate, stlačte C-x 1, aby ste sa textu nápovedy zbavili.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
992 Nemusíte to robiť hneď. Môžete chvíľu editovať a nazerať do textu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
993 nápovedy a až potom stlačiť C-x 1.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
994
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
995 Tu sú ďalšie užitočné voľby C-h:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
996
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
997 C-h f Popis funkcie. Zadáváte meno funkcie.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
998
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
999 >> Skúste napísať C-h f previous-line<Return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1000 To vypíše všetky informácie, ktoré Emacs má o funkcii implementujúcej
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1001 príkaz C-p.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1002
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1003 Podobný príkaz C-h v zobrazí dokumentáciu premennej, ktorej hodnotu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1004 môžete nastaviť pre ovplyvnenie chovania Emacsu. Meno premennej musíte
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1005 zadať, až keď sa naň Emacs spýta.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1006
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1007 C-h a Príkazové apropos. Zadajte kľúčové slovo a Emacs vypíše
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1008 všetky príkazy, ktorých meno obsahuje toto kľúčové
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1009 slovo. Všetky tieto príkazy môžu byť vyvolané pomocou
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1010 Meta-x. Pre niektoré príkazy príkazové apropos vypíše
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1011 tiež jedno alebo dvojznakové sekvencie, ktoré vykonávajú
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1012 ten istý príkaz.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1013
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1014 >> Napíšte C-h a file<Return>.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1015
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1016 To zobrazí v druhom okne zoznam všetkých M-x príkazov obsahujúcich "file" vo
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1017 svojom názve. Znakové príkazy ako C-x C-f uvidíte vypísané vedľa
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1018 zodpovedajúcich mien príkazov ako find-file.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1019
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1020 >> Stlačte C-M-v pre posun okna s nápovedou. Urobte to viac krát.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1021
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1022 >> Stlačte C-x 1 pre zmazanie okna s nápovedou.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1023
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1024 C-h i Čítanie on-line manuálov (tiež Info). Tento príkaz
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1025 Vás prepne do špeciálneho buffera s názvom `*info*',
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1026 v ktorom môžete čítať on-line manuály pre balíky
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1027 inštalované na vašom systéme. Ak stlačíte m emacs <Return>,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1028 môžete si napríklad prečítať manuál k Emacsu. Ak ste
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1029 doteraz nikdy nepoužívali Info, stlačte ? a Emacs vám
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1030 predstaví hlavné možnosti módu pre Info. Ak toto
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1031 predstavenie absolvujete, mali by ste používať Info
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1032 manuál Emacsu ako svoju primárnu dokumentáciu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1033
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1034
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1035 * VIAC VLASTNOSTÍ
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1036 -----------------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1037
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1038 Na to, aby ste sa naučili viac o Emacse, prečítajte si jeho manuál, buď ako
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1039 knihu alebo on-line vo formáte Info (použite Help menu alebo stlačte F10 h r).
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1040 Dve vlastnosti, ktoré sa vám môžu páčiť, je dopĺňanie, ktoré šetrí písanie a
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1041 dired, ktorý zjednodušuje prácu so súbormi.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1042
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1043 Dopĺňanie je na vyvarovanie sa zbytočného písania. Napríklad, keď sa chcete
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1044 dostať do bufferu *Messages*, môžete napísať C-x b *M<Tab> a Emacs doplní
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1045 zvyšok mena bufferu, až potiaľ, pokiaľ ho dokáže zistiť z toho, čo ste už
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1046 napísali. Dopĺňanie je popísané v Info verzii manuálu Emacsu, v kapitole
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1047 nazvanej "Completion".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1048
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1049 Dired vám dovoľuje zobraziť zoznam súborov v adresári (a voliteľne jeho
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1050 podadresároch), presúvať, upravovať, premenovávať, mazať a ináč manipulovať so
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1051 súbormi. Dired je popísané v Info verzii manuálu Emacsu, v kapitole nazvanej
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1052 "Dired".
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1053
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1054 Manuál tiež popisuje veľa iných vlastností Emacsu.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1055
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1056 * ZÁVER
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1057 -------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1058
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1059 Nezabudnite, Emacs ukončíte vykonaním príkazu C-x C-c. Pre dočasný
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1060 odskok do shellu, z ktorého sa do Emacsu môžete opäť vrátiť,
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1061 použite C-z.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1062
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1063 Zámerom tohto tútorialu je byť zrozumiteľný všetkým novým používateľom, takže
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1064 ak narazíte na niečo nejasného, tak nezúfajte a nedávajte to za vinu sebe
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1065 -- sťažujte sa!
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1066
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1067
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1068 KOPÍROVANIE
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1069 -----------
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1070
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1071 Tento tútorial vychádza z dlhej rady emacsových tútorialov začatej
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1072 tútorialom napísaným Stuartom Cracraftom pre pôvodný Emacs.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1073
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1074 Táto verzia tútorialu je, podobne ako GNU Emacs, chránená copyrightom
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1075 a je šírená s povolením distribuovať kópie za istých podmienok:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1076
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1077 Copyright (C) 1985, 1996, 1998, 2001, 2002, 2003, 2004,
100972
c90853557b90 Add 2009 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 92756
diff changeset
1078 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
82722
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1079
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1080 Každému je zaručené právo vytvárať a distribuovať presné kópie tohto
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1081 dokumentu tak, ako ho dostal, na akomkoľvek médiu, s tým, že bude
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1082 zachovaná táto poznámka o autorstve a poznámka o povolení, a že
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1083 distribútor zaručuje príjemcovi právo na ďalšiu redistribúciu povolenú
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1084 touto poznámkou.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1085
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1086 Je zaručené právo distribuovať modifikované verzie tohto dokumentu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1087 alebo jeho častí pod hore uvedenými podmienkami za predpokladu, že
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1088 obsahuje jasné poznámky uvádzajúce, kto urobil posledné úpravy.
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1089
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1090 Podmienky pre kopírovanie Emacsu samotného sú zložitejšie, ale
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1091 v rovnakom duchu. Prečítajte si, prosím, súbor COPYING a potom dajte kópie
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1092 GNU Emacsu svojim priateľom. Pomáhajte potlačovať softwarovú obštrukciu
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1093 ("vlastníctvo") používaním, písaním a zdieľaním free softwaru!
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1094
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1095 ;;; Local Variables:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1096 ;;; coding: iso-latin-2
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1097 ;;; End:
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1098
06136b71f839 Move tutorials from etc/ to etc/tutorials/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1099 ;;; arch-tag: 87861cfa-5cf6-4b87-9fab-86c93c5ca9f3