From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#20410: 24.5.50; cursor not updated after yank of non-ASCII string from the clipboard Date: Fri, 24 Apr 2015 13:09:29 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <83tww715y7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-2022-JP X-Trace: ger.gmane.org 1429848626 21494 80.91.229.3 (24 Apr 2015 04:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2015 04:10:26 +0000 (UTC) Cc: 20410@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 24 06:10:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YlUwO-00017f-Ks for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 06:10:12 +0200 Original-Received: from localhost ([::1]:42772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlUwM-00028E-Oz for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 00:10:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlUwJ-00025t-A4 for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2015 00:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlUwG-0003Yt-1H for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2015 00:10:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlUwF-0003YS-Ua for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2015 00:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YlUwF-000861-Ff for bug-gnu-emacs@gnu.org; Fri, 24 Apr 2015 00:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Apr 2015 04:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20410 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20410-submit@debbugs.gnu.org id=B20410.142984857731081 (code B ref 20410); Fri, 24 Apr 2015 04:10:03 +0000 Original-Received: (at 20410) by debbugs.gnu.org; 24 Apr 2015 04:09:37 +0000 Original-Received: from localhost ([127.0.0.1]:38176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlUvp-00085E-3c for submit@debbugs.gnu.org; Fri, 24 Apr 2015 00:09:37 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:61858) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlUvl-000853-Hr for 20410@debbugs.gnu.org; Fri, 24 Apr 2015 00:09:35 -0400 Original-Received: from fermat1.math.s.chiba-u.ac.jp (fermat [192.168.32.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 0C69DC0561; Fri, 24 Apr 2015 13:09:30 +0900 (JST) In-Reply-To: <83tww715y7.fsf@gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101965 Archived-At: >>>>> On Thu, 23 Apr 2015 13:42:40 +0300, Eli Zaretskii said: >> Date: Thu, 23 Apr 2015 18:59:45 +0900 >> From: YAMAMOTO Mitsuharu >> >> 1. Copy some non-ASCII string (say, "あ") to the clipboard. >> 2. $ emacs -Q -D & >> 3. C-x C-b >> 4. C-y >> 5. C-p >> >> Expected Result: >> >> The cursor moves upward by Step 5. >> >> Actual Result: >> >> The display is not changed between Step 4 and 5. > What does "C-x =" report before and after step 5? It says Char: C-j (10, #o12, #xa) point=191 of 192 (99%) column=0 So, the cursor is actually moved internally, but display is not updated accordingly. > Anyway, this seems to be X-specific: I cannot reproduce it on > MS-Windows. It turned out Step 3 above was not necessary. I also tried git bisect, and it shows: bd0443bb8799b908cefd0b11c86db6115180850d is the first bad commit commit bd0443bb8799b908cefd0b11c86db6115180850d Author: Dmitry Antipov Date: Fri Sep 6 11:00:29 2013 +0400 Attempt to make redisplay more selective when changing fonts. * frame.h (struct frame): New bitfield fonts_changed. * dispextern.h (fonts_changed_p, adjust_glyphs): Remove declaration. (adjust_frame_glyphs): Add prototype. * dispnew.c (fonts_changed_p): Remove. (adjust_glyphs): Remove becase we do not adjust matrices on all frames at once any more. (adjust_frame_glyphs): Block and unblock input here. (adjust_glyph_matrix): Use fonts_changed. (change_frame_size_1): Use adjust_frame_glyphs. * font.c (font_open_entity): Use fonts_changed. * frame.c (set_menu_bar_lines, Fmake_terminal_frame): * w32fns.c (x_set_menu_bar_lines, x_set_tool_bar_lines, Fx_show_tip): * window.c (Fdelete_other_windows_internal, Fwindow_resize_apply) (Fsplit_window_internal, Fdelete_window_internal, grow_mini_window) (shrink_mini_window, Fresize_mini_window_internal) (window_scroll_pixel_based, Fset_window_configuration) (apply_window_adjustment, Fset_window_vscroll): * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines, Fx_show_tip): Use adjust_frame_glyphs. * xdisp.c (redisplay_tool_bar, redisplay_window, try_window) (try_window_reusing_current_matrix, try_window_id, display_line) (IT_EXPAND_MATRIX_WIDTH): Use fonts_changed. (redisplay_internal): Consider fonts_changed and adjust frame matrices for each frame only if the frame is visible. If font has been changed on some frame during full redisplay, retry only visible frames where the font has been actually changed. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp