GNU bug report logs - #5235
23.1; Unibyte keyboard input problem

Previous Next

Package: emacs;

Reported by: Tomasz Zbrożek <scianagoryczy <at> wp.pl>

Date: Wed, 16 Dec 2009 21:25:05 UTC

Severity: normal

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5235 in the body.
You can then email your comments to 5235 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5235; Package emacs. (Wed, 16 Dec 2009 21:25:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomasz Zbrożek <scianagoryczy <at> wp.pl>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 16 Dec 2009 21:25:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; Unibyte keyboard input problem
Date: Wed, 16 Dec 2009 22:17:14 +0100
Hi,
In Emacs 23.1, in unibyte mode (emacs --unibyte) and with windows-1250
coding I can't write Polish chars with right Alt key.  For example right Alt 
+ 'a' gives ^E on the screen. In Emacs 22.3 it works fine (I see polish 
char 'ą'), but there there is other problem that buffer is printed in 
iso-8859 even if I configure Language Environment to use windows-1250.  In 
23.1 with such Language Environment (configured to use cp1250) polish special 
chars read from file are printed correctly (I see them) but I can't write 
them using right Alt key (or even input mode polish-slash).

I checked it on GNU/Linux and also on MS Windows XP (pure NT-Emacs and 
EmacsW32), it's the same problem.

Regards
Tomek

In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2009-08-15 on scianagoryczy
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
configured using `configure  '--with-x-toolkit=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: pl_PL.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  gud-tooltip-mode: t
  global-hl-line-mode: t
  global-auto-revert-mode: t
  display-time-mode: t
  auto-insert-mode: t
  yas/minor-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<send-emacs-bug-report>

Recent messages:
Loading /home/tomek/emacs/color-theme-6.6.0/themes/color-theme-library.el 
(source)...done
Loading autoinsert...done
Loading time...done
Loading autorevert...done
Loading hl-line...done
Loading gud...done
Loading paren...done
Loading which-func...done
For information about GNU Emacs and the GNU system, type C-h C-a.
call-interactively: Text is read-only





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 18 Dec 2009 03:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>, 
	5235 <at> debbugs.gnu.org
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Fri, 18 Dec 2009 00:47:29 +0800
Tomasz Zbrożek wrote:
> Hi,
> In Emacs 23.1, in unibyte mode (emacs --unibyte)
Does it work as expected if you remove the --unibyte?





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 18 Dec 2009 04:46:02 GMT) Full text and rfc822 format available.

Message #11 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: Jason Rumney <jasonr <at> gnu.org>
Cc: 5235 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Thu, 17 Dec 2009 20:25:58 +0100
Thanks for reply!
In multibyte mode (I mean no --unibyte) Emacs 23.1 works great for me :)
I'll try to explain why I need unibyte mode. I'm maintener of a C/C++ source 
code which has comments coded in cp1250 (polish language) but strings in code 
are coded in cp852. So I have two different code pages in source code file. 
This is old source code and it was developed in Windows (that's why comments 
are in cp1250) but is compiled to work on MS-DOS (that's why strings are 
coded in cp852). Of course in multibyte mode I am able to write in these code 
pages (for example reloading file with C-x RET r) but when I select cp1250 to 
save the buffer emacs often tells me that some cp852 coded chars are not able 
to be saved in cp1250 and it wants me to select between raw-text, 
no-conversion and emacs-mule. In this situation I have to enter "cp1250" and 
force Emacs to save buffer in cp1250. So I do not want to write "cp1250" 
again and again when saving buffer to file.. And additionaly I'm not sure 
when I force to save my buffer in cp1250 what's going on exactly with cp852 
coded chars (I noticed both cp1250 and 852 chars are coded ok). 
That's why I decided to use unibyte mode. But as I described I found it's a 
problem with writing polish native chars in unibyte mode in Emacs 23.1. 
In fact I what to change mode when Emacs works, I mean not with --unibyte but 
with set-buffer-multibyte to nil when cpp file is being loaded but it seems 
this function does not work correctly or I do not undestand something.

Here is how I configure Language Environment:
 '(current-language-environment "Polish")
 '(language-info-custom-alist (quote (("Polish" (charset cp1250) 
(coding-system cp1250) (coding-priority cp1250 cp852) (nonascii-translation . 
cp1250) (unibyte-display . cp1250)))))
'(unibyte-display-via-language-environment t)

--
tomek

On Thursday 17 December 2009 17:47:29 Jason Rumney wrote:
> Tomasz Zbrożek wrote:
> > Hi,
> > In Emacs 23.1, in unibyte mode (emacs --unibyte)
>
> Does it work as expected if you remove the --unibyte?



-- 
tomek




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 18 Dec 2009 07:54:02 GMT) Full text and rfc822 format available.

Message #14 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: scianagoryczy <at> wp.pl
To: 5235 <at> debbugs.gnu.org
Subject: NT-Emacs settings
Date: Thu, 17 Dec 2009 14:26:25 +0100
this is important setting for the described problem from MS Windows XP 
and NT-Emacs 23.1 :

In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-30 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'

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: PLK
  value of $XMODIFIERS: nil
  locale-coding-system: cp1250
  default-enable-multibyte-characters: nil

Major mode: Lisp Interaction

Minor modes in effect:
  which-function-mode: t
  show-paren-mode: t
  gud-tooltip-mode: t
  global-hl-line-mode: t
  yas/minor-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <help-menu> <send-emacs-bug
-report>

Recent messages:
Loading e:/emacs/xref-1.6.10/xref/emacs/xrefactory.el (source)...done
Loading e:/emacs/color-theme-6.6.0/themes/color-theme-example.el 
(source)...done
Loading e:/emacs/color-theme-6.6.0/themes/color-theme-example.elc...done
Loading e:/emacs/color-theme-6.6.0/themes/color-theme-library.el 
(source)...done
Loading e:/emacs/color-theme-6.6.0/themes/color-theme-library.elc...done
Loading hl-line...done
Loading gud...done
Loading paren...done
Loading which-func...done
For information about GNU Emacs and the GNU system, type C-h C-a.

----------------------------------------------------
Kołodziej będzie miażdżył na ringu
18 grudnia, Gala Boksu w Łodzi
Zobacz:
http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fwojak18grudnia.html&sid=926






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 18 Dec 2009 14:38:03 GMT) Full text and rfc822 format available.

Message #17 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org, jasonr <at> gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Fri, 18 Dec 2009 11:46:09 +0200
> From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
> Date: Thu, 17 Dec 2009 20:25:58 +0100
> Cc: 5235 <at> emacsbugs.donarmstrong.com, bug-gnu-emacs <at> gnu.org
> 
> I'll try to explain why I need unibyte mode. I'm maintener of a C/C++ source 
> code which has comments coded in cp1250 (polish language) but strings in code 
> are coded in cp852. So I have two different code pages in source code file. 
> This is old source code and it was developed in Windows (that's why comments 
> are in cp1250) but is compiled to work on MS-DOS (that's why strings are 
> coded in cp852).

So when you visit this file in "emacs --unibyte", the cp852 strings
look like gibberish, right?  Only the cp1250 comments are displayed
correctly, right?

> Of course in multibyte mode I am able to write in these code 
> pages (for example reloading file with C-x RET r) but when I select cp1250 to 
> save the buffer emacs often tells me that some cp852 coded chars are not able 
> to be saved in cp1250 and it wants me to select between raw-text, 
> no-conversion and emacs-mule. In this situation I have to enter "cp1250" and 
> force Emacs to save buffer in cp1250. So I do not want to write "cp1250" 
> again and again when saving buffer to file..

You can put a coding: cookie in the file that forces Emacs to use
cp1250 without asking any questions.  In the first line of the file
(in a comment) put this:

                  -*-coding: cp1250 -*-

Alternatively, add "coding: cp1250" to the file's Local Variables
section at the end.

> And additionaly I'm not sure 
> when I force to save my buffer in cp1250 what's going on exactly with cp852 
> coded chars (I noticed both cp1250 and 852 chars are coded ok). 

So saving in cp1250 doesn't do anything bad with cp852-encoded
characters, right?  It shouldn't, IMO.

> That's why I decided to use unibyte mode.

Is that only because of those annoying questions in what encoding to
save?  Of are there other problems in multibyte mode that forced you
to use --unibyte?

> In fact I what to change mode when Emacs works, I mean not with --unibyte but 
> with set-buffer-multibyte to nil when cpp file is being loaded but it seems 
> this function does not work correctly or I do not undestand something.

Try visiting file with raw-text encoding:

   C-x RET c raw-text RET C-x C-f YOUR-CPP-FILE RET





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 18 Dec 2009 20:35:02 GMT) Full text and rfc822 format available.

Message #20 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: debbugs-submit <at> debbugs.gnu.org,
 Eli Zaretskii <eliz <at> gnu.org>
Cc: jasonr <at> gnu.org, 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Fri, 18 Dec 2009 20:50:59 +0100
[Message part 1 (text/plain, inline)]
On Friday 18 December 2009 10:46:09 Eli Zaretskii wrote:
> > From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
> > Date: Thu, 17 Dec 2009 20:25:58 +0100
> > Cc: 5235 <at> emacsbugs.donarmstrong.com, bug-gnu-emacs <at> gnu.org
> >
> > I'll try to explain why I need unibyte mode. I'm maintener of a C/C++
> > source code which has comments coded in cp1250 (polish language) but
> > strings in code are coded in cp852. So I have two different code pages in
> > source code file. This is old source code and it was developed in Windows
> > (that's why comments are in cp1250) but is compiled to work on MS-DOS
> > (that's why strings are coded in cp852).
>
> So when you visit this file in "emacs --unibyte", the cp852 strings
> look like gibberish, right?  Only the cp1250 comments are displayed
> correctly, right?
Right, I do not see cp852 correctly but it's all right. Of course I know I 
will see only one code page correctly. 


>
> > Of course in multibyte mode I am able to write in these code
> > pages (for example reloading file with C-x RET r) but when I select
> > cp1250 to save the buffer emacs often tells me that some cp852 coded
> > chars are not able to be saved in cp1250 and it wants me to select
> > between raw-text, no-conversion and emacs-mule. In this situation I have
> > to enter "cp1250" and force Emacs to save buffer in cp1250. So I do not
> > want to write "cp1250" again and again when saving buffer to file..
>
> You can put a coding: cookie in the file that forces Emacs to use
> cp1250 without asking any questions.  In the first line of the file
> (in a comment) put this:
>
>                   -*-coding: cp1250 -*-
>
> Alternatively, add "coding: cp1250" to the file's Local Variables
> section at the end.
>
In multibyte mode it doesn't work. You see, Emacs detects that there is no 
possibility to convert some of cp852 chars from emacs internal coding to the 
cp1250. Thats why emacs prompts me for safe coding (raw-text, no conversion 
or emacs-mule) and I have to force him to write file in cp1250. Find attached 
screen-shot from such a situation. Remember, it's multibyte mode, not 
unibyte. Coding system for saving the buffer is cp1250.


> > And additionaly I'm not sure
> > when I force to save my buffer in cp1250 what's going on exactly with
> > cp852 coded chars (I noticed both cp1250 and 852 chars are coded ok).
>
> So saving in cp1250 doesn't do anything bad with cp852-encoded
> characters, right?  It shouldn't, IMO.
>
I'm not sure, but in fact it looks ok. I do not exactly know how it works. I 
load cp1250 file to emacs internal coding. The file also has some cp852 chars 
and I do not know how thay are coded to the emacs internal coding and then 
how they are coded back to cp1250 when saving file :)


> > That's why I decided to use unibyte mode.
>
> Is that only because of those annoying questions in what encoding to
> save?  Of are there other problems in multibyte mode that forced you
> to use --unibyte?
Yes, I want to use unibyte mode becasuse of annoying question in multibyte 
mode. I do not know any way to force emacs not to ask me for coding system - 
see attached screen-shot.


>
> > In fact I what to change mode when Emacs works, I mean not with --unibyte
> > but with set-buffer-multibyte to nil when cpp file is being loaded but it
> > seems this function does not work correctly or I do not undestand
> > something.
>
> Try visiting file with raw-text encoding:
>
>    C-x RET c raw-text RET C-x C-f YOUR-CPP-FILE RET
Interesting, I see cp1250 polish native chars, but I can't write them using 
right Alt key. It behaves exactly like in unibyte mode, instead of 'ą' I see 
^E. Look at screen-shot.
It works "better" in emacs 22.3 but there the code page is iso-8859-2 even if 
I use -*- coding: cp1250 -*- or other methods to set codepage, but I can 
write polish natives with right ALT key (in iso-8859-2).

-- 
tomek
[emacs.png (image/png, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Thu, 24 Dec 2009 03:58:03 GMT) Full text and rfc822 format available.

Message #23 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org,
	Jason Rumney <jasonr <at> gnu.org>
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Wed, 23 Dec 2009 22:40:33 -0500
> In multibyte mode (I mean no --unibyte) Emacs 23.1 works great for me :)

--unibyte is deprecated, so rather than try and "fix" it, we want to fix
the problem that caused you to use --unibyte.

> I'll try to explain why I need unibyte mode. I'm maintener of a C/C++
> source  code which has comments coded in cp1250 (polish language) but
> strings in code  are coded in cp852. So I have two different code
> pages in source code file.  This is old source code and it was
> developed in Windows (that's why comments  are in cp1250) but is
> compiled to work on MS-DOS (that's why strings are  coded in cp852).

So what happens if you read those files as binary (i.e. C-x RET
r binary RET)?


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Thu, 24 Dec 2009 15:22:02 GMT) Full text and rfc822 format available.

Message #26 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: Tomasz Zbrożek <scianagoryczy <at> wp.pl>,
	5235 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Thu, 24 Dec 2009 23:21:41 +0800
Stefan Monnier wrote:
>> I'll try to explain why I need unibyte mode. I'm maintener of a C/C++
>> source  code which has comments coded in cp1250 (polish language) but
>> strings in code  are coded in cp852. So I have two different code
>> pages in source code file.  This is old source code and it was
>> developed in Windows (that's why comments  are in cp1250) but is
>> compiled to work on MS-DOS (that's why strings are  coded in cp852).
>>     
>
> So what happens if you read those files as binary (i.e. C-x RET
> r binary RET)?
>   

At best, he'd end up silently screwing up his files even further, with 
cp1250, cp852 and now utf-8 encoded characters in them.  More likely he 
would still get prompted when saving, just as if he'd used cp1250 or 
cp852 to read them.

The problem here is the files, not Emacs.  Basically the reason for 
using unibyte is that it allows the user to bury their head in the sand 
and pretend the problem does not exist.

I work on similar files in my day job, with Japanese comments in 
ShiftJIS and Chinese comments in GB2312. An easy method of fixing such 
files would be nice, but the best I can think of would be to provide a 
recode-region function, which would still be too much manual work to be 
worth it to me given that I can barely make sense of the Japanese 
comments and can't make any sense of the Chinese ones. The original 
poster might be more motivated to make use of such a function if it 
existed though.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Thu, 24 Dec 2009 15:23:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Thu, 24 Dec 2009 22:46:02 GMT) Full text and rfc822 format available.

Message #32 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jason Rumney <jasonr <at> gnu.org>, 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Thu, 24 Dec 2009 21:27:59 +0200
> Date: Thu, 24 Dec 2009 23:21:41 +0800
> From: Jason Rumney <jasonr <at> gnu.org>
> Cc: Tomasz Zbrożek <scianagoryczy <at> wp.pl>,
> 	5235 <at> emacsbugs.donarmstrong.com, bug-gnu-emacs <at> gnu.org
> 
> The problem here is the files, not Emacs.

I'd say, more accurately: the problem is that Emacs does not support
such use-cases.  It would be nice if we did: having comments in one
encoding and strings in another is not such a corner case.

> I work on similar files in my day job, with Japanese comments in 
> ShiftJIS and Chinese comments in GB2312. An easy method of fixing such 
> files would be nice, but the best I can think of would be to provide a 
> recode-region function

We would also need a way to encode different regions differently.
Perhaps adding special text properties to guide the encoding process
would be a way of doing that (we already have charset properties for
similar reasons).





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 25 Dec 2009 11:24:02 GMT) Full text and rfc822 format available.

Message #35 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org,
	Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Fri, 25 Dec 2009 19:23:42 +0800
Tomasz Zbrożek wrote:
> I started this bug-case to get the answer to the question: why in unibyte mode 
> when I try to write in cp1250 I get codes like ^E instead of proper chars in 
> buffer ?

Keyboard input on Windows is Unicode in 23.1.  In previous versions it 
was in the system default codepage.



>  This behaviour is not correct even when comparing to previous Emacs 
> version (22.3). So, my question is how to fix this strange keyboard input 
> behaviour in unibyte mode ?
>   

What is "correct" is undefined in unibyte mode, since unibyte deals with 
bytes, not characters.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 25 Dec 2009 11:25:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 25 Dec 2009 19:29:02 GMT) Full text and rfc822 format available.

Message #41 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: Jason Rumney <jasonr <at> gnu.org>
Cc: 5235 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org,
	Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Fri, 25 Dec 2009 12:03:29 +0100
The multibyte mode and its prompts for correct codepage is not problem. I 
think it's definitelty CORRECT behaviour and it's not the case I wanted to 
submit  to you.  
I think that solution for the problem with two code pages in one file is 
unibyte mode.

I started this bug-case to get the answer to the question: why in unibyte mode 
when I try to write in cp1250 I get codes like ^E instead of proper chars in 
buffer ? This behaviour is not correct even when comparing to previous Emacs 
version (22.3). So, my question is how to fix this strange keyboard input 
behaviour in unibyte mode ?

--
tomek

On Thursday 24 December 2009 16:21:41 Jason Rumney wrote:
> Stefan Monnier wrote:
> >> I'll try to explain why I need unibyte mode. I'm maintener of a C/C++
> >> source  code which has comments coded in cp1250 (polish language) but
> >> strings in code  are coded in cp852. So I have two different code
> >> pages in source code file.  This is old source code and it was
> >> developed in Windows (that's why comments  are in cp1250) but is
> >> compiled to work on MS-DOS (that's why strings are  coded in cp852).
> >
> > So what happens if you read those files as binary (i.e. C-x RET
> > r binary RET)?
>
> At best, he'd end up silently screwing up his files even further, with
> cp1250, cp852 and now utf-8 encoded characters in them.  More likely he
> would still get prompted when saving, just as if he'd used cp1250 or
> cp852 to read them.
>
> The problem here is the files, not Emacs.  Basically the reason for
> using unibyte is that it allows the user to bury their head in the sand
> and pretend the problem does not exist.
>
> I work on similar files in my day job, with Japanese comments in
> ShiftJIS and Chinese comments in GB2312. An easy method of fixing such
> files would be nice, but the best I can think of would be to provide a
> recode-region function, which would still be too much manual work to be
> worth it to me given that I can barely make sense of the Japanese
> comments and can't make any sense of the Chinese ones. The original
> poster might be more motivated to make use of such a function if it
> existed though.



-- 
tomek




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 25 Dec 2009 19:29:03 GMT) Full text and rfc822 format available.

Message #44 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: Jason Rumney <jasonr <at> gnu.org>
Cc: 5235 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org,
	Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Fri, 25 Dec 2009 12:43:47 +0100
On Friday 25 December 2009 12:23:42 Jason Rumney wrote:
> Tomasz Zbrożek wrote:
> > I started this bug-case to get the answer to the question: why in unibyte
> > mode when I try to write in cp1250 I get codes like ^E instead of proper
> > chars in buffer ?
>
> Keyboard input on Windows is Unicode in 23.1.  In previous versions it
> was in the system default codepage.
Is this why I get '^E' code instead of 'ą' when I press right ALT + 'a' in 
unibyte mode with codepage set to cp1250 (emacs version 23.1) ?
I checked it on Windows and GNU/Linux and it works the same.

Is there possibility to change emacs configuration somehow to get proper 
polish chars when writing in unibyte mode ?



-- 
tomek




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 25 Dec 2009 20:41:02 GMT) Full text and rfc822 format available.

Message #47 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>, 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Fri, 25 Dec 2009 22:42:14 +0200
> From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
> Date: Fri, 25 Dec 2009 12:03:29 +0100
> Cc: 5235 <at> emacsbugs.donarmstrong.com, bug-gnu-emacs <at> gnu.org
> 
> The multibyte mode and its prompts for correct codepage is not problem. I 
> think it's definitelty CORRECT behaviour and it's not the case I wanted to 
> submit  to you.  
> I think that solution for the problem with two code pages in one file is 
> unibyte mode.

I think Emacs developers are much more motivated to improve the
multibyte mode than to fix the unibyte mode.  I cannot speak for the
head maintainers, but that is certainly my opinion: the unibyte mode
should simply die, as a mode for interactive editing.

You received several suggestions for trying things in multibyte mode.
Perhaps you could try them and see if they allow you to edit your
programs without screwing up the cp852 characters.  If something is
still wrong, please describe the problems here: we are much more
likely to find a solution for multibyte mode editing than for unibyte.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Sat, 26 Dec 2009 14:29:02 GMT) Full text and rfc822 format available.

Message #50 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, jasonr <at> gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sat, 26 Dec 2009 16:30:41 +0200
> From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
> Date: Sat, 26 Dec 2009 13:45:53 +0100
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>,
>  5235 <at> emacsbugs.donarmstrong.com,
>  Eli Zaretskii <eliz <at> gnu.org>
> 
> encode \210 char (originally cp852) to cp1250 (because cp1250 is my codepage 
> to save, but of course after saving this char in the file should be cp852 
> coded and it will be when I force cp1250 - this is ok)
> 
> I can't find any way to force emacs not to prompt me with codepage selection, 
> I understand emacs treats it like an error (in his opinion \210 char is 
> wrong) but I would like to set somehow that cp1250 is safe,
> "-*- coding: cp1250 -*-" or modify-coding-system-alist function is not 
> solution
> 
> my only question is: how to configure emacs to omit this codepage selection in 
> such situation? 

Does it help to evaluate the expression below?

   (aset latin-extra-code-table ?\210 t)

Please do that _before_ visiting files which have the \210 character.
Then try to save such a file and see if this helps.

The above only handles the \210 character, so please don't try to use
any other characters whose code is between 128 and 160.  If this
works, it is trivial to cover the entire range, of course.

If the above does not help with cp1250, please try the same with
latin-2 instead (you will have to modify the `coding:' cookie for this
to work).





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Sat, 26 Dec 2009 17:04:02 GMT) Full text and rfc822 format available.

