all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steve Revilak <steve@srevilak.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Trouble typing extended characters with emacsclient
Date: Tue, 4 Jan 2011 07:16:42 -0500	[thread overview]
Message-ID: <20110104121642.GA6359@srevilak.net> (raw)
In-Reply-To: <874o9ph2ac.fsf@kuiper.lan.informatimago.com>

[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]

>> I'm hoping that one of you could help me with an emacsclient problem.
>>
>> When I start emacs as "emacs -Q -nw", I can use the Compose key to
>> type extended characters.  For example the key sequence
>>
>>   <Compose> " u
>>
>> produces the character "?".
>>
>> I cannot get the same behavior with emacsclient. Specifically, if I
>> start emacs in daemon mode
>>
>>   emacs -Q --daemon
>>
>> and use "emacsclient myfile.txt", then typing the <Compose> sequence
>> above gives "C<" (two characters), rather than ?.


>Also, check the encoding codes on the left of the mode line.  Do they
>indicate iso or utf-8, or do they indicate an ASCII display?


Pascal,

Thanks for the suggestion.  Below is the mode line for the response
that I'm writing; it indicates ascii.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-=--:@**--F3  mutt-sunny-1000-6359-23   87% (422,0)    (Text Server Fill)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(Mutt, my MUA, runs emacsclient as an editor.)

C-h v buffer-file-coding-system tells me

   | buffer-file-coding-system is a variable defined in `C source code'.
   | Its value is undecided-unix
   | Local in buffer mutt-sunny-1000-6359-19; global value is utf-8-unix

I've tried 

   M-x set-buffer-file-coding-system RET utf-8-unix RET

This changes the beginning of the mode line to "-=-U:", but it does
not change the <Compose> key behavior that I described earlier.

>What about iso-transl?
>
>(require 'iso-transl)
>C-x 8 " u  --> ?

iso-transl addresses half of the problem.  C-x 8 " u inserts the
correct character.  Within emacsclient, the character appears as a "?"
(char 63) but the actual character is "ü" (char 252).

Steve

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-01-04 12:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1294105313.28790.help-gnu-emacs@gnu.org>
2011-01-04  1:43 ` Trouble typing extended characters with emacsclient Pascal J. Bourguignon
2011-01-04 12:16   ` Steve Revilak [this message]
2011-01-05  6:03 ` Stefan Monnier
2011-01-04  1:41 Steve Revilak

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=20110104121642.GA6359@srevilak.net \
    --to=steve@srevilak.net \
    --cc=help-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.