GNU bug report logs - #33829
26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 21 Dec 2018 16:52:01 UTC

Severity: normal

Found in version 26.1

Done: Drew Adams <drew.adams <at> oracle.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 33829 <at> debbugs.gnu.org
Subject: bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert
Date: Fri, 21 Dec 2018 22:15:09 +0200
> Date: Fri, 21 Dec 2018 08:50:51 -0800 (PST)
> From: Drew Adams <drew.adams <at> oracle.com>
> 
> See https://emacs.stackexchange.com/q/46713/105
> 
> emacs -Q
> 
> (global-set-key (kbd "C-o") "±")
> 
> Then try `C-o'.  Instead of inserting the char you get `C-u 1-' in the
> minibuffer.  Emacs seems to be interpreting `C-o' as a partial numeric
> prefix arg.

No, it interprets ±, which is a single byte with the 8th bit set, as a
meta character.

(I wonder why you expected this to work even.)

> But this works fine:
> 
> (global-set-key (kbd "C-o") "☬") to insert ☬.

Because ☬ doesn't fit in a single byte.




This bug report was last modified 6 years and 147 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.