unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Binding non-ASCII keys in .emacs not working
@ 2003-05-11 15:40 Ole Laursen
  2003-05-11 17:22 ` Eli Zaretskii
       [not found] ` <mailman.5982.1052674162.21513.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Ole Laursen @ 2003-05-11 15:40 UTC (permalink / raw)


Hi,

I used to have

  (global-set-key [(control æ)] 'delete-line)
                            ^
                      non-ASCII character

in my .emacs. But after Debian upgraded to 21.3, it doesn't work
anymore. 'C-u C-x =' on top of the 'æ' says

  character: æ (04346, 2278, 0x8e6)
    charset: latin-iso8859-1
	     (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100)
 code point: 102
     syntax: word
   category: l:Latin  
buffer code: 0x81 0xE6
  file code: E6 (encoded by coding system iso-latin-1-unix)
       font: -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO8859-1

As a consequence of asking about this before here (I think) I used to
have '-*- unibyte: t -*-' at the top of the file. Removing that and
restarting doesn't change anything. "locale" says

  LANG=da_DK.ISO-8859-1
  ...

Running 'C-h k C-æ' says

  æ runs the command self-insert-command
  (self-insert-command N)
     which is an interactive built-in function.

What do I do? I miss delete-line for deleting lines when I have
something in the kill ring I don't want to push further back.

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Binding non-ASCII keys in .emacs not working
  2003-05-11 15:40 Binding non-ASCII keys in .emacs not working Ole Laursen
@ 2003-05-11 17:22 ` Eli Zaretskii
       [not found] ` <mailman.5982.1052674162.21513.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2003-05-11 17:22 UTC (permalink / raw)


> Newsgroups: gnu.emacs.help
> From: Ole Laursen <olau@hardworking.dk>
> Date: 11 May 2003 17:40:45 +0200
> 
> What do I do? I miss delete-line for deleting lines when I have
> something in the kill ring I don't want to push further back.

The Emacs manual has 2 index entries about related issues, "non-ASCII
characters in .emacs" and "non-ASCII keys, binding".  Does the text
where those entries point help to fix the problem?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Binding non-ASCII keys in .emacs not working
       [not found] ` <mailman.5982.1052674162.21513.help-gnu-emacs@gnu.org>
@ 2003-05-11 18:10   ` Jesper Harder
  2003-05-12  3:32     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Jesper Harder @ 2003-05-11 18:10 UTC (permalink / raw)


"Eli Zaretskii" <eliz@elta.co.il> writes:

>> What do I do? I miss delete-line for deleting lines when I have
>> something in the kill ring I don't want to push further back.
>
> The Emacs manual has 2 index entries about related issues, "non-ASCII
> characters in .emacs" and "non-ASCII keys, binding".  Does the text
> where those entries point help to fix the problem?

No, not for me.  The problem is that Emacs 21.3 (and CVS Emacs) don't
distinguish between `C-æ' and `æ'.  Emacs 21.2 did that.

In 21.2:

(read-key-sequence "")  Input: æ  =>   [230]
(read-key-sequence "")  Input: C-æ  => [134]

In 21.3:

(read-key-sequence "")  Input: æ  =>   [2278]
(read-key-sequence "")  Input: C-æ  => [2278]


This means that I can bind `æ', but not `C-æ'.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Binding non-ASCII keys in .emacs not working
  2003-05-11 18:10   ` Jesper Harder
@ 2003-05-12  3:32     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2003-05-12  3:32 UTC (permalink / raw)


> Newsgroups: gnu.emacs.help
> From: Jesper Harder <harder@myrealbox.com>
> Date: Sun, 11 May 2003 20:10:37 +0200
> >
> > The Emacs manual has 2 index entries about related issues, "non-ASCII
> > characters in .emacs" and "non-ASCII keys, binding".  Does the text
> > where those entries point help to fix the problem?
> 
> No, not for me.  The problem is that Emacs 21.3 (and CVS Emacs) don't
> distinguish between `C-{ae}' and `{ae}'.  Emacs 21.2 did that.

Sounds like a bug.  Please report this to gnu.emacs.bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-12  3:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-11 15:40 Binding non-ASCII keys in .emacs not working Ole Laursen
2003-05-11 17:22 ` Eli Zaretskii
     [not found] ` <mailman.5982.1052674162.21513.help-gnu-emacs@gnu.org>
2003-05-11 18:10   ` Jesper Harder
2003-05-12  3:32     ` Eli Zaretskii

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).