annotate lisp/mule/mule-composite-stub.el @ 5023:838630c0734f

error-checking, Windows shutdown changes -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-02-09 Ben Wing <ben@xemacs.org> * dynarr.c (Dynarr_insert_many): * dynarr.c (Dynarr_delete_many): * emacs.c: * emacs.c (pause_so_user_can_read_messages): * emacs.c (Fkill_emacs): * emacs.c (guts_of_fatal_error_signal): * lisp.h: * lisp.h (INLINE_ERROR_CHECK_ARGS): * lisp.h (Dynarr_set_length_1): * lisp.h (Dynarr_set_length): * lisp.h (Dynarr_pop): Add ERROR_CHECK_DYNARR, dynarr_checking_assert(). Use it. Sort existing error-check categories in lisp.h, remove most of the (unused) assert variations from most categories. Add a long comment about reorganizing the system by categories and subcategories. Create ERROR_CHECK_ANY if any error-checking categories defined, and use it in emacs.c to define USER_IS_DEVELOPING_XEMACS. In emacs.c and cmdloop.c, don't display a message at early shutdown or fatal shutdown when on Cygwin, only Windows native -- Cygwin has a working stderr that shows error output. Update comment in Dynarr_verify_pos_atp().
author Ben Wing <ben@xemacs.org>
date Tue, 09 Feb 2010 19:13:44 -0600
parents 2923009caf47
children 308d34e9f07d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
778
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
1 ;;; mule-composite-stub.el --- Stubs of composition support -*- coding: iso-2022-7bit; -*-
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
2
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
3 ;; Copyright (C) 2002 Ben Wing.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
4
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
5 ;; Keywords: multibyte character, composition
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
6
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
7 ;; This file is part of XEmacs.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
8
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
9 ;; XEmacs is free software; you can redistribute it and/or modify it
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
10 ;; under the terms of the GNU General Public License as published by
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
12 ;; any later version.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
13
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
14 ;; XEmacs is distributed in the hope that it will be useful, but
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
17 ;; General Public License for more details.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
18
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
20 ;; along with XEmacs; see the file COPYING. If not, write to the Free
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
21 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
22 ;; 02111-1307, USA.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
23
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
24 ;;; Synched up with: Emacs 21.1 (src/fontset.c, src/composite.c).
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
25
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
26 ;;; Commentary:
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
27
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
28 ;;; Code:
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
29
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
30 (defvar use-default-ascent (make-char-table 'generic)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
31 "UNIMPLEMENTED.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
32 Char table of characters whose ascent values should be ignored.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
33 If an entry for a character is non-nil, the ascent value of the glyph
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
34 is assumed to be what specified by _MULE_DEFAULT_ASCENT property of a font.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
35
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
36 This affects how a composite character which contains
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
37 such a character is displayed on screen.")
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
38
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
39 (defvar ignore-relative-composition (make-char-table 'generic)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
40 "UNIMPLEMENTED.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
41 Char table of characters which is not composed relatively.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
42 If an entry for a character is non-nil, a composition sequence
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
43 which contains that character is displayed so that
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
44 the glyph of that character is put without considering
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
45 an ascent and descent value of a previous character.")
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
46
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
47 (defvar compose-chars-after-function 'compose-chars-after
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
48 "UNIMPLEMENTED.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
49 Function to adjust composition of buffer text.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
50
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
51 The function is called with three arguments FROM, TO, and OBJECT.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
52 FROM and TO specify the range of text of which composition should be
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
53 adjusted. OBJECT, if non-nil, is a string that contains the text.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
54
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
55 This function is called after a text with `composition' property is
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
56 inserted or deleted to keep `composition' property of buffer text
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
57 valid.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
58
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
59 The default value is the function `compose-chars-after'.")
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
60
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
61 (defvar composition-function-table (make-char-table 'generic)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
62 "UNIMPLEMENTED.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
63 Char table of patterns and functions to make a composition.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
64
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
65 Each element is nil or an alist of PATTERNs vs FUNCs, where PATTERNs
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
66 are regular expressions and FUNCs are functions. FUNC is responsible
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
67 for composing text matching the corresponding PATTERN. FUNC is called
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
68 with three arguments FROM, TO, and PATTERN. See the function
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
69 `compose-chars-after' for more detail.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
70
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
71 This table is looked up by the first character of a composition when
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
72 the composition gets invalid after a change in a buffer.")
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
73
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
74 (defun compose-region-internal (start end &optional components mod-func)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
75 "UNIMPLEMENTED.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
76 Internal use only.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
77
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
78 Compose text in the region between START and END.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
79 Optional 3rd and 4th arguments are COMPONENTS and MODIFICATION-FUNC
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
80 for the composition. See `compose-region' for more detial."
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
81 nil)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
82
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
83 (defun compose-string-internal (string start end &optional components mod-func)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
84 "UNIMPLEMENTED.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
85 Internal use only.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
86
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
87 Compose text between indices START and END of STRING.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
88 Optional 4th and 5th arguments are COMPONENTS and MODIFICATION-FUNC
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
89 for the composition. See `compose-string' for more detial."
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
90 nil)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
91
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
92 (defun find-composition-internal (pos limit string detail-p)
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
93 "UNIMPLEMENTED.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
94 Internal use only.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
95
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
96 Return information about composition at or nearest to position POS.
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
97 See `find-composition' for more detail."
2923009caf47 [xemacs-hg @ 2002-03-16 10:38:59 by ben]
ben
parents:
diff changeset
98 nil)