From: "Tomasz Zbrożek" <scianagoryczy@wp.pl>
To: Jason Rumney <jasonr@gnu.org>
Cc: 5235@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org
Subject: Re: bug#5235: 23.1; Unibyte keyboard input problem
Date: Thu, 17 Dec 2009 20:25:58 +0100 [thread overview]
Message-ID: <200912172025.58502.scianagoryczy@wp.pl> (raw)
In-Reply-To: <4B2A60A1.2050804@gnu.org>
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
next prev parent reply other threads:[~2009-12-17 19:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 21:17 bug#5235: 23.1; Unibyte keyboard input problem Tomasz Zbrożek
2009-12-17 16:47 ` Jason Rumney
2009-12-17 19:25 ` Tomasz Zbrożek [this message]
2009-12-24 3:40 ` Stefan Monnier
2009-12-24 15:21 ` Jason Rumney
2009-12-24 19:27 ` Eli Zaretskii
2009-12-25 11:03 ` Tomasz Zbrożek
2009-12-25 11:23 ` Jason Rumney
2009-12-25 11:43 ` Tomasz Zbrożek
2009-12-26 12:45 ` Tomasz Zbrożek
2009-12-26 14:30 ` Eli Zaretskii
2009-12-25 20:42 ` Eli Zaretskii
2009-12-29 15:43 ` Stefan Monnier
2010-02-26 20:42 ` Tomasz Zbrożek
2010-02-26 23:42 ` Eli Zaretskii
2020-09-14 13:59 ` Lars Ingebrigtsen
-- strict thread matches above, loose matches on Subject: below --
2009-12-26 17:03 Tomasz Zbrożek
2009-12-26 17:52 ` Eli Zaretskii
2009-12-26 19:19 Tomasz Zbrożek
2009-12-26 21:24 ` Eli Zaretskii
2009-12-27 13:30 Tomasz Zbrożek
2009-12-27 20:07 ` Eli Zaretskii
2009-12-29 15:48 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200912172025.58502.scianagoryczy@wp.pl \
--to=scianagoryczy@wp.pl \
--cc=5235@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=jasonr@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.