From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#4240: 23.1.50; C-u doesn't work with Swedish characters Date: Sun, 23 Aug 2009 21:54:04 +0300 Organization: JURTA Message-ID: <87ljlas6nn.fsf@mail.jurta.org> References: <7b501d5c0908230628r5bc2cad2he3fc7a2249fcac5@mail.gmail.com> Reply-To: Juri Linkov , 4240@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251054439 21547 80.91.229.12 (23 Aug 2009 19:07:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2009 19:07:19 +0000 (UTC) Cc: 4240@emacsbugs.donarmstrong.com To: Deniz Dogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 23 21:07:11 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 1MfIPH-0007oh-9Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Aug 2009 21:07:11 +0200 Original-Received: from localhost ([127.0.0.1]:50750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfIPG-0004eG-Nn for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Aug 2009 15:07:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfIP6-0004WQ-Rr for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 15:07:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfIP1-0004Nr-Mc for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 15:07:00 -0400 Original-Received: from [199.232.76.173] (port=50059 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfIP1-0004NW-Cc for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 15:06:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50044) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfIP0-0007sV-Kt for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2009 15:06:55 -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 n7NJ6p6c019638; Sun, 23 Aug 2009 12:06:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7NJ05aQ017715; Sun, 23 Aug 2009 12:00:05 -0700 Resent-Date: Sun, 23 Aug 2009 12:00:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 23 Aug 2009 19:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4240 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4240-submit@emacsbugs.donarmstrong.com id=B4240.125105371817175 (code B ref 4240); Sun, 23 Aug 2009 19:00:04 +0000 Original-Received: (at 4240) by emacsbugs.donarmstrong.com; 23 Aug 2009 18:55:18 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 n7NItFdG017172 for <4240@emacsbugs.donarmstrong.com>; Sun, 23 Aug 2009 11:55:17 -0700 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.30.208.cable.starman.ee [82.131.30.208]) by mx1.starman.ee (Postfix) with ESMTP id E17323F40EB; Sun, 23 Aug 2009 21:55:08 +0300 (EEST) In-Reply-To: <7b501d5c0908230628r5bc2cad2he3fc7a2249fcac5@mail.gmail.com> (Deniz Dogan's message of "Sun, 23 Aug 2009 15:28:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n7NJ6p6c019638 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 23 Aug 2009 15:06:59 -0400 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:30503 Archived-At: > I hit "C-u =E4" expecting it to come out as "=E4=E4=E4=E4". Instead it= comes out > as "=E4\344\344=E4". I try "C-u C-u =E4" and it comes out as "=E4" fol= lowed by > fourteen "\344" and then a trailing "=E4". This happens no matter whic= h > kind of repetition I'm doing, be it using C-u or using e.g. M-3. It's > always the leading and the trailing character that come out right, all > of the other ones are "broken". Please see bug#4037: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4037 I received no confirmation that my proposed fix is correct. Maybe the right fix is to reverse negation? It seems logical to check if a buffer is unibyte before converting from unibyte to multibyte, but I don't understand what this code was supposed to do. Index: src/cmds.c =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/src/cmds.c,v retrieving revision 1.107 diff -u -r1.107 cmds.c --- src/cmds.c 13 Jul 2009 01:02:51 -0000 1.107 +++ src/cmds.c 10 Aug 2009 22:54:02 -0000 @@ -337,7 +337,7 @@ /* Add the offset to the character, for Finsert_char. We pass internal_self_insert the unmodified character because it itself does this offsetting. */ - if (! NILP (current_buffer->enable_multibyte_characters)) + if (NILP (current_buffer->enable_multibyte_characters)) modified_char =3D unibyte_char_to_multibyte (modified_char); =20 XSETFASTINT (n, XFASTINT (n) - 2); --=20 Juri Linkov http://www.jurta.org/emacs/