Mercurial > hg > xemacs-beta
annotate src/lastfile.c @ 4549:68d1ca56cffa
First part of interactive checks that coding systems encode regions.
2008-01-21 Aidan Kehoe <kehoea@parhasard.net>
* coding.el (decode-coding-string):
(encode-coding-string): Accept GNU's NOCOPY argument for
these. Todo; write compiler macros to use it.
(query-coding-warning-face): New face, to show unencodable
characters.
(default-query-coding-region-safe-charset-skip-chars-map):
New variable, a cache used by #'default-query-coding-region.
(default-query-coding-region): Default implementation of
#'query-coding-region, using the safe-charsets and safe-chars
coding systemproperties.
(query-coding-region): New function; can a given coding system
encode a given region?
(query-coding-string): New function; can a given coding system
encode a given string?
(unencodable-char-position): Function API taken from GNU; return
the first unencodable position given a string and coding system.
(encode-coding-char): Function API taken from GNU; return CHAR
encoded using CODING-SYSTEM, or nil if CODING-SYSTEM would trash
CHAR.
((unless (featurep 'mule)): Override the default
query-coding-region implementation on non-Mule.
* mule/mule-coding.el (make-8-bit-generate-helper): Eliminate a
duplicate comment.
(make-8-bit-choose-category): Simplify implementation.
(8-bit-fixed-query-coding-region): Implementation of
#'query-coding-region for coding systems created with
#'make-8-bit-coding-system.
(make-8-bit-coding-system): Initialise the #'query-coding-region
implementation for these character sets.
(make-8-bit-coding-system): Ditto for the compiler macro version
of this function.
* unicode.el (unicode-query-coding-skip-chars-arg): New variable,
used by unicode-query-coding-region, initialised in
mule/general-late.el.
(unicode-query-coding-region): New function, the
#'query-coding-region implementation for Unicode coding systems.
Initialise the query-coding-function property for the Unicode
coding systems to #'unicode-query-coding-region.
* mule/mule-charset.el (charset-skip-chars-string): New
function. Return a #'skip-chars-forward argument that skips all
characters in CHARSET.
(map-charset-chars): Function synced from GNU, modified to work
with XEmacs. Map FUNC across the int value charset ranges of
CHARSET.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 21 Jan 2008 22:51:21 +0100 |
parents | 3078fd1074e8 |
children | 308d34e9f07d |
rev | line source |
---|---|
428 | 1 /* Mark end of data space to dump as pure, for XEmacs. |
2 Copyright (C) 1985 Free Software Foundation, Inc. | |
3 | |
4 This file is part of XEmacs. | |
5 | |
6 XEmacs is free software; you can redistribute it and/or modify it | |
7 under the terms of the GNU General Public License as published by the | |
8 Free Software Foundation; either version 2, or (at your option) any | |
9 later version. | |
10 | |
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with XEmacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 Boston, MA 02111-1307, USA. */ | |
20 | |
21 /* Synched up with: FSF 19.30. */ | |
22 | |
23 | |
24 /* How this works: | |
25 | |
26 Fdump_emacs dumps everything up to my_edata as text space (pure). | |
27 | |
28 The files of Emacs are written so as to have no initialized | |
29 data that can ever need to be altered except at the first startup. | |
30 This is so that those words can be dumped as sharable text. | |
31 | |
32 It is not possible to exercise such control over library files. | |
33 So it is necessary to refrain from making their data areas shared. | |
34 Therefore, this file is loaded following all the files of Emacs | |
35 but before library files. | |
36 As a result, the symbol my_edata indicates the point | |
37 in data space between data coming from Emacs and data | |
38 coming from libraries. | |
39 */ | |
40 | |
448 | 41 #include <config.h> |
42 | |
428 | 43 char my_edata[] = "End of Emacs initialized data"; |
44 | |
448 | 45 /* Ensure there is enough slack in the .bss to pad with. */ |
46 #ifdef HEAP_IN_DATA | |
47 #define BSS_PADDING 0x1000 | |
48 #else | |
49 #define BSS_PADDING 1 | |
50 #endif | |
51 | |
52 char my_ebss [BSS_PADDING]; | |
53 |