Message #53 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: Eli Zaretskii <eliz <at> gnu.org>,
 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sat, 26 Dec 2009 18:03:27 +0100
>Does it help to evaluate the expression below?
>
>  (aset latin-extra-code-table ?\210 t)
>
>Please do that _before_ visiting files which have the \210 character.
>Then try to save such a file and see if this helps.
>
>The above only handles the \210 character, so please don't try to use
>any other characters whose code is between 128 and 160.  If this
>works, it is trivial to cover the entire range, of course.
>
>If the above does not help with cp1250, please try the same with
>latin-2 instead (you will have to modify the `coding:' cookie for this
>to work).

(aset latin-extra-code-table ?\210 t) does not help with cp1250 and when I try 
to save buffer in latin-2 there is no need to use latin-extra-code-table 
because in this case there is no problem with \210 char encoding





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Sat, 26 Dec 2009 17:51:02 GMT) Full text and rfc822 format available.

Message #56 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sat, 26 Dec 2009 19:52:38 +0200
> From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
> Date: Sat, 26 Dec 2009 18:03:27 +0100
> 
> >Does it help to evaluate the expression below?
> >
> >  (aset latin-extra-code-table ?\210 t)
> >
> >Please do that _before_ visiting files which have the \210 character.
> >Then try to save such a file and see if this helps.
> >
> >The above only handles the \210 character, so please don't try to use
> >any other characters whose code is between 128 and 160.  If this
> >works, it is trivial to cover the entire range, of course.
> >
> >If the above does not help with cp1250, please try the same with
> >latin-2 instead (you will have to modify the `coding:' cookie for this
> >to work).
> 
> (aset latin-extra-code-table ?\210 t) does not help with cp1250 and when I try 
> to save buffer in latin-2 there is no need to use latin-extra-code-table 
> because in this case there is no problem with \210 char encoding

