Mercurial > hg > xemacs-beta
annotate modules/common/Makefile.common @ 4604:e0a8715fdb1f
Support new IGNORE-INVALID-SEQUENCESP argument, #'query-coding-region.
lisp/ChangeLog addition:
2009-02-07 Aidan Kehoe <kehoea@parhasard.net>
* coding.el (query-coding-clear-highlights):
Rename the BUFFER argument to BUFFER-OR-STRING, describe it as
possibly being a string in its documentation.
(default-query-coding-region):
Add a new IGNORE-INVALID-SEQUENCESP argument, document that this
function does not support it.
Bind case-fold-search to nil, we don't want this to influence what the
function thinks is encodable or not.
(query-coding-region):
Add a new IGNORE-INVALID-SEQUENCESP argument, document what it
does; reflect this new argument in the associated compiler macro.
(query-coding-string):
Add a new IGNORE-INVALID-SEQUENCESP argument, document what it
does. Support the HIGHLIGHT argument correctly.
* unicode.el (unicode-query-coding-region):
Add a new IGNORE-INVALID-SEQUENCESP argument, document what it
does, implement this. Document a potential problem.
Use #'query-coding-clear-highlights instead of reimplementing it
ourselves.
Remove some debugging messages.
* mule/arabic.el (iso-8859-6):
* mule/cyrillic.el (iso-8859-5):
* mule/greek.el (iso-8859-7):
* mule/hebrew.el (iso-8859-8):
* mule/latin.el (iso-8859-2):
* mule/latin.el (iso-8859-3):
* mule/latin.el (iso-8859-4):
* mule/latin.el (iso-8859-14):
* mule/latin.el (iso-8859-15):
* mule/latin.el (iso-8859-16):
* mule/latin.el (iso-8859-9):
* mule/latin.el (windows-1252):
* mule/mule-coding.el (iso-8859-1):
Avoid the assumption that characters not given an explicit mapping
in these coding systems map to the ISO 8859-1 characters
corresponding to the octets on disk; this makes it much more
reasonable to implement the IGNORE-INVALID-SEQUENCESP argument to
query-coding-region.
* mule/mule-cmds.el (set-language-info):
Correct the docstring.
* mule/mule-cmds.el (finish-set-language-environment):
Treat invalid Unicode sequences produced from
invalid-sequence-coding-system and corresponding to control
characters the same as control characters in redisplay.
* mule/mule-cmds.el:
Document that encode-coding-char is available in coding.el
* mule/mule-coding.el (make-8-bit-generate-helper):
Change to return the both the encode-program generated and the
relevant non-ASCII charset; update the docstring to reflect this.
* mule/mule-coding.el
(make-8-bit-generate-encode-program-and-skip-chars-strings):
Rename this function; have it return skip-chars-strings as well as
the encode program. Have these skip-chars-strings use ranges for
charsets, where possible.
* mule/mule-coding.el (make-8-bit-create-decode-encode-tables):
Revise this to allow people to specify explicitly characters that
should be undefined (= corresponding to keys in
unicode-error-default-translation-table), and treating unspecified
octets above #x7f as undefined by default.
* mule/mule-coding.el (8-bit-fixed-query-coding-region):
Add a new IGNORE-INVALID-SEQUENCESP argument, implement support
for it using the 8-bit-fixed-invalid-sequences-skip-chars coding
system property; remove some debugging messages.
* mule/mule-coding.el (make-8-bit-coding-system):
This function is dumped, autoloading it makes no sense.
Document what happens when characters above #x7f are not
specified, implement this.
* mule/vietnamese.el:
Correct spelling.
tests/ChangeLog addition:
2009-02-07 Aidan Kehoe <kehoea@parhasard.net>
* automated/query-coding-tests.el:
Add FAILING-CASE arguments to the Assert calls, making #'q-c-debug
mostly unnecessary. Remove #'q-c-debug.
Add new tests that use the IGNORE-INVALID-SEQUENCESP argument to
#'query-coding-region; rework the existing ones to respect it.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 07 Feb 2009 17:13:37 +0000 |
parents | 193188e494b2 |
children | c356806cc933 |
rev | line source |
---|---|
1083 | 1 ## Common Makefile section for modules in XEmacs. |
2 ## Copyright (C) 2002 Jerry James. | |
3062 | 3 ## Copyright (C) 2005 Ben Wing. |
1083 | 4 |
5 ## This file is part of XEmacs. | |
6 | |
7 ## XEmacs is free software; you can redistribute it and/or modify it | |
8 ## under the terms of the GNU General Public License as published by the | |
9 ## Free Software Foundation; either version 2, or (at your option) any | |
10 ## later version. | |
11 | |
12 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
13 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 ## for more details. | |
16 | |
17 ## You should have received a copy of the GNU General Public License | |
18 ## along with XEmacs; see the file COPYING. If not, write to | |
19 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 ## Boston, MA 02111-1307, USA. | |
21 | |
22 ## Synched up with: Not in FSF. | |
23 | |
24 ## This is more complicated than would normally be the case, as this makefile | |
25 ## has been tailored to work both inside and independently of the XEmacs | |
26 ## source tree, and to support both module and non-module building inside the | |
27 ## source tree. | |
28 | |
1111 | 29 ## Note: This will be appended to the individual module Makefiles by configure. |
30 | |
1632 | 31 #define NOT_C_CODE |
32 #include "../../src/config.h" | |
33 | |
1083 | 34 SHELL=/bin/sh |
35 RM=rm -f | |
36 PROGNAME=@PROGNAME@ | |
2377 | 37 CFLAGS=@XE_CFLAGS@ |
1083 | 38 INSTALL=@INSTALL@ |
39 version=@version@ | |
40 prefix=@prefix@ | |
41 exec_prefix=@exec_prefix@ | |
42 libdir=@libdir@ | |
43 instvardir=@instvardir@ | |
44 configuration=@configuration@ | |
45 moduledir=@moduledir@ | |
46 with_modules=@with_modules@ | |
47 | |
48 srcdir=@srcdir@ | |
49 VPATH=@srcdir@ | |
50 | |
1522 | 51 SRC_SRCS=$(SRCS:%=@srcdir@/%) |
1490 | 52 OBJS=$(SRCS:.c=.o) |
53 | |
1252 | 54 MODCC=@MOD_CC@ |
1083 | 55 MODARCHDIR=@MODARCHDIR@ |
56 MAKE_DOCFILE=@MAKE_DOCFILE@ | |
57 MODCFLAGS=@MODCFLAGS@ | |
58 INSTALLPATH=@INSTALLPATH@ | |
59 INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@ | |
60 OBJECT_TO_BUILD=@OBJECT_TO_BUILD@ | |
1650 | 61 LIBSTDCPP=@LIBSTDCPP@ |
1632 | 62 #ifdef HAVE_MS_WINDOWS |
63 IMPORT_LIB=../../src/xemacs-import.a | |
64 #endif | |
1083 | 65 |
3062 | 66 .PHONY: install |
1083 | 67 all: $(OBJECT_TO_BUILD) |
68 | |
69 .c.o: | |
1252 | 70 $(MODCC) $(MODCFLAGS) -c $< |
1083 | 71 |
1632 | 72 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) |
1489 | 73 $(MODCC) --mode=link --mode=verbose --mod-output=$@ \ |
1650 | 74 $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) $(LDFLAGS) $(LIBSTDCPP) |
1083 | 75 |
76 $(MODNAME)_i.c: $(SRCS) | |
1252 | 77 ELLMAKEDOC=$(MAKE_DOCFILE) $(MODCC) --mode=init --mod-output=$@ \ |
1083 | 78 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ |
79 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
80 | |
3062 | 81 .PHONY: mostlyclean clean distclean realclean extraclean |
82 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig | |
83 mostlyclean: | |
3083 | 84 -$(RM) $(OBJS) $(MODNAME)_i.* core |
3062 | 85 clean: mostlyclean |
3083 | 86 -$(RM) $(MODNAME).ell |
3062 | 87 distclean-noconfig: clean |
3083 | 88 -$(RM) config.* TAGS |
3062 | 89 ## This is used in making a distribution. |
90 ## Do not use it on development directories! | |
91 distclean: distclean-noconfig | |
3083 | 92 -$(RM) GNUmakefile Makefile Makefile.in configure |
3062 | 93 realclean-noconfig: distclean-noconfig |
94 realclean: distclean | |
95 extraclean-noconfig: realclean-noconfig | |
3083 | 96 -$(RM) *~ \#* |
3062 | 97 extraclean: realclean |
3083 | 98 -$(RM) *~ \#* |
1083 | 99 |
100 install: $(OBJECT_TO_BUILD) | |
101 $(INSTALL_PROGRAM) $< $(INSTALLPATH) | |
3062 | 102 |
103 ## | |
104 ## Local Variables: | |
105 ## mode: makefile | |
106 ## End: | |
107 ## |