From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Emacs Bug: universal argument & key-translation-map disables undo. Date: Sun, 10 Apr 2011 17:27:14 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6ad07e33-883c-44d2-b6a1-7167912b75f0@k11g2000yqc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1302482433 932 80.91.229.12 (11 Apr 2011 00:40:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 00:40:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 11 02:40:30 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q95B7-0004Z1-FP for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 02:40:29 +0200 Original-Received: from localhost ([127.0.0.1]:37122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q95B6-00053u-T4 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Apr 2011 20:40:28 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!k11g2000yqc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 35 Original-NNTP-Posting-Host: 76.126.112.84 Original-X-Trace: posting.google.com 1302481634 24466 127.0.0.1 (11 Apr 2011 00:27:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 Apr 2011 00:27:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k11g2000yqc.googlegroups.com; posting-host=76.126.112.84; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16, gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:186660 comp.emacs:101373 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80767 Archived-At: Emacs Bug: universal argument & key-translation-map disables undo. This seems like a bug. Steps to reproduce: =E2=80=A2 Start GNU Emacs 23.2 with =E2=80=9C-Q=E2=80=9D. (so it doesn't lo= ad any custome init files.) =E2=80=A2 Evaluate this: (define-key key-translation-map (kbd "M--") (kbd "=E2=94=80")) (it lets you press =E3=80=90Alt+-=E3=80=91 to insert a unicod= e char =E2=80=9CBOX DRAWINGS LIGHT HORIZONTAL=E2=80=9D (U+2500).) =E2=80=A2 Open a new buffer. =E2=80=A2 Type =E3=80=90C-u 30 M--=E3=80=91. (insert the char 30 times.) =E2=80=A2 You get this error: universal-argument-other-key: Args out of ran= ge: " =E2=94=80", 0, 7 =E2=80=A2 Now, do Type =E3=80=90C-u 30 M--=E3=80=91 again. This time, no pr= oblem. =E2=80=A2 The worst problem is this: Now, when you try to undo, emacs says = =E2=80=9CNo further undo information=E2=80=9D. 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 =E2=80=9Ckey-translation-map=E2=80=9D and with un= iversal argument. Xah