So does this mean using latin-2 solves your original problem as well?
That is, are you able to edit the source files without the annoying
questions from Emacs when you save the files?





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Sat, 26 Dec 2009 19:20:03 GMT) Full text and rfc822 format available.

Message #59 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: Eli Zaretskii <eliz <at> gnu.org>,
 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sat, 26 Dec 2009 20:19:38 +0100
>So does this mean using latin-2 solves your original problem as well?
>That is, are you able to edit the source files without the annoying
>questions from Emacs when you save the files?

No, latin-2 does not solve my problem:) I do not want to read/write file in 
latin-2 but cp1250! 
But yes, when saving in latin-2 then there is no problem (I mean, no annoying 
question) which exists when saving with cp1250. I understand that's 
because "convertion tables" are different for these both codepages and e.g. 
\210 code is differently converted.

Once again, I want to load my file with cp1250, edit it (writing polish chars 
and see them properly on screen) and save buffer with cp1250. (Of course all 
the strange chars which comes from cp852 should be unchanged.) When I load 
file with cp1250 and then save this buffer with latin-2 then all the polish 
chars that were originally in cp1250  will be now in latin-2 and this is not 
what I want.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Sat, 26 Dec 2009 21:23:02 GMT) Full text and rfc822 format available.

Message #62 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sat, 26 Dec 2009 23:24:47 +0200
> From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
> Date: Sat, 26 Dec 2009 20:19:38 +0100
> 
> >So does this mean using latin-2 solves your original problem as well?
> >That is, are you able to edit the source files without the annoying
> >questions from Emacs when you save the files?
> 
> No, latin-2 does not solve my problem:) I do not want to read/write file in 
> latin-2 but cp1250! 

