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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33829 in the body.
You can then email your comments to 33829 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#33829; Package emacs. (Fri, 21 Dec 2018 16:52:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 21 Dec 2018 16:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert
Date: Fri, 21 Dec 2018 08:50:51 -0800 (PST)
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.

But this works fine:

(global-set-key (kbd "C-o") "☬") to insert ☬.


In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-05-30
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor `Microsoft Corp.', version 10.0.16299
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33829; Package emacs. (Fri, 21 Dec 2018 17:29:01 GMT) Full text and rfc822 format available.

Message #8 received at 33829 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 33829 <at> debbugs.gnu.org
Subject: Re: bug#33829: 26.1;
 Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert
Date: Fri, 21 Dec 2018 18:28:00 +0100
On Dez 21 2018, Drew Adams <drew.adams <at> oracle.com> wrote:

> (global-set-key (kbd "C-o") "±")

ELISP> (key-description "±")
"M-1"

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33829; Package emacs. (Fri, 21 Dec 2018 20:16:02 GMT) Full text and rfc822 format available.

Message #11 received at 33829 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 33829 <at> debbugs.gnu.org
Subject: Re: 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33829; Package emacs. (Fri, 21 Dec 2018 22:28:02 GMT) Full text and rfc822 format available.

Message #14 received at 33829 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 33829 <at> debbugs.gnu.org
Subject: RE: bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't
 insert
Date: Fri, 21 Dec 2018 14:27:27 -0800 (PST)
> > (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.)

Duh.  Wasn't thinking.  I'll close the bug.  Thx.




bug closed, send any further explanations to 33829 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Drew Adams <drew.adams <at> oracle.com> to control <at> debbugs.gnu.org. (Fri, 21 Dec 2018 22:30:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 19 Jan 2019 12:24:03 GMT) Full text and rfc822 format available.

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.