* 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
* Re: Emacs Bug: universal argument & key-translation-map disables undo.
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>
1 sibling, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2011-04-11 6:36 UTC (permalink / raw)
To: help-gnu-emacs
Xah Lee <xahlee@gmail.com> writes:
Hi Xah,
> 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
I can confirm that I get this error with Emacs 23.3. However, it seems
to be already fixed in the current bzr trunk. I'm not sure, but most
probably that fix has also been applied to the emacs-23 branch, so both
Emacs 24.1 and Emacs 23.5 should be ok when they are released.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.4.1302503806.8606.help-gnu-emacs@gnu.org>]
* Re: Emacs Bug: universal argument & key-translation-map disables undo.
[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
0 siblings, 1 reply; 4+ messages in thread
From: Xah Lee @ 2011-04-11 10:25 UTC (permalink / raw)
To: help-gnu-emacs
On Apr 10, 11:36 pm, Tassilo Horn <tass...@member.fsf.org> wrote:
> Xah Lee <xah...@gmail.com> writes:
>
> Hi Xah,
>
> > 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
>
> I can confirm that I get this error with Emacs 23.3. However, it seems
> to be already fixed in the current bzr trunk. I'm not sure, but most
> probably that fix has also been applied to the emacs-23 branch, so both
> Emacs 24.1 and Emacs 23.5 should be ok when they are released.
>
> Bye,
> Tassilo
hi Tassilo,
that's interesting. Any idea what's the problem?
Xah
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs Bug: universal argument & key-translation-map disables undo.
2011-04-11 10:25 ` Xah Lee
@ 2011-04-11 21:09 ` Tassilo Horn
0 siblings, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2011-04-11 21:09 UTC (permalink / raw)
To: help-gnu-emacs
Xah Lee <xahlee@gmail.com> writes:
Hi Xah,
>> I can confirm that I get this error with Emacs 23.3. However, it
>> seems to be already fixed in the current bzr trunk. I'm not sure,
>> but most probably that fix has also been applied to the emacs-23
>> branch, so both Emacs 24.1 and Emacs 23.5 should be ok when they are
>> released.
>
> that's interesting. Any idea what's the problem?
Not really. I grepped the ChangeLog and the bzr log for "translation"
and "universal", but I did not check the relevant diffs (lack of time).
Bye,
Tassilo
^ 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.