emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

latin1-display vs. unify-8859-on-encoding-mode


From: Jesper Harder
Subject: latin1-display vs. unify-8859-on-encoding-mode
Date: Thu, 01 Apr 2004 02:50:03 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

This is in an xterm in a latin-1 locale:

   (latin1-display 'latin-9)

does not have the desired effect of displaying the otherwise
undisplayable latin-9 characters, such as euro, with the mnemonics
defined in latin1-disp.el when unify-8859-on-encoding-mode is on.  It
works if it's turned off.

The problem seems to be that `latin1-display-check-font' tests for a
condition like:

  (char-displayable-p (make-char 'latin-iso8859-15 ?\ ))
   => 2208

i.e. the latin-9 SPC is unified to latin-1.  It works if you use a
generic character instead of SPC, but I don't know if it's the proper
fix.

*** /usr/local/share/emacs/21.3.50/lisp/international/latin1-disp.el~   Mon Nov 
17 06:22:36 2003
--- /usr/local/share/emacs/21.3.50/lisp/international/latin1-disp.el    Thu Apr 
 1 02:45:43 2004
***************
*** 220,226 ****
    (if (eq language 'cyrillic)
        (setq language 'cyrillic-iso))
    (let* ((info (get-language-info language 'charset))
!        (char (and info (make-char (car (remq 'ascii info)) ?\ ))))
      (and char (char-displayable-p char))))
  
  ;; Backwards compatibility.
--- 220,226 ----
    (if (eq language 'cyrillic)
        (setq language 'cyrillic-iso))
    (let* ((info (get-language-info language 'charset))
!        (char (and info (make-char (car (remq 'ascii info))))))
      (and char (char-displayable-p char))))
  
  ;; Backwards compatibility.

Diff finished.  Thu Apr  1 02:45:51 2004



In GNU Emacs 21.3.50.2 (i686-pc-linux-gnu, GTK+ Version 2.0.2)
 of 2004-03-30 on defun.localdomain
configured using `configure '--with-gtk''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.iso88591
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  auto-compression-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t




reply via email to

[Prev in Thread] Current Thread [Next in Thread]