[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spurious \201 before latin-2 letters in unibyte mode when using desk
From: |
Jakub Narebski |
Subject: |
Re: Spurious \201 before latin-2 letters in unibyte mode when using desktop.el (supplement) |
Date: |
Fri, 18 May 2001 17:05:42 +0200 (CEST) |
On Fri, 11 May 2001, Jakub Narebski wrote:
> In GNU Emacs 20.7.2 (i386-slackware-linux-gnu, X toolkit)
> of Mon Jun 19 2000 on zap
> configured using `configure i386-slackware-linux --prefix=/usr --with-x11
> --with-x-toolkit --with-pop'
>
> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:
>
>
> I use Emacs in unibyte mode to write in Polish (iso-8859-2 aka latin-2
> charset). I have put
> (standard-display-european t)
> in my .emacs. I do not use MULE (mainly because I don't have proper
> latin-2 fonts; e.g. Polish letter ą, which should be under aogonek, is
> under name of latin-1 character of its code, namely plusminus).
>
> I put the following lines in my .emacs
> (desktop-load-default)
> (desktop-read)
> to have the ability to save session (per directory basis) using
> desktop-save (from desktop.el). I opened file which is under some
> version control system (e.g. under RCS or CVS) and Emacs uses VC e.g. to
> display CVS-1.1 in modeline. Then I saved desktop using M-x desktop-save.
> When I restored session by running emacs in the directory where I saved
> the session, there were spurious \202 or \201 characters before each
> Polish letter.
>
> The \202 character is visible when file is under RCS and CVS. This
> character dissapears after checkin/checkout. It does not disappear after
> redraw (C-l).
Moreover, there are \201 (not \202) characters before each Polish letter
when restoring session using desktop.el, even if file is _not_ under
version control.
Simple example: I wrote the following contents to the file pltest.txt
%% pltest.txt begins here
ąćęłńóśżź
ĄĆĘŁŃÓŚŻŹ
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
%% pltest.txt ends here.
Then I used M-x desktop-save and quit Emacs. When I run Emacs in the
directory where .emacs.desktop was saved, the screen contains (pasted via
xclipboard):
%% pltest.txt begins here
ąćęłńóśżź
ĄĆĘŁŃÓŚŻŹ
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
%% pltest.txt ends here.
It _looks_ like this:
%% pltest.txt begins here
\201ą\201ć\201ę\201ł\201ń\201ó\201ś\201ż\201ź
\201Ą\201Ć\201Ę\201Ł\201Ń\201Ó\201Ś\201Ż\201Ź
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
%% pltest.txt ends here.
The .emacs.desktop contains
%% .emacs.desktop begins here
;; --------------------------------------------------------------------------
;; Desktop File for Emacs
;; --------------------------------------------------------------------------
;; Created Fri May 18 16:50:43 2001
;; Emacs version 20.7.2
;; Global section:
(setq desktop-missing-file-warning nil)
(setq tags-file-name nil)
(setq tags-table-list nil)
(setq search-ring nil)
(setq regexp-search-ring nil)
(setq register-alist nil)
;; Buffer section:
(desktop-create-buffer 205
"/tmp/jnareb/test/pltest.txt"
"pltest.txt"
'text-mode
'(nil)
75
'(49 t)
nil
nil
nil)
%% .emacs.desktop ends here
My .emacs file contains (among others) the following lines:
(desktop-load-default)
(desktop-read)
(standard-display-european t)
(if running-xemacs
(progn
(turn-on-font-lock)
(lazy-shot-mode))
(progn
(global-font-lock-mode t)
(setq font-lock-support-mode 'lazy-lock-mode)))
(setq font-lock-maximum-decoration t)
Have you any suggestions to what is wrong?
Sincerely
--
Jakub Narębski
Poland