all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert
@ 2018-12-21 16:50 Drew Adams
  2018-12-21 17:28 ` Andreas Schwab
  2018-12-21 20:15 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: Drew Adams @ 2018-12-21 16:50 UTC (permalink / raw)
  To: 33829

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''





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

* bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert
  2018-12-21 16:50 bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert Drew Adams
@ 2018-12-21 17:28 ` Andreas Schwab
  2018-12-21 20:15 ` Eli Zaretskii
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2018-12-21 17:28 UTC (permalink / raw)
  To: Drew Adams; +Cc: 33829

On Dez 21 2018, Drew Adams <drew.adams@oracle.com> wrote:

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

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

Andreas.

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





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

* bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert
  2018-12-21 16:50 bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert Drew Adams
  2018-12-21 17:28 ` Andreas Schwab
@ 2018-12-21 20:15 ` Eli Zaretskii
  2018-12-21 22:27   ` Drew Adams
  1 sibling, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2018-12-21 20:15 UTC (permalink / raw)
  To: Drew Adams; +Cc: 33829

> Date: Fri, 21 Dec 2018 08:50:51 -0800 (PST)
> From: Drew Adams <drew.adams@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.





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

* bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert
  2018-12-21 20:15 ` Eli Zaretskii
@ 2018-12-21 22:27   ` Drew Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2018-12-21 22:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 33829

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





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

end of thread, other threads:[~2018-12-21 22:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-21 16:50 bug#33829: 26.1; Unicode codepoint 177, PLUS-MINUS SIGN doesn't insert Drew Adams
2018-12-21 17:28 ` Andreas Schwab
2018-12-21 20:15 ` Eli Zaretskii
2018-12-21 22:27   ` Drew Adams

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.