Does the patch below give good results?

You will need to rebuild Emacs or manually load mule-cmds.elc, after
patching and compiling it.  Then set
select-safe-coding-system-respect-auto-coding to a non-nil value, and
see if the annoying question goes away while the files are saved
correctly without screwing up the cp852 characters.

Index: lisp/international/mule-cmds.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/international/mule-cmds.el,v
retrieving revision 1.386
diff -u -r1.386 mule-cmds.el
--- lisp/international/mule-cmds.el	9 Dec 2009 00:55:55 -0000	1.386
+++ lisp/international/mule-cmds.el	26 Dec 2009 21:21:17 -0000
@@ -807,6 +807,9 @@
     (set-window-configuration window-configuration)
     coding-system))
 
+(defvar select-safe-coding-system-respect-auto-coding nil
+  "If non-nil, always use coding system from coding cookies &c if possible.")
+
 (defun select-safe-coding-system (from to &optional default-coding-system
 				       accept-default-p file)
   "Ask a user to select a safe coding system from candidates.
@@ -976,7 +979,14 @@
 		(push (car elt) safe))
 	    (push (car elt) unsafe)))
 	(if safe
-	    (setq coding-system (car safe))))
+	    (setq coding-system (car safe))
+	  ;; If default-coding-system is in unsafe, and the user
+	  ;; insists, use it.
+	  (if (and select-safe-coding-system-respect-auto-coding
+		   default-coding-system
+		   (memq (caar default-coding-system) unsafe))
+	      (setq coding-system (caar default-coding-system)))))
+
 
       ;; If all the defaults failed, ask a user.
       (when (not coding-system)





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Sun, 27 Dec 2009 13:32:02 GMT) Full text and rfc822 format available.

