view lisp/=iso8859-1.el @ 3075:878381e48b0d

* xfns.c: Clear out the old face stuff. (x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font, Fx_set_face, Fx_get_face): Removed. (syms_of_xfns): Remove defsubr for Fx_set_face. Arrange for font names to get fully resolved - no wildcards. * xfns.c (x_set_frame_parameters): Store the value in the frame parameter alist before we call the setter function, so the setter function can touch up the value if it chooses. (x_set_foreground_color, x_set_background_color): Call recompute_basic_faces, so their GC's will reflect the changes. (x_new_font): Add extern declaration - this returns a Lisp_Object now, the fully resolved font name. (x_set_font): Accept the fully resolved name from x_new_font, and put it in the frame's parameter alist. Call recompute_basic_faces. * xterm.c (x_new_font): Return the fully resolved font name, Qnil (if no match), or Qt (match, but unacceptable metrics). * xterm.c (x_new_font): Don't call init_frame_faces. * xterm.h: New section for declarations for xfaces.c. (init_frame_faces, free_frame_faces, intern_face, face_name_id_number, same_size_fonts, recompute_basic_faces, compute_char_face, compute_glyph_face): Declare these here. * xfaces.c (same_size_fonts): We can now remove this extern declaration. * xfns.c (face_name_id_number): Likewise. * xterm.c (intern_face): Likewise. * xfns.c (Fx_list_fonts): Remember that FACE may not have a font specified. Don't specify 30000 as the maximum limit on the number of fontns returned - 2000 is more reasonable. Treat faces as structures specifying modifications to the frame's parameters, rather than things which need to specify a complete set of parameters by themselves. * xfaces.c (init_frame_faces): Don't set up the two frame display faces by querying the GC - just leave all their fields blank, and call recompute_basic_faces, letting build_face do the work of consulting the frame when necessary. (recompute_basic_faces): New function. (compute_base_faces): New function for obtaining the "identity" for compute_char_face and compute_glyph_face. (compute_char_face, compute_glyph_face): Call it, instead of copying FRAME_DEFAULT_FACE. * xfns.c (x_make_gc): No need to call init_frame_faces here.
author Jim Blandy <jimb@redhat.com>
date Tue, 25 May 1993 14:03:41 +0000
parents d4b85bbedee8
children b64e3832b6de
line wrap: on
line source

;;; iso8859-1.el --- set up case-conversion and syntax tables for ISO 8859/1

;; Copyright (C) 1988 Free Software Foundation, Inc.

;; Author: Howard Gayle
;; Maintainer: FSF
;; Keywords: i18n

;; This file is part of GNU Emacs.

;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

;;; Commentary:

;; Written by Howard Gayle.  See case-table.el for details.

;;; Code:

(require 'case-table)

(let ((table (standard-case-table)))
  (set-case-syntax 160 " " table)	; NBSP (no-break space)
  (set-case-syntax 161 "." table)	; inverted exclamation mark
  (set-case-syntax 162 "w" table)	; cent sign
  (set-case-syntax 163 "w" table)	; pound sign
  (set-case-syntax 164 "w" table)	; general currency sign
  (set-case-syntax 165 "w" table)	; yen sign
  (set-case-syntax 166 "_" table)	; broken vertical line
  (set-case-syntax 167 "w" table)	; section sign
  (set-case-syntax 168 "w" table)	; diaeresis
  (set-case-syntax 169 "_" table)	; copyright sign
  (set-case-syntax 170 "w" table)	; ordinal indicator, feminine
  (set-case-syntax-delims 171 187 table) ; angle quotation marks
  (set-case-syntax 172 "_" table)	; not sign
  (set-case-syntax 173 "_" table)	; soft hyphen
  (set-case-syntax 174 "_" table)	; registered sign
  (set-case-syntax 175 "w" table)	; macron
  (set-case-syntax 176 "_" table)	; degree sign
  (set-case-syntax 177 "_" table)	; plus or minus sign
  (set-case-syntax 178 "w" table)	; superscript two
  (set-case-syntax 179 "w" table)	; superscript three
  (set-case-syntax 180 "w" table)	; acute accent
  (set-case-syntax 181 "_" table)	; micro sign
  (set-case-syntax 182 "w" table)	; pilcrow
  (set-case-syntax 183 "_" table)	; middle dot
  (set-case-syntax 184 "w" table)	; cedilla
  (set-case-syntax 185 "w" table)	; superscript one
  (set-case-syntax 186 "w" table)	; ordinal indicator, masculine
  ;;    	       	      187          ; See 171 above.
  (set-case-syntax 188 "_" table)	; fraction one-quarter
  (set-case-syntax 189 "_" table)	; fraction one-half
  (set-case-syntax 190 "_" table)	; fraction three-quarters
  (set-case-syntax 191 "." table)	; inverted question mark
  (set-case-syntax-pair 192 224 table) ; A with grave accent
  (set-case-syntax-pair 193 225 table) ; A with acute accent
  (set-case-syntax-pair 194 226 table) ; A with circumflex accent
  (set-case-syntax-pair 195 227 table) ; A with tilde
  (set-case-syntax-pair 196 228 table) ; A with diaeresis or umlaut mark
  (set-case-syntax-pair 197 229 table) ; A with ring
  (set-case-syntax-pair 198 230 table) ; AE diphthong
  (set-case-syntax-pair 199 231 table) ; C with cedilla
  (set-case-syntax-pair 200 232 table) ; E with grave accent
  (set-case-syntax-pair 201 233 table) ; E with acute accent
  (set-case-syntax-pair 202 234 table) ; E with circumflex accent
  (set-case-syntax-pair 203 235 table) ; E with diaeresis or umlaut mark
  (set-case-syntax-pair 204 236 table) ; I with grave accent
  (set-case-syntax-pair 205 237 table) ; I with acute accent
  (set-case-syntax-pair 206 238 table) ; I with circumflex accent
  (set-case-syntax-pair 207 239 table) ; I with diaeresis or umlaut mark
  (set-case-syntax-pair 208 240 table) ; D with stroke, Icelandic eth
  (set-case-syntax-pair 209 241 table) ; N with tilde
  (set-case-syntax-pair 210 242 table) ; O with grave accent
  (set-case-syntax-pair 211 243 table) ; O with acute accent
  (set-case-syntax-pair 212 244 table) ; O with circumflex accent
  (set-case-syntax-pair 213 245 table) ; O with tilde
  (set-case-syntax-pair 214 246 table) ; O with diaeresis or umlaut mark
  (set-case-syntax 215 "_" table)	; multiplication sign
  (set-case-syntax-pair 216 248 table) ; O with slash
  (set-case-syntax-pair 217 249 table) ; U with grave accent
  (set-case-syntax-pair 218 250 table) ; U with acute accent
  (set-case-syntax-pair 219 251 table) ; U with circumflex accent
  (set-case-syntax-pair 220 252 table) ; U with diaeresis or umlaut mark
  (set-case-syntax-pair 221 253 table) ; Y with acute accent
  (set-case-syntax-pair 222 254 table) ; thorn, Icelandic
  (set-case-syntax 223 "w" table)	; small sharp s, German
  (set-case-syntax 247 "_" table)	; division sign
  (set-case-syntax 255 "w" table)	; small y with diaeresis or umlaut mark
  (set-standard-case-table (list (car table))))

(provide 'iso8859-1)

;;; iso8859-1.el ends here