all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: can't unjumble foreign buffer
Date: Fri, 16 May 2003 13:24:23 +0900 (JST)	[thread overview]
Message-ID: <200305160424.NAA06066@etlken.m17n.org> (raw)
In-Reply-To: <87he7xunyn.fsf@jidanni.org> (message from Dan Jacobson on Thu, 15 May 2003 07:07:28 +0800)

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

  reply	other threads:[~2003-05-16  4:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-14 23:07 can't unjumble foreign buffer Dan Jacobson
2003-05-16  4:24 ` Kenichi Handa [this message]
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

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=200305160424.NAA06066@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=bug-gnu-emacs@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.