Message #65 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: Eli Zaretskii <eliz <at> gnu.org>,
 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sun, 27 Dec 2009 14:30:47 +0100
Eli, it looks your patch works OK :D But...
On the default polish environment setting (latin-2), when I have -*- coding: 
cp1250 -*- in my file and when I try to save file with your feature I get 
such a message in minibuffer:

Selected encoding iso-latin-2-unix disagrees with windows-1250-unix specified 
by file contents.  Really save (else edit coding cookies and try again)? (yes 
or no) 

when I press yes the coding is gibberish in saved file.

If I use modify-coding-system-alist instead of "-*- coding:" result is the 
same, I mean gibberish but there is no question.

But when I change a little bit language enviroment to:

 '(language-info-custom-alist (quote (("Polish" (coding-priority cp1250)))))

then everything is OK and your patch works fine (no question when saving and 
coding is ok)! In this case I do not need to specify coding with "-*- 
coding:" or modify-coding-system-alist.








Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Sun, 27 Dec 2009 20:07:02 GMT) Full text and rfc822 format available.

Message #68 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org, Kenichi Handa <handa <at> m17n.org>
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sun, 27 Dec 2009 22:07:56 +0200
> From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
> Date: Sun, 27 Dec 2009 14:30:47 +0100
> 
> Eli, it looks your patch works OK

