Mercurial > emacs
annotate etc/sk-dired-ref.tex @ 68631:e51361e03895
(malloc, realloc, free) [emacs]: Undefine macros before defining.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Sun, 05 Feb 2006 13:45:09 +0000 |
parents | f05a048483cc |
children | e8a3fb527b77 2d92f5c9d6ae |
rev | line source |
---|---|
37387 | 1 % Reference Card for Dired |
65088
f05a048483cc
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64092
diff
changeset
|
2 % Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
37387 | 3 |
4 % Slovak hyphenation rules applied | |
5 \shyph | |
6 | |
7 % This file is part of GNU Emacs. | |
8 | |
9 % GNU Emacs is free software; you can redistribute it and/or modify | |
10 % it under the terms of the GNU General Public License as published by | |
11 % the Free Software Foundation; either version 2, or (at your option) | |
12 % any later version. | |
13 | |
14 % GNU Emacs is distributed in the hope that it will be useful, | |
15 % but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 % GNU General Public License for more details. | |
18 | |
19 % You should have received a copy of the GNU General Public License | |
20 % along with GNU Emacs; see the file COPYING. If not, write to | |
64083 | 21 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 % Boston, MA 02110-1301, USA. | |
37387 | 23 |
24 % This file can be printed with 1, 2, or 3 columns per page (see below). | |
25 % Specify how many you want here. Nothing else needs to be changed. | |
26 %**start of header | |
27 | |
28 \newcount\columnsperpage | |
29 | |
30 \columnsperpage=2 | |
31 | |
32 % This file is intended to be processed by plain TeX (TeX82). | |
33 % The reference card looks OK with 2 columns per page, portrait mode. | |
34 % I haven't tried it with 3 columns per page. | |
35 | |
36 % This is a bit of a dirty hack on the GNU Emacs reference card | |
37 % to produce a Dired reference card instead. | |
38 | |
39 % I (Evgeny Roubinchtein, eroubinc@u.washington.edu) put this together | |
40 % because I wanted a Dired reference card, | |
41 % but couldn't find anything on the 'net. | |
42 % Based mostly off Dired's describe-mode. | |
43 | |
44 % Translated to Czech by Pavel Janík <Pavel@Janik.cz> in March 2001 | |
45 % Translated to Slovak by Miroslav Vasko <vasko@debian.cz> in March 2001 | |
46 | |
47 % Process the file with `csplain' from the `CSTeX' distribution (included | |
48 % e.g. in the TeX Live CD). | |
49 | |
50 \def\versionnumber{0.1} | |
65088
f05a048483cc
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64092
diff
changeset
|
51 \def\year{2005} |
37387 | 52 \def\version{May \year\ v\versionnumber} |
53 | |
54 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill | |
55 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc. | |
56 Permissions on back. v\versionnumber}} | |
57 | |
58 \def\copyrightnotice{ | |
59 \vskip 1ex plus 2 fill\begingroup\small | |
60 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.} | |
61 \centerline{designed by Stephen Gildea, \version} | |
43258
f3408a98d0f3
Update Emacs version 20.x -> 21.x.
Eli Zaretskii <eliz@gnu.org>
parents:
37387
diff
changeset
|
62 \centerline{for GNU Emacs version 21 on Unix systems} |
37387 | 63 \centerline{Updated for Dired in May 2000 by Evgeny Roubinchtein} |
64 | |
65 Permission is granted to make and distribute copies of | |
66 this card provided the copyright notice and this permission notice | |
67 are preserved on all copies. | |
68 | |
69 For copies of the GNU Emacs manual, write to the Free Software | |
64092 | 70 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
71 MA 02110-1301, USA. | |
37387 | 72 |
73 \endgroup} | |
74 | |
75 % make \bye not \outer so that the \def\bye in the \else clause below | |
76 % can be scanned without complaint. | |
77 \def\bye{\par\vfill\supereject\end} | |
78 | |
79 \newdimen\intercolumnskip %horizontal space between columns | |
80 \newbox\columna %boxes to hold columns already built | |
81 \newbox\columnb | |
82 | |
83 \def\ncolumns{\the\columnsperpage} | |
84 | |
85 \message{[\ncolumns\space | |
86 column\if 1\ncolumns\else s\fi\space per page]} | |
87 | |
88 \def\scaledmag#1{ scaled \magstep #1} | |
89 | |
90 % This multi-way format was designed by Stephen Gildea October 1986. | |
91 % Note that the 1-column format is fontfamily-independent. | |
92 \if 1\ncolumns %one-column format uses normal size | |
93 \hsize 4in | |
94 \vsize 10in | |
95 \voffset -.7in | |
96 \font\titlefont=\fontname\tenbf \scaledmag3 | |
97 \font\headingfont=\fontname\tenbf \scaledmag2 | |
98 \font\smallfont=\fontname\sevenrm | |
99 \font\smallsy=\fontname\sevensy | |
100 | |
101 \footline{\hss\folio} | |
102 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}} | |
103 \else %2 or 3 columns uses prereduced size | |
104 \hsize 3.4in | |
105 \vsize 7.95in | |
106 \hoffset -.75in | |
107 \voffset -.745in | |
108 \font\titlefont=csbx10 \scaledmag2 | |
109 \font\headingfont=csbx10 \scaledmag1 | |
110 \font\smallfont=csr6 | |
111 \font\smallsy=cmsy6 | |
112 \font\eightrm=csr8 | |
113 \font\eightbf=csbx8 | |
114 \font\eightit=csti8 | |
115 \font\eighttt=cstt8 | |
116 \font\eightmi=csmi8 | |
117 \font\eightsy=cmsy8 | |
118 \textfont0=\eightrm | |
119 \textfont1=\eightmi | |
120 \textfont2=\eightsy | |
121 \def\rm{\eightrm} | |
122 \def\bf{\eightbf} | |
123 \def\it{\eightit} | |
124 \def\tt{\eighttt} | |
125 \normalbaselineskip=.8\normalbaselineskip | |
126 \normallineskip=.8\normallineskip | |
127 \normallineskiplimit=.8\normallineskiplimit | |
128 \normalbaselines\rm %make definitions take effect | |
129 | |
130 \if 2\ncolumns | |
131 \let\maxcolumn=b | |
132 \footline{\hss\rm\folio\hss} | |
133 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}} | |
134 \else \if 3\ncolumns | |
135 \let\maxcolumn=c | |
136 \nopagenumbers | |
137 \else | |
138 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.} | |
139 \errmessage{Illegal number of columns per page} | |
140 \fi\fi | |
141 | |
142 \intercolumnskip=.46in | |
143 \def\abc{a} | |
144 \output={% %see The TeXbook page 257 | |
145 % This next line is useful when designing the layout. | |
146 %\immediate\write16{Column \folio\abc\space starts with \firstmark} | |
147 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a} | |
148 \else\if a\abc | |
149 \global\setbox\columna\columnbox \global\def\abc{b} | |
150 %% in case we never use \columnb (two-column mode) | |
151 \global\setbox\columnb\hbox to -\intercolumnskip{} | |
152 \else | |
153 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi} | |
154 \def\multicolumnformat{\shipout\vbox{\makeheadline | |
155 \hbox{\box\columna\hskip\intercolumnskip | |
156 \box\columnb\hskip\intercolumnskip\columnbox} | |
157 \makefootline}\advancepageno} | |
158 \def\columnbox{\leftline{\pagebody}} | |
159 | |
160 \def\bye{\par\vfill\supereject | |
161 \if a\abc \else\null\vfill\eject\fi | |
162 \if a\abc \else\null\vfill\eject\fi | |
163 \end} | |
164 \fi | |
165 | |
166 % we won't be using math mode much, so redefine some of the characters | |
167 % we might want to talk about | |
168 \catcode`\^=12 | |
169 \catcode`\_=12 | |
170 | |
171 \chardef\\=`\\ | |
172 \chardef\{=`\{ | |
173 \chardef\}=`\} | |
174 | |
175 \hyphenation{mini-buf-fer} | |
176 \hyphenation{de-le-tion} | |
177 | |
178 \parindent 0pt | |
179 \parskip 1ex plus .5ex minus .5ex | |
180 | |
181 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip} | |
182 | |
183 % newcolumn - force a new column. Use sparingly, probably only for | |
184 % the first column of a page, which should have a title anyway. | |
185 \outer\def\newcolumn{\vfill\eject} | |
186 | |
187 % title - page title. Argument is title text. | |
188 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex} | |
189 | |
190 % section - new major section. Argument is section name. | |
191 \outer\def\section#1{\par\filbreak | |
192 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}% | |
193 \vskip 2ex plus 1ex minus 1.5ex} | |
194 | |
195 \newdimen\keyindent | |
196 | |
197 % beginindentedkeys...endindentedkeys - key definitions will be | |
198 % indented, but running text, typically used as headings to group | |
199 % definitions, will not. | |
200 \def\beginindentedkeys{\keyindent=1em} | |
201 \def\endindentedkeys{\keyindent=0em} | |
202 \endindentedkeys | |
203 | |
204 % paralign - begin paragraph containing an alignment. | |
205 % If an \halign is entered while in vertical mode, a parskip is never | |
206 % inserted. Using \paralign instead of \halign solves this problem. | |
207 \def\paralign{\vskip\parskip\halign} | |
208 | |
209 % \<...> - surrounds a variable name in a code example | |
210 \def\<#1>{{\it #1\/}} | |
211 | |
212 % kbd - argument is characters typed literally. Like the Texinfo command. | |
213 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows | |
214 | |
215 % beginexample...endexample - surrounds literal text, such a code example. | |
216 % typeset in a typewriter font with line breaks preserved | |
217 \def\beginexample{\par\leavevmode\begingroup | |
218 \obeylines\obeyspaces\parskip0pt\tt} | |
219 {\obeyspaces\global\let =\ } | |
220 \def\endexample{\endgroup} | |
221 | |
222 % key - definition of a key. | |
223 % \key{description of key}{key-name} | |
224 % prints the description left-justified, and the key-name in a \kbd | |
225 % form near the right margin. | |
226 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop | |
227 {\hsize=.75\hsize\rightskip=1em | |
228 \hskip\keyindent\relax#1}\kbd{#2}\hfil}} | |
229 | |
230 \newbox\metaxbox | |
231 \setbox\metaxbox\hbox{\kbd{M-x }} | |
232 \newdimen\metaxwidth | |
233 \metaxwidth=\wd\metaxbox | |
234 | |
235 % metax - definition of a M-x command. | |
236 % \metax{description of command}{M-x command-name} | |
237 % Tries to justify the beginning of the command name at the same place | |
238 % as \key starts the key name. (The "M-x " sticks out to the left.) | |
239 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize | |
240 {\hskip\keyindent\relax#1\hfil}% | |
241 \hskip -\metaxwidth minus 1fil | |
242 \kbd{#2}\hfil}} | |
243 | |
244 % threecol - like "key" but with two key names. | |
245 % for example, one for doing the action backward, and one for forward. | |
246 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad | |
247 &\kbd{#3}\hfil\quad\cr} | |
248 | |
249 % I cannot figure out how to make all dired-x | |
250 % commands fit on a page in two-column format | |
251 \def\dx{{\bf (DX)}} | |
252 | |
253 %**end of header | |
254 | |
255 | |
256 \title{Referenčná karta pre Dired} | |
257 | |
43258
f3408a98d0f3
Update Emacs version 20.x -> 21.x.
Eli Zaretskii <eliz@gnu.org>
parents:
37387
diff
changeset
|
258 \centerline{(určené pre Dired v GNU Emacse 21.x)} |
37387 | 259 \centerline{Príkazy označené \dx{} vyžadujú dired-x} |
260 | |
261 % trim this down to fit everything on one page | |
262 % \section{General} | |
263 % In dired, you can edit a list of the files in a directory (and optionally | |
264 % its subdirectories in the `ls -lR' format). | |
265 | |
266 % Editing a directory means that you can visit, rename, copy, compress, | |
267 % load, byte-compile files. You can change files' attributes, run shell | |
268 % commands on files, or insert subdirectories into the edit buffer. You can | |
269 % "flag" files for deletion or "mark" files for later commands, either one | |
270 % file at a time or by all files matching certain criteria (e.g., files that | |
271 % match a certain regexp). | |
272 | |
273 % You move throughout the buffer using the usual cursor motion commands. | |
274 % Letters no longer insert themselves, but execute commands instead. The | |
275 % digits (0-9) are prefix arguments. | |
276 | |
277 % Most commands operate either on all marked files or on the current file if | |
278 % no files are marked. Use a numeric prefix argument to operate on the next | |
279 % ARG files (or previous ARG if ARG $<$ 0). Use the prefix argument `1' to | |
280 % operate on the current file only. Prefix arguments override marks. Commands | |
281 % which run a sub-process on a group of files will display a list of files | |
282 % for which the sub-process failed. Typing y will try to tell | |
283 % you what went wrong. | |
284 | |
285 % When editing several directories in one buffer, each directory acts as a | |
286 % page, so C-x [ and C-x ] can be used to move between directories. | |
287 | |
288 \section{Spustenie a ukončenie Dired} | |
289 | |
290 \key{spustenie dired}{C-x d} | |
291 \key{spustenie dired v adresári s aktuálnym súborom}{C-x C-j \dx} | |
292 \key{ukončenie dired}{q} | |
293 | |
294 \section{Príkazy pre presuny} | |
295 | |
296 \key{späť na predchádzajúci riadok}{p} | |
297 \key{vpred na nasledujúci riadok}{n} | |
298 \key{hore na predchádzajúci adresár}{<} | |
299 \key{dole na nasledujúci adresár}{>} | |
300 \key{na ďalší označený súbor}{M-\}} | |
301 \key{na predchádzajúci označený súbor}{M-\{} | |
302 \key{späť na predchádzajúci podadresár}{M-C-p} | |
303 \key{vpred na ďalší podadresár}{M-C-n} | |
304 \key{na nadradený adresár}{^} | |
305 \key{choď na prvý podadresár}{M-C-d} | |
306 | |
307 \section{Príkazy pomocou myši} | |
308 \metax{otvor súbor}{Mouse_Button_2} | |
309 \metax{zobraz menu}{Control-Mouse_Button_3} | |
310 | |
311 \section{Okamžité akcie nad súbormi} | |
312 | |
313 \key{otvor aktuálny súbor}{f} | |
314 \key{otvor aktuálny súbor iba pre čítanie}{v} | |
315 \key{otvor aktuálny súbor v inom okne}{o} | |
316 \key{otvor aktuálny súbor v inom rámci}{w} | |
317 \key{zobraz aktuálny súbor}{C-u o} | |
318 \key{vytvor nový podadresár}{+} | |
319 \key{porovnaj súbor pod kurzorom s označeným}{=} | |
320 | |
321 \section{Označovanie a odznačovanie súborov} | |
322 | |
323 \key{označ súbor alebo podadresár pre ďalšie príkazy}{m} | |
324 \key{odznač súbor alebo súbory podadresáre}{u} | |
325 \key{zruš označenie všetkých súborov v bufferi}{M-delete} | |
326 \key{označ súbory so zadanou príponou}{* .} | |
327 \key{označ všetky adresáre}{* /} | |
328 \key{označ všetky symbolické odkazy}{* @} | |
329 \key{označ všetky spustiteľné súbory}{* *} | |
330 \key{invertuj označenie}{* t} | |
331 \key{označ všetky súbory v aktuálnom podadresári}{* s} | |
332 \key{označ súbory vyhovujíce regulárnemu výrazu}{* \%} | |
333 \key{zmeň značku na iné písmeno}{* c} | |
334 \key{označ súbory, pre ktoré elispový výraz vrací t}{* ( \dx} | |
335 | |
336 \section{Nápoveda} | |
337 | |
338 \key{zobraz nápovedu}{h} | |
339 \key{prehľad príkazov dired}{?} | |
340 | |
341 \section{Príkazy nad označenými súbormi} | |
342 | |
343 \key{kopíruj súbor(y)}{C} | |
344 \key{premenuj súbor alebo presuň súbory}{R} | |
345 \key{zmeň vlastníka súboru(ov)}{O} | |
346 \key{zmeň skupinu súboru(ov)}{G} | |
347 \key{zmeň prístupové práva súboru(ov)}{M} | |
348 \key{vytlač súbor(y)}{P} | |
349 \key{zmeň názov súboru(ov) na malé písmená}{\% l} | |
350 \key{zmeň názov súboru(ov) na veľké písmená}{\% u} | |
351 \key{zmaž označené súbory}{X} | |
352 \key{vykonaj uuencode alebo uudecode súboru(ov)}{U} | |
353 \key{skomprimuj alebo dekomprimuj súbor(y)}{Z} | |
354 \key{spusti info na súbore}{I \dx} | |
355 \key{vytvor symbolický(é) odkaz(y)}{S} | |
356 \key{vytvor relatívne symbolické odkazy}{Y} | |
357 \key{vytvor pevný odkaz}{H} | |
358 \key{prehľadaj súbory -- hľadaj regulárny výraz}{A} | |
359 \key{nahraď regulárne výrazy}{Q} | |
360 \key{prelož súbory (byte-compile)}{B} | |
361 \key{načítaj súbory (load-file)}{L} | |
362 \key{spusti príkaz nad súborom(mi)}{!} | |
363 | |
364 \section{Označenie súborov pre zmazanie} | |
365 | |
366 \leftline{\bf Odznačujúce príkazy mažú značku pre zmazanie} | |
367 \key{označ súbor pre zmazanie}{d} | |
368 \key{odstráň značku pre zmazanie}{delete} | |
369 \key{označ všetky zálohy (súbory končiace na \~{})}{\~{}} | |
370 \key{označ všetky zálohy (auto-save)}{\#} | |
371 \key{označ rôzne dočasné súbory}{\&} | |
372 \key{označ číslované zálohy (končiace na .\~{}1\~{} a~pod.)}{.} | |
373 \key{vymaž súbory označené na zmazanie}{x} | |
374 \key{označ súbory vyhovujúce regulárnemu výrazu}{\% d} | |
375 | |
376 \section{Modifikácia Dired bufferu} | |
377 | |
378 \key{vlož do tohto bufferu podadresár}{i} | |
379 \key{odstráň označené súbory z bufferu}{k} | |
380 \key{odstráň z bufferu výpis podadresára}{C-u k} | |
381 \key{znovu načítaj adresár (značky sa zachovajú)}{g} | |
382 \key{prepni triedenie adresára podľa mena/dátumu}{s} | |
383 \key{uprav voľby príkazu ls}{C-u s} | |
384 \key{obnov značky, skryté riadky a~pod.}{C-_} | |
385 \key{skry všetky podadresáre}{M-\$} | |
386 \key{skry alebo odkry všetky podadresáre}{\$} | |
387 | |
388 \section{Príkazy s regulárnymi výrazmi} | |
389 | |
390 \key{označ súbory vyhovujúce regulárnemu výrazu}{\% m} | |
391 \key{skopíruj označené súbory obsahujúce regexp}{\% C} | |
392 \key{premenuj označené súbory vyhovujúce regexp}{\% R} | |
393 \key{pevný odkaz}{\% H} | |
394 \key{symbolický odkaz}{\% S} | |
395 \key{symbolický odkaz s relatívnou cestou}{\% Y} | |
396 \key{označ pre zmazanie}{\% d} | |
397 | |
398 \section{Dired a Find} | |
399 \metax{otvor v dired súbory vyhovujúce vzorke}{M-x find-name-dired} | |
400 \metax{otvor v dired súbory obsahujúce vzorku}{M-x find-grep-dired} | |
401 \metax{otvor v dired súbory podľa výstupu \kbd{find}}{M-x find-dired} | |
402 | |
403 %\copyrightnotice | |
404 | |
405 \bye | |
406 | |
407 % Local variables: | |
408 % compile-command: "csplain sk-dired-ref" | |
409 % End: | |
52401 | 410 |
411 % arch-tag: d5b57e24-16ec-4981-9315-14d3d16d3062 |