From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#4039: marked as done (C-x 8 RET with prefix arg doesn't repeat character) Date: Wed, 12 Aug 2009 20:50:04 +0000 Message-ID: References: <87d470lq21.fsf@mail.jurta.org> <87prbbfjcc.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1250110204-17186-0" X-Trace: ger.gmane.org 1250111258 23739 80.91.229.12 (12 Aug 2009 21:07:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Aug 2009 21:07:38 +0000 (UTC) To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 12 23:07:30 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MbL2e-0002TN-IM for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Aug 2009 23:07:29 +0200 Original-Received: from localhost ([127.0.0.1]:37138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbL2c-00035b-73 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Aug 2009 17:07:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbL29-0002j0-Lp for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2009 17:06:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbL24-0002cG-Dt for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2009 17:06:57 -0400 Original-Received: from [199.232.76.173] (port=46099 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbL24-0002c8-2i for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2009 17:06:52 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54841) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MbL23-0000qX-6n for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2009 17:06:51 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7CL6npK020601; Wed, 12 Aug 2009 14:06:49 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7CKo4u2017219; Wed, 12 Aug 2009 13:50:04 -0700 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 4039 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30135 Archived-At: This is a multi-part message in MIME format... ------------=_1250110204-17186-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Wed, 12 Aug 2009 23:45:10 +0300 with message-id <87d470lq21.fsf@mail.jurta.org> and subject line Re: bug#4039: C-x 8 RET with prefix arg doesn't repeat cha= racter has caused the Emacs bug report #4039, regarding C-x 8 RET with prefix arg doesn't repeat character to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 4039: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4039 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1250110204-17186-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 4 Aug 2009 20:32:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n74KW5dV016153 for ; Tue, 4 Aug 2009 13:32:06 -0700 Received: from mail.gnu.org ([199.232.76.166]:45513 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MYQg1-0007tU-03 for emacs-pretest-bug@gnu.org; Tue, 04 Aug 2009 16:32:05 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MYQfv-0000nP-VU for emacs-pretest-bug@gnu.org; Tue, 04 Aug 2009 16:32:04 -0400 Received: from smtp-out1.starman.ee ([85.253.0.3]:45198 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYQfv-0000nH-Cm for emacs-pretest-bug@gnu.org; Tue, 04 Aug 2009 16:31:59 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.70.102.cable.starman.ee [82.131.70.102]) by mx1.starman.ee (Postfix) with ESMTP id C48CA3F4194 for ; Tue, 4 Aug 2009 23:31:53 +0300 (EEST) From: Juri Linkov To: emacs-pretest-bug@gnu.org Subject: C-x 8 RET with prefix arg doesn't repeat character Organization: JURTA Date: Tue, 04 Aug 2009 22:51:47 +0300 Message-ID: <87prbbfjcc.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Typing C-u 5 C-x 8 ' a is supposed to insert 5 characters of =A8=A2 in a row (modulo the reported bug#4037). However, typing C-u 5 C-x 8 RET E1 RET inserts just 1 character (`E1' is the code point of =A8=A2). I propose to fix `ucs-insert' to accept the same arguments as `insert-char', i.e. `character', `count' and `inherit': Index: lisp/international/mule-cmds.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/international/mule-cmds.el,v retrieving revision 1.362 diff -c -r1.362 mule-cmds.el *** lisp/international/mule-cmds.el 15 Jul 2009 12:28:09 -0000 1.362 --- lisp/international/mule-cmds.el 4 Aug 2009 19:50:42 -0000 *************** *** 2941,2959 **** (t (cdr (assoc-string input (ucs-names) t)))))) =20=20 ! (defun ucs-insert (arg) ! "Insert a character of the given Unicode code point. Interactively, prompts for a Unicode character name or a hex number ! using `read-char-by-name'." ! (interactive (list (read-char-by-name "Unicode (name or hex): "))) ! (if (stringp arg) ! (setq arg (string-to-number arg 16))) (cond ! ((not (integerp arg)) ! (error "Not a Unicode character code: %S" arg)) ! ((or (< arg 0) (> arg #x10FFFF)) ! (error "Not a Unicode character code: 0x%X" arg))) ! (insert-and-inherit arg)) =20=20 (define-key ctl-x-map "8\r" 'ucs-insert) =20=20 --- 2941,2968 ---- (t (cdr (assoc-string input (ucs-names) t)))))) =20=20 ! (defun ucs-insert (character &optional count inherit) ! "Insert COUNT copies of CHARACTER of the given Unicode code point. Interactively, prompts for a Unicode character name or a hex number ! using `read-char-by-name'. ! The optional third arg INHERIT (non-nil when called interactively), ! says to inherit text properties from adjoining text, if those ! properties are sticky." ! (interactive ! (list (read-char-by-name "Unicode (name or hex): ") ! (prefix-numeric-value current-prefix-arg) ! t)) ! (unless count (setq count 1)) ! (if (stringp character) ! (setq character (string-to-number character 16))) (cond ! ((not (integerp character)) ! (error "Not a Unicode character code: %S" character)) ! ((or (< character 0) (> character #x10FFFF)) ! (error "Not a Unicode character code: 0x%X" character))) ! (if inherit ! (dotimes (i count) (insert-and-inherit character)) ! (dotimes (i count) (insert character)))) =20=20 (define-key ctl-x-map "8\r" 'ucs-insert) --=20 Juri Linkov http://www.jurta.org/emacs/ ------------=_1250110204-17186-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4039-done) by emacsbugs.donarmstrong.com; 12 Aug 2009 20:45:23 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.starman.ee (smtp-out1.starman.ee [85.253.0.3]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7CKjLKc016718 for <4039-done@emacsbugs.donarmstrong.com>; Wed, 12 Aug 2009 13:45:22 -0700 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.68.109.cable.starman.ee [82.131.68.109]) by mx1.starman.ee (Postfix) with ESMTP id DD0523F41A3 for <4039-done@emacsbugs.donarmstrong.com>; Wed, 12 Aug 2009 23:45:15 +0300 (EEST) From: Juri Linkov To: 4039-done@emacsbugs.donarmstrong.com Subject: Re: bug#4039: C-x 8 RET with prefix arg doesn't repeat character Organization: JURTA References: <87prbbfjcc.fsf@mail.jurta.org> Date: Wed, 12 Aug 2009 23:45:10 +0300 In-Reply-To: <87prbbfjcc.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 04 Aug 2009 22:51:47 +0300") Message-ID: <87d470lq21.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I propose to fix `ucs-insert' to accept the same arguments > as `insert-char', i.e. `character', `count' and `inherit': Done. -- Juri Linkov http://www.jurta.org/emacs/ ------------=_1250110204-17186-0--