Thanks for testing.

> :D But...
> On the default polish environment setting (latin-2), when I have -*- coding: 
> cp1250 -*- in my file and when I try to save file with your feature I get 
> such a message in minibuffer:
> 
> Selected encoding iso-latin-2-unix disagrees with windows-1250-unix specified 
> by file contents.  Really save (else edit coding cookies and try again)? (yes 
> or no) 

This is expected, I think.  I could make it honor the `coding' cookie
even in that case, but I'd like first to know if this kind of solution
is acceptable (below).

> But when I change a little bit language enviroment to:
> 
>  '(language-info-custom-alist (quote (("Polish" (coding-priority cp1250)))))
> 
> then everything is OK and your patch works fine (no question when saving and 
> coding is ok)!

Good.

Handa-san, could you please tell if you see anything wrong with this
semi-kludgey solution?

Stefan and Yidong: assuming that Handa-san has no objections, is it
okay to commit the patch I sent yesterday?





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Wed, 30 Dec 2009 13:03:02 GMT) Full text and rfc822 format available.

Message #71 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Tue, 29 Dec 2009 13:48:28 -0200
> This is expected, I think.  I could make it honor the `coding' cookie
> even in that case, but I'd like first to know if this kind of solution
> is acceptable (below).

This aproach looks OK, actually, yes.  Basially, the user would set

  -*- coding: cp1250; select-safe-coding-system-respect-auto-coding: t -*-

