all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs Bug: universal argument & key-translation-map disables undo.
@ 2011-04-11  0:27 Xah Lee
  2011-04-11  6:36 ` Tassilo Horn
       [not found] ` <mailman.4.1302503806.8606.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Xah Lee @ 2011-04-11  0:27 UTC (permalink / raw)
  To: help-gnu-emacs

Emacs Bug: universal argument & key-translation-map disables undo.

This seems like a bug. Steps to reproduce:

• Start GNU Emacs 23.2 with “-Q”. (so it doesn't load any custome init
files.)

• Evaluate this: (define-key key-translation-map (kbd "M--") (kbd
"─")) (it lets you press 【Alt+-】 to insert a unicode char “BOX
DRAWINGS LIGHT HORIZONTAL” (U+2500).)

• Open a new buffer.

• Type 【C-u 30 M--】. (insert the char 30 times.)

• You get this error: universal-argument-other-key: Args out of range:
" ─", 0, 7

• Now, do Type 【C-u 30 M--】 again. This time, no problem.

• The worst problem is this: Now, when you try to undo, emacs says “No
further undo information”.

Notes: The exactly unicode char doesn't matter. The key used doesn't
seem to matter neither. Perhaps even unicode doesn't matter. The
problem seems to be using “key-translation-map” and with universal
argument.

 Xah


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

end of thread, other threads:[~2011-04-11 21:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-11  0:27 Emacs Bug: universal argument & key-translation-map disables undo Xah Lee
2011-04-11  6:36 ` Tassilo Horn
     [not found] ` <mailman.4.1302503806.8606.help-gnu-emacs@gnu.org>
2011-04-11 10:25   ` Xah Lee
2011-04-11 21:09     ` Tassilo Horn

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.