Mercurial > emacs
annotate lisp/language/slovak.el @ 44604:4702b23921b4
Avoid doubly tagging parse.y when both parse.c and parse.y are given on
the command line, in either order.
* etags.c (find_entries): Delete tags previously obtained from
file xxx.c's #line directives when parsing file xxx.y. This is
generally done for automatically generated files containing
#line directives. This handles the case when xxx.y is tagged
before xxx.c, and the entries of xxx.c pointing to xxx.y should
be discarded.
(language): Added the metasource member. Initializers changed.
(invalidate_nodes): New function.
(readline): Discard lines after having found a #line
directive pointing to an already tagged file. This handles the
case when xxx.y is tagged before xxx.c, and the entries of
xxx.c pointing to xxx.y should be discarded.
(fdesc): New structure for keeping track of input files.
(fdesc): Remove `file' member (a string) and use instead a pointer
to a file description structure.
(curfile, curfiledir, curtagfname, curlang, nocharno,
forced_lang): Global variables removed in favor of fdhead and
curfdp, pointers to file description strucures.
(longopts, main, print_help): Use the CTAGS conditional to include
or exclude options that work on etags or ctags only.
(process_file, find_entries, pfnote, add_node, put_entries,
readline): Use fdhead and curfdp.
(process_file, find_entries): Do not take an arg string, all
callers changed.
* etags.c (longopts, print_help, main): Test CTAGS to disallow
options that are not right for either etags or ctags.
* etags.c (number_len, total_size_of_entries): Define them also
in CTAGS mode, because gcc does not compile all refs away.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Mon, 15 Apr 2002 14:18:47 +0000 |
parents | b2d7b3613f4a |
children | 33d53d287ee4 |
rev | line source |
---|---|
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
37768
diff
changeset
|
1 ;;; slovak.el --- support for Slovak -*- coding: iso-2022-7bit; -*- |
21196 | 2 |
37160
7089a2f8a081
("Slovak"): Add documentation string. From
Gerd Moellmann <gerd@gnu.org>
parents:
28906
diff
changeset
|
3 ;; Copyright (C) 1998, 2001 Free Software Foundation. |
21196 | 4 |
5 ;; Authors: Tibor ,B)(Bimko <tibor.simko@fmph.uniba.sk>, | |
37768 | 6 ;; Milan Zamazal <pdm@zamazal.org> |
7 ;; Maintainer: Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
21196 | 8 ;; Keywords: multilingual, Slovak |
9 | |
21421
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
10 ;; This file is part of GNU Emacs. |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
11 |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
12 ;; GNU Emacs is free software; you can redistribute it and/or modify |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
13 ;; it under the terms of the GNU General Public License as published by |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
14 ;; the Free Software Foundation; either version 2, or (at your option) |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
15 ;; any later version. |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
16 |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
17 ;; GNU Emacs is distributed in the hope that it will be useful, |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
20 ;; GNU General Public License for more details. |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
21 |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
22 ;; You should have received a copy of the GNU General Public License |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
25 ;; Boston, MA 02111-1307, USA. |
21196 | 26 |
27 ;;; Commentary: | |
28 | |
29 ;; Slovak ISO 8859-2 environment. | |
30 | |
31 ;;; Code: | |
32 | |
33 (set-language-info-alist | |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21895
diff
changeset
|
34 "Slovak" '((charset . (ascii latin-iso8859-2)) |
21421
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
35 (coding-system . (iso-8859-2)) |
868791d38a55
Add coding-priority. Use iso-8859-2 instead
Karl Heuer <kwzh@gnu.org>
parents:
21204
diff
changeset
|
36 (coding-priority . (iso-8859-2)) |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21895
diff
changeset
|
37 (nonascii-translation . latin-iso8859-2) |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21895
diff
changeset
|
38 (input-method . "slovak") |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21895
diff
changeset
|
39 (unibyte-syntax . "latin-2") |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21895
diff
changeset
|
40 (unibyte-display . iso-8859-2) |
37379
50cd6c157a2d
("Slovak"): Add tutorial entry.
Gerd Moellmann <gerd@gnu.org>
parents:
37160
diff
changeset
|
41 (tutorial . "TUTORIAL.sk") |
21196 | 42 (sample-text . "Prajeme V,Ba(Bm pr,Bm(Bjemn,B}(B de,Br(B!") |
37160
7089a2f8a081
("Slovak"): Add documentation string. From
Gerd Moellmann <gerd@gnu.org>
parents:
28906
diff
changeset
|
43 (documentation . "\ |
7089a2f8a081
("Slovak"): Add documentation string. From
Gerd Moellmann <gerd@gnu.org>
parents:
28906
diff
changeset
|
44 This language environment is almost the same as Latin-2, |
43742 | 45 but sets the default input method to \"slovak\", |
42194 | 46 and selects the Slovak tutorial.")) |
21472
c0e398eea0bd
Put Slovak lang. env. under European.
Kenichi Handa <handa@m17n.org>
parents:
21468
diff
changeset
|
47 '("European")) |
21196 | 48 |
49 (provide 'slovak) | |
50 | |
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
37768
diff
changeset
|
51 ;;; slovak.el ends here |