tho in such a context a shorter varname would make sense, like
`coding-cookie-force'.  And then it'd be OK to obey it no matter what
(i.e. regardless of the default coding system, locale, etc...).


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Wed, 30 Dec 2009 13:03:03 GMT) Full text and rfc822 format available.

Message #74 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Jason Rumney <jasonr <at> gnu.org>
Cc: Tomasz Zbrożek <scianagoryczy <at> wp.pl>, 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Tue, 29 Dec 2009 13:43:01 -0200
>>> I'll try to explain why I need unibyte mode. I'm maintener of a C/C++
>>> source  code which has comments coded in cp1250 (polish language) but
>>> strings in code  are coded in cp852. So I have two different code
>>> pages in source code file.  This is old source code and it was
>>> developed in Windows (that's why comments  are in cp1250) but is
>>> compiled to work on MS-DOS (that's why strings are  coded in cp852).
>> So what happens if you read those files as binary (i.e. C-x RET
>> r binary RET)?
> At best, he'd end up silently screwing up his files even further, with
> cp1250, cp852 and now utf-8 encoded characters in them.  More likely he
> would still get prompted when saving, just as if he'd used cp1250 or cp852
> to read them.

That would be a bug: a file visited as `binary' (or as `raw-text')
should be placed in a unibyte buffer, so it should not screw anything up
more than was already the case to start with.

> The problem here is the files, not Emacs.  Basically the reason for using
> unibyte is that it allows the user to bury their head in the sand and
> pretend the problem does not exist.

Of course, but if you start with such files and can't (or don't want to)
recode the parts consistently, we can't do much better.

