Mercurial > hg > xemacs-beta
view lisp/gdk.el @ 4989:d2ec55325515
make utf-8 default for Cygwin 1.7, rewrite init code determining default coding systems
-------------------- ChangeLog entries follow: --------------------
lisp/ChangeLog addition:
2010-02-06 Ben Wing <ben@xemacs.org>
* code-init.el:
* code-init.el (set-eol-detection):
* code-init.el (coding-system-current-system-configuration):
* code-init.el (coding-system-default-configuration-table): New.
* code-init.el (no-mule-no-eol-detection):
* code-init.el (define-coding-system-default-configuration): New.
* code-init.el (coding-system-variable-default-value-table): Removed.
* code-init.el (no-mule-eol-detection):
* code-init.el (coding-system-default-configuration-list): Removed.
* code-init.el (coding-system-default-variable-list):
* code-init.el (get-coding-system-variable):
* code-init.el (set-coding-system-variable):
* code-init.el (coding-system-variable-default-value):
* code-init.el (reset-coding-categories-to-default):
Significant clean-up, add Cygwin-UTF-8 support.
1. Shorten the names of the coding system variables to follow
what used to be considered the "abbreviations":
default-process-coding-system-read -> process-read
default-process-coding-system-write -> process-write
buffer-file-coding-system-for-read -> bfcs-for-read
default-buffer-file-coding-system -> default-bfcs
no-conversion-coding-system-mapping -> no-conv-cs
2. Instead of listing all the defaults in a big, strangely organized
table, use a new function
`define-coding-system-default-configuration' to define a
particular configuration. This uses a hash table stored in
`coding-system-default-configuration-table'. Rewrite
`coding-system-variable-default-value' appropriately.
3. Rename configurations to eliminate `unix' from the name:
unix-no-mule-no-eol-detection -> no-mule-no-eol-detection
unix-no-mule-eol-detection -> no-mule-eol-detection
unix-mule -> mule
This is because these are really for all systems but Windows,
not just Unix.
4. Add configuration `cygwin-utf-8', enabled when (featurep
'cygwin-use-utf-8). Uses `utf-8' for all defaults except for
`bfcs-for-read', which is `undecided'.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Sat, 06 Feb 2010 03:59:18 -0600 |
parents | 7039e6323819 |
children | 308d34e9f07d |
line wrap: on
line source
;;; gdk.el --- Import GDK functions into XEmacs ;; Copyright (C) 2000 Free Software Foundation ;; Maintainer: William Perry <wmperry@gnu.org> ;; Keywords: extensions, dumped ;; This file is part of XEmacs. ;; XEmacs 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. ;; XEmacs 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 XEmacs; see the file COPYING. If not, write to the Free ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ;; 02111-1307, USA. ;;; Synched up with: Not in FSF ;;; Commentary: ;; This file is dumped with XEmacs. (eval-and-compile (require 'gtk-ffi)) (globally-declare-fboundp '(gtk-import-function-internal gtk-call-function)) (gtk-import-function nil gdk_set_show_events (gboolean . show_events)) (gtk-import-function nil gdk_set_use_xshm (gboolean . use_xshm)) (gtk-import-function GtkString gdk_get_display) (gtk-import-function nil gdk_flush) (gtk-import-function nil gdk_beep) (gtk-import-function nil gdk_key_repeat_disable) (gtk-import-function nil gdk_key_repeat_restore) (gtk-import-function gint gdk_visual_get_best_depth) (gtk-import-function GdkVisualType gdk_visual_get_best_type) (gtk-import-function GdkVisual gdk_visual_get_system) (gtk-import-function GdkVisual gdk_visual_get_best) (gtk-import-function GdkVisual gdk_visual_get_best_with_depth (gint . depth)) (gtk-import-function GdkVisual gdk_visual_get_best_with_type (GdkVisualType . visual_type)) (gtk-import-function GdkVisual gdk_visual_get_best_with_both (gint . depth) (GdkVisualType . visual_type)) (gtk-import-function gboolean gdk_window_is_visible (GdkWindow . window)) (gtk-import-function gboolean gdk_window_is_viewable (GdkWindow . window)) (gtk-import-function gboolean gdk_window_set_static_gravities (GdkWindow . window) (gboolean . use_static)) (gtk-import-function nil gdk_window_set_cursor (GdkWindow . window) (GdkCursor . cursor)) (gtk-import-function GdkVisual gdk_window_get_visual (GdkWindow . window)) (gtk-import-function GdkWindowType gdk_window_get_type (GdkWindow . window)) (gtk-import-function GdkWindow gdk_window_get_parent (GdkWindow . window)) (gtk-import-function GdkWindow gdk_window_get_toplevel (GdkWindow . window)) (gtk-import-function GdkEventMask gdk_window_get_events (GdkWindow . window)) (gtk-import-function none gdk_window_set_events (GdkWindow . window) (GdkEventMask . events)) (gtk-import-function none gdk_window_set_icon (GdkWindow . window) (GdkWindow . icon_window) (GdkPixmap . pixmap) (GdkBitmap . mask)) (gtk-import-function none gdk_window_set_icon_name (GdkWindow . window) (GtkString . name)) (gtk-import-function none gdk_window_set_group (GdkWindow . window) (GdkWindow . leader)) (gtk-import-function none gdk_window_set_decorations (GdkWindow . window) (GdkWMDecoration . decorations)) (gtk-import-function none gdk_window_set_functions (GdkWindow . window) (GdkWMFunction . functions)) ;; Cursors are handled by glyphs in XEmacs ;; GCs are handled by faces in XEmacs ;; Pixmaps are handled by glyphs in XEmacs ;; Images are handled by glyphs in XEmacs ;; Colors are handled natively by XEmacs ;; Fonts are handled natively by XEmacs (gtk-import-function none gdk_draw_point (GdkDrawable . drawable) (GdkGC . gc) (gint . x) (gint . y)) (gtk-import-function none gdk_draw_line (GdkDrawable . drawable) (GdkGC . gc) (gint . x1) (gint . y1) (gint . x2) (gint . y2)) (gtk-import-function none gdk_draw_rectangle (GdkDrawable . drawable) (GdkGC . gc) (gboolean . filled) (gint . x) (gint . y) (gint . width) (gint . height)) (gtk-import-function none gdk_draw_arc (GdkDrawable . drawable) (GdkGC . gc) (gboolean . filled) (gint . x) (gint . y) (gint . width) (gint . height) (gint . angle1) (gint . angle2)) (gtk-import-function none gdk_draw_string (GdkDrawable . drawable) (GdkFont . font) (GdkGC . gc) (gint . x) (gint . y) (GtkString . string)) (gtk-import-function none gdk_draw_text (GdkDrawable . drawable) (GdkFont . font) (GdkGC . gc) (gint . x) (gint . y) (GtkString . string) (gint . text_length)) (gtk-import-function none gdk_draw_pixmap (GdkDrawable . drawable) (GdkGC . gc) (GdkImage . image) (gint . xsrc) (gint . ysrc) (gint . xdest) (gint . ydest) (gint . width) (gint . height)) ;; Selections are handled natively by XEmacs (provide 'gdk)