Package: emacs23
Version: 23.1+1-4
Severity: normal

When starting emacs23 with LC_NUMERIC=ru_RU it fails to load tabbar.el:

to REPRODUCE:

akartas...@naibed:~$ cat .emacs
(require 'tabbar)

akartas...@naibed:~$ unset LANG
akartas...@naibed:~$ locale
 LANG=
 LANGUAGE=
 LC_CTYPE="POSIX"
 LC_NUMERIC="POSIX"
 LC_TIME="POSIX"
 LC_COLLATE="POSIX"
 LC_MONETARY="POSIX"
 LC_MESSAGES="POSIX"
 LC_PAPER="POSIX"
 LC_NAME="POSIX"
 LC_ADDRESS="POSIX"
 LC_TELEPHONE="POSIX"
 LC_MEASUREMENT="POSIX"
 LC_IDENTIFICATION="POSIX"
 LC_ALL=
akartas...@naibed:~$ LC_NUMERIC=ru_RU emacs23 --debug-init &

Error in *scratch*:

Debugger entered--Lisp error: (error "Invalid face height" 0.0)
  internal-set-lisp-face-attribute(tabbar-default :height 0.0 #<frame 
[email protected] 0xa759f10>)
  set-face-attribute(tabbar-default #<frame [email protected] 0xa759f10> 
:inherit variable-pitch :height 0.0 :foreground "gray50" :background "gray75")
  apply(set-face-attribute tabbar-default #<frame [email protected] 
0xa759f10> (:inherit variable-pitch :height 0.0 :foreground "gray50" 
:background "gray75"))
  face-spec-set-2(tabbar-default #<frame [email protected] 0xa759f10> 
(((... ...) :inherit variable-pitch :height 0.0 :foreground "grey75" 
:background "gray50") ((... ...) :inherit variable-pitch :height 0.0 
:foreground "black" :background "white") ((... ...) :inherit variable-pitch 
:height 0.0 :foreground "white" :background "black") (t :inherit variable-pitch 
:height 0.0 :foreground "gray50" :background "gray75")))
  custom-declare-face(tabbar-default (((... ...) :inherit variable-pitch 
:height 0.0 :foreground "grey75" :background "gray50") ((... ...) :inherit 
variable-pitch :height 0.0 :foreground "black" :background "white") ((... ...) 
:inherit variable-pitch :height 0.0 :foreground "white" :background "black") (t 
:inherit variable-pitch :height 0.0 :foreground "gray50" :background "gray75")) 
"Default face used in the tab bar." :group tabbar)
  byte-code("������%�������%�������%�������%�������%�������%�������%�" 
[custom-declare-face tabbar-default ((... :inherit variable-pitch :height 0.0 
:foreground "grey75" :background "gray50") (... :inherit variable-pitch :height 
0.0 :foreground "black" :background "white") (... :inherit variable-pitch 
:height 0.0 :foreground "white" :background "black") (t :inherit variable-pitch 
:height 0.0 :foreground "gray50" :background "gray75")) "Default face used in 
the tab bar." :group tabbar tabbar-unselected ((t :inherit tabbar-default :box 
...)) "Face used for unselected tabs." tabbar-selected ((t :inherit 
tabbar-default :box ... :foreground "blue")) "Face used for the selected tab." 
tabbar-highlight ((t :underline t)) "Face used to highlight a tab during 
mouse-overs." tabbar-separator ((t :inherit tabbar-default :height 0.0)) "Face 
used for separators between tabs." tabbar-button ((t 
 :inherit tabbar-default :box ... :foreground "dark red")) "Face used for tab 
bar buttons." tabbar-button-highlight ((t :inherit tabbar-default)) "Face used 
to highlight a button during mouse-overs."] 6)
  require(tabbar)
  eval-buffer(#<buffer  *load*> nil "/home/akartashov/.emacs" nil t)  ; Reading 
at buffer position 18
  load-with-code-conversion("/home/akartashov/.emacs" "/home/akartashov/.emacs" 
t t)
  load("~/.emacs" t t)
  #[nil ��

tabbar.el comes from:

$ dpkg-query -W emacs-goodies-el
emacs-goodies-el        30.8-1

I believe that bug is caused by emacs incorrectly reading
 numeric values with decimal point as dot. Locale ru_RU uses comma as decimal 
point sign AFAIR.
 If to edit /usr/share/emacs/site-lisp/emacs-goodies-el/tabbar.el by replacing 
all
 lines 'height 0.*' with 'height 1':

akartas...@naibed:~$ diff
 /usr/share/emacs/site-lisp/emacs-goodies-el/tabbar.el{.bak,}
 566c566
 <      :height 0.8
 ---
 >      :height 1
 572c572
 <      :height 0.8
 ---
 >      :height 1
 578c578
 <      :height 0.8
 ---
 >      :height 1
 584c584
 <      :height 0.8
 ---
 >      :height 1
 618c618
 <      :height 0.1
 ---
 >      :height 1
 
  ... and remove byte-compiled 
/usr/share/emacs/23.1.50/site-lisp/emacs-goodies-el/tabbar.elc then
 this bug will disappear. Of course this is not workaround.

Similar issue is reported here: 
http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3586

There is no such problem in emacs22=22.3+1-1.1.

Please let me know if additional details are needed.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 
'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages emacs23 depends on:
ii  emacs23-bin-common     23.1+1-4          The GNU Emacs editor's shared, arc
ii  install-info           4.13a.dfsg.1-5    Manage installed documentation in 
ii  libasound2             1.0.21a-1         shared library for ALSA applicatio
ii  libatk1.0-0            1.28.0-1          The ATK accessibility toolkit
ii  libc6                  2.9-26            GNU C Library: Shared libraries
ii  libcairo2              1.8.8-2           The Cairo 2D vector graphics libra
ii  libdbus-1-3            1.2.16-2          simple interprocess messaging syst
ii  libfontconfig1         2.6.0-4           generic font configuration library
ii  libfreetype6           2.3.9-5           FreeType 2 font engine, shared lib
ii  libgif4                4.1.6-8           library for GIF images (library)
ii  libglib2.0-0           2.22.0-1          The GLib library of C routines
ii  libgpm2                1.20.4-3.2        General Purpose Mouse - shared lib
ii  libgtk2.0-0            2.18.0-1          The GTK+ graphical user interface 
ii  libice6                2:1.0.5-1         X11 Inter-Client Exchange library
ii  libjpeg62              6b-15             The Independent JPEG Group's JPEG 
ii  libm17n-0              1.5.4-1+b1        a multilingual text processing lib
ii  libncurses5            5.7+20090803-2    shared libraries for terminal hand
ii  libotf0                0.9.9-1           A Library for handling OpenType Fo
ii  libpango1.0-0          1.26.0-1          Layout and rendering of internatio
ii  libpng12-0             1.2.39-1          PNG library - runtime
ii  librsvg2-2             2.26.0-1          SAX-based renderer library for SVG
ii  libsm6                 2:1.1.1-1         X11 Session Management library
ii  libtiff4               3.9.1-1           Tag Image File Format (TIFF) libra
ii  libx11-6               2:1.2.2-1         X11 client-side library
ii  libxft2                2.1.13-3          FreeType-based font drawing librar
ii  libxpm4                1:3.5.7-2         X11 pixmap library
ii  libxrender1            1:0.9.4-2         X Rendering Extension client libra
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

emacs23 recommends no packages.

Versions of packages emacs23 suggests:
pn  emacs23-common-non-dfsg       <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to