all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 20410@debbugs.gnu.org
Subject: bug#20410: 24.5.50; cursor not updated after yank of non-ASCII string from the clipboard
Date: Sat, 25 Apr 2015 18:49:56 +0900	[thread overview]
Message-ID: <wlegn8o7uj.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <838udiypuz.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2095 bytes --]

>>>>> On Fri, 24 Apr 2015 09:58:28 +0300, Eli Zaretskii <eliz@gnu.org> said:

>> > 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.

> You show only one result of "C-x =", so it's hard to interpret it,
> especially since you didn't show what was displayed after the paste.

I thought it was clear from the screenshot attached in the first mail.
The point value in the output of "C-x =" indicates that the cursor is
between the initial message of the *scratch* buffer and the yanked
text.

(length ";; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
")
=> 190

> Does the cursor move to the correct place if you type C-l or invoke
> redraw-display, after performing the recipe?

The cursor appears.  But the cursor at the old position is not
cleared.  See the attached screenshot.

> In any case, cursor motion and display are unrelated to pasting from
> the clipboard, so I wonder whether you could reproduce this without
> the paste, just by typing that character.  I also wonder what does all
> this have to do with expose events, as mentioned in your original
> report.  Anything that I could reproduce here and debug it would be
> helpful.

I could reproduce it without yank.

1. Create a file named a.el with the following contents:

  (global-set-key "a" (string #x3042))	; HIRAGANA LETTER A

2. $ emacs -Q -D -l a.el &
3. Type "a" to insert a Japanese character.
4. Type "C-p" to move the cursor upward.

Display is updated correctly until Step 3.  But Step 4 does not change
the display from the previous one.

As for expose events, I suspect the current matrices get corrupted,
because the result of git bisect implies that it has something to do
with adjustment of glyph matrices triggered by font loading.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

[-- Attachment #2: after-C-l.png --]
[-- Type: image/png, Size: 13739 bytes --]

  reply	other threads:[~2015-04-25  9:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-23  9:59 bug#20410: 24.5.50; cursor not updated after yank of non-ASCII string from the clipboard YAMAMOTO Mitsuharu
2015-04-23 10:42 ` Eli Zaretskii
2015-04-24  4:09   ` YAMAMOTO Mitsuharu
2015-04-24  6:58     ` Eli Zaretskii
2015-04-25  9:49       ` YAMAMOTO Mitsuharu [this message]
2015-04-25 10:09         ` Eli Zaretskii
2015-04-25 12:32           ` Eli Zaretskii
2015-04-26 10:02             ` YAMAMOTO Mitsuharu
2015-04-26 15:04               ` Eli Zaretskii
2015-04-27  3:28                 ` YAMAMOTO Mitsuharu
2015-04-27 15:17                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wlegn8o7uj.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=20410@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.