> I work on similar files in my day job, with Japanese comments in ShiftJIS
> and Chinese comments in GB2312. An easy method of fixing such files would be
> nice, but the best I can think of would be to provide a recode-region
> function, which would still be too much manual work to be worth it to me
> given that I can barely make sense of the Japanese comments and can't make
> any sense of the Chinese ones. The original poster might be more motivated
> to make use of such a function if it existed though.

I'm not sure what would be the best approach in general or in particular
cases, but we could certainly provide a command that recodes comments.
Or another one that looks for invalid byte sequences (i.e. decoded as
eight-bit-bytes) and tries to re-decode them with a secondary coding system.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Wed, 30 Dec 2009 13:23:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Wed, 30 Dec 2009 13:23:03 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Wed, 30 Dec 2009 13:24:01 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Wed, 30 Dec 2009 13:24:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Thu, 31 Dec 2009 02:12:06 GMT) Full text and rfc822 format available.

Message #89 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: Jason Rumney <jasonr <at> gnu.org>
Cc: 5235 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
	Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sat, 26 Dec 2009 13:45:53 +0100
[Message part 1 (text/plain, inline)]
>I think Emacs developers are much more motivated to improve the
>multibyte mode than to fix the unibyte mode.  I cannot speak for the
>head maintainers, but that is certainly my opinion: the unibyte mode
>should simply die, as a mode for interactive editing.
ok, I will not use unibyte mode :)

>You received several suggestions for trying things in multibyte mode.
>Perhaps you could try them and see if they allow you to edit your
>programs without screwing up the cp852 characters.  If something is
>still wrong, please describe the problems here: we are much more
>likely to find a solution for multibyte mode editing than for unibyte.
so, my only problem (in multibyte mode) is annoying question for safe coding 
when saving buffer, I attach a new screenshot:
- on the most upper buffer you see my file which has originally some cp1250 
chars and also cp852 chars, 
- on the middle buffer you see that I have cp1250 set to save this buffer, 
- and below there is a buffer with information that there is no possibility to 
encode \210 char (originally cp852) to cp1250 (because cp1250 is my codepage 
to save, but of course after saving this char in the file should be cp852 
coded and it will be when I force cp1250 - this is ok)

I can't find any way to force emacs not to prompt me with codepage selection, 
I understand emacs treats it like an error (in his opinion \210 char is 
wrong) but I would like to set somehow that cp1250 is safe,
"-*- coding: cp1250 -*-" or modify-coding-system-alist function is not 
solution

my only question is: how to configure emacs to omit this codepage selection in 
such situation? 

I would be thankful for help!
[emacs.png (image/png, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 26 Feb 2010 20:43:02 GMT) Full text and rfc822 format available.

Message #92 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
To: Eli Zaretskii <eliz <at> gnu.org>,
 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Fri, 26 Feb 2010 21:42:34 +0100
Eli,
is something going on with case 5235 on emacs bug list ?
I mean, will your patch (as I remember it needs some improvement ;) be 
implemented to the emacs current version ?

best regards!
-- 
tomek




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Fri, 26 Feb 2010 23:44:02 GMT) Full text and rfc822 format available.

Message #95 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Sat, 27 Feb 2010 01:42:53 +0200
> From: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
> Date: Fri, 26 Feb 2010 21:42:34 +0100
> 
> Eli,
> is something going on with case 5235 on emacs bug list ?
> I mean, will your patch (as I remember it needs some improvement ;) be 
> implemented to the emacs current version ?

I didn't yet have time to work on the improvement, sorry.  So I guess
it will not be in Emacs 23.2.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#5235; Package emacs. (Mon, 14 Sep 2020 14:00:02 GMT) Full text and rfc822 format available.

Message #98 received at 5235 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tomasz Zbrożek <scianagoryczy <at> wp.pl>
Cc: 5235 <at> debbugs.gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Mon, 14 Sep 2020 15:59:04 +0200
Tomasz Zbrożek <scianagoryczy <at> wp.pl> writes:

> In Emacs 23.1, in unibyte mode (emacs --unibyte) and with windows-1250
> coding I can't write Polish chars with right Alt key.

The --unibyte switch has been removed, so I can't reproduce the bug in
question here, so I'm going to go ahead and guess that this is no longer
relevant, and I'm closing this bug report.  Although skimming this bug
report, I'm wondering whether this is still relevant if you're
explicitly (set-buffer-multibyte nil) and entering text, but...  I'm not
sure?  If it is, please respond to the debbugs address, and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 5235 <at> debbugs.gnu.org and Tomasz Zbrożek <scianagoryczy <at> wp.pl> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 14 Sep 2020 14:00:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Oct 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 300 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.