* can't unjumble foreign buffer
@ 2003-05-14 23:07 Dan Jacobson
2003-05-16 4:24 ` Kenichi Handa
0 siblings, 1 reply; 5+ messages in thread
From: Dan Jacobson @ 2003-05-14 23:07 UTC (permalink / raw)
I do find-file on a file that is unicode text (.txt), and I want to
unjumble before my eyes. The only thing on the menus that might be
appropriate is 'set coding system' but that is greyed-out.
I do then instead Set Language Environment, but that instead affects
all buffers. And one doesn't see Unicode there.
OK, I put it into mozilla and selected Unicode and can read it.
My point is your menus don't have a intuitive way for the user to do
Mozilla's "View --> Character coding"
Admit it, one looks and looks and the best one can guess is that what
we want is in ..Mule...Set coding system, maybe. But it is greyed-out.
The user can't find what he wants from the face of it.
--
http://jidanni.org/ Taiwan(04)25854780
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: can't unjumble foreign buffer
[not found] <mailman.6229.1052976822.21513.bug-gnu-emacs@gnu.org>
@ 2003-05-15 14:38 ` Kevin Rodgers
2003-05-16 3:07 ` Dan Jacobson
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Rodgers @ 2003-05-15 14:38 UTC (permalink / raw)
Dan Jacobson wrote:
> I do find-file on a file that is unicode text (.txt), and I want to
> unjumble before my eyes. The only thing on the menus that might be
> appropriate is 'set coding system' but that is greyed-out.
From emacs-21.3/lisp/international/mule-cmds.el:
(define-key-after mule-menu-keymap [set-various-coding-system]
(list 'menu-item "Set Coding Systems" set-coding-system-map
:enable 'enable-multibyte-characters))
So the "Set Coding Systems" menu item is grayed-out when
enable-multibyte-characters is nil. So you must have explicitly disabled
multibyte character support.
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: can't unjumble foreign buffer
2003-05-15 14:38 ` Kevin Rodgers
@ 2003-05-16 3:07 ` Dan Jacobson
0 siblings, 0 replies; 5+ messages in thread
From: Dan Jacobson @ 2003-05-16 3:07 UTC (permalink / raw)
>> I do find-file on a file that is unicode text (.txt), and I want to
>> unjumble before my eyes. The only thing on the menus that might be
>> appropriate is 'set coding system' but that is greyed-out.
K> So the "Set Coding Systems" menu item is grayed-out when
K> enable-multibyte-characters is nil. So you must have explicitly disabled
K> multibyte character support.
No, my file,
begin 644 bad.txt
)Y8N9Y'SEG+#E
`
end
it turned out, wasn't perfect unicode.
Well, I still think emacs should be more comforting in telling the
user what is bothering it, instead of just shuttering its windows like
my file was a SARS patient, of by the way I hear plenty on my
ambulance scanner radio.
--
http://jidanni.org/ Taiwan(04)25854780
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: can't unjumble foreign buffer
2003-05-14 23:07 can't unjumble foreign buffer Dan Jacobson
@ 2003-05-16 4:24 ` Kenichi Handa
2003-05-16 4:46 ` Kenichi Handa
0 siblings, 1 reply; 5+ messages in thread
From: Kenichi Handa @ 2003-05-16 4:24 UTC (permalink / raw)
Cc: bug-gnu-emacs
In article <87he7xunyn.fsf@jidanni.org>, Dan Jacobson <jidanni@dman.ddts.net> writes:
> I do find-file on a file that is unicode text (.txt), and I want to
> unjumble before my eyes. The only thing on the menus that might be
> appropriate is 'set coding system' but that is greyed-out.
> I do then instead Set Language Environment, but that instead affects
> all buffers. And one doesn't see Unicode there.
> OK, I put it into mozilla and selected Unicode and can read it.
> My point is your menus don't have a intuitive way for the user to do
> Mozilla's "View --> Character coding"
> Admit it, one looks and looks and the best one can guess is that what
> we want is in ..Mule...Set coding system, maybe. But it is greyed-out.
Perhaps the file is detected as raw bytes.
I've just installed the attached fix so that the menu "Set
Coding Systems" is not greyed-out as far as Emacs is in
multibyte mode even if the current buffer is unibyte.
And, the HEAD version has this menu (which is also bound to
C-x RET r):
<menu-bar> <options> <mule> <set-various-coding-system>
<revert-buffer-with-coding-system>
When you select this menu, Emacs asks you to type a coding
system name, and re-visit the buffer file with the specified
coding system.
Isn't it what you want?
---
Ken'ichi HANDA
handa@m17n.org
2003-05-16 Kenichi Handa <handa@m17n.org>
* international/mule-cmds.el (mule-menu-keymap): Enable the menu
set-various-coding-system when
default-enable-multibyte-characters is non-nil.
Index: mule-cmds.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/international/mule-cmds.el,v
retrieving revision 1.230
retrieving revision 1.231
diff -u -c -r1.230 -r1.231
cvs server: conflicting specifications of output style
*** mule-cmds.el 28 Apr 2003 09:16:19 -0000 1.230
--- mule-cmds.el 16 May 2003 04:15:20 -0000 1.231
***************
*** 84,90 ****
t)
(define-key-after mule-menu-keymap [set-various-coding-system]
(list 'menu-item "Set Coding Systems" set-coding-system-map
! :enable 'enable-multibyte-characters))
(define-key-after mule-menu-keymap [view-hello-file]
'(menu-item "Show Multi-lingual Text" view-hello-file
:enable (file-readable-p
--- 84,90 ----
t)
(define-key-after mule-menu-keymap [set-various-coding-system]
(list 'menu-item "Set Coding Systems" set-coding-system-map
! :enable 'default-enable-multibyte-characters))
(define-key-after mule-menu-keymap [view-hello-file]
'(menu-item "Show Multi-lingual Text" view-hello-file
:enable (file-readable-p
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: can't unjumble foreign buffer
2003-05-16 4:24 ` Kenichi Handa
@ 2003-05-16 4:46 ` Kenichi Handa
0 siblings, 0 replies; 5+ messages in thread
From: Kenichi Handa @ 2003-05-16 4:46 UTC (permalink / raw)
Cc: bug-gnu-emacs
In article <200305160424.NAA06066@etlken.m17n.org>, Kenichi Handa <handa@m17n.org> writes:
>> Admit it, one looks and looks and the best one can guess is that what
>> we want is in ..Mule...Set coding system, maybe. But it is greyed-out.
> Perhaps the file is detected as raw bytes.
One more thing to add.
In the HEAD version, the priority of UTF-8 gets higher,
thus, usually, an UTF-8 file should be automatically decoded
correctly.
---
Ken'ichi HANDA
handa@m17n.org
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-05-16 4:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-14 23:07 can't unjumble foreign buffer Dan Jacobson
2003-05-16 4:24 ` Kenichi Handa
2003-05-16 4:46 ` Kenichi Handa
[not found] <mailman.6229.1052976822.21513.bug-gnu-emacs@gnu.org>
2003-05-15 14:38 ` Kevin Rodgers
2003-05-16 3:07 ` Dan Jacobson
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).