From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62291: 30.0.50; PGTK copy + paste to other app problem Date: Wed, 22 Mar 2023 18:33:28 +0800 Message-ID: <878rfpyt1j.fsf@yahoo.com> References: <877cvbiuf9.fsf@trop.in> <87edpj1y4r.fsf@yahoo.com> <871qljisd9.fsf@trop.in> <875yav1twf.fsf@yahoo.com> <878rfqxyff.fsf@trop.in> <87o7omz99g.fsf@yahoo.com> <877cvaw09c.fsf@trop.in> <87h6udzkjb.fsf@yahoo.com> <874jqdwg62.fsf@trop.in> <87cz51z568.fsf@yahoo.com> <87v8itutwi.fsf@trop.in> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10630"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62291@debbugs.gnu.org To: Andrew Tropin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 22 11:34:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pevnT-0002V9-2t for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Mar 2023 11:34:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pevnE-0007rE-6O; Wed, 22 Mar 2023 06:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pevn8-0007qs-Iu for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 06:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pevn8-0008Jb-AO for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 06:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pevn8-0000LV-6h for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 06:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Mar 2023 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62291 X-GNU-PR-Package: emacs Original-Received: via spool by 62291-submit@debbugs.gnu.org id=B62291.16794812271306 (code B ref 62291); Wed, 22 Mar 2023 10:34:02 +0000 Original-Received: (at 62291) by debbugs.gnu.org; 22 Mar 2023 10:33:47 +0000 Original-Received: from localhost ([127.0.0.1]:33603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pevms-0000Kz-FL for submit@debbugs.gnu.org; Wed, 22 Mar 2023 06:33:46 -0400 Original-Received: from sonic302-21.consmr.mail.ne1.yahoo.com ([66.163.186.147]:39784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pevmq-0000Ki-RJ for 62291@debbugs.gnu.org; Wed, 22 Mar 2023 06:33:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1679481217; bh=XpbbW4o3LOoJHWrkstPF7vgRyrYSP8E9nYko1ot++OA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=ryB5dU+9zHgqAIMnv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JSE5a9yWLw1exy3PpoCRrHvQijYm1N7geZ0QQqXo0NZTugKtNvb X8mfK4tIUA7vafN96CqcpeUZxOgfkldc_r5FFsBeH2L4u9s6WwtOtZRmFRVU4dCs3vov3HruI_fp Nx0phh5W4LJa6tLz5L8uiXYp1QK4wLUgd3Zg8HG.Q6NyC0BxR.C1YpIhRpWlz_nCsHArIlbvw9EI 0RyK8BWHQWpmnKgS3NT3iNHouHy.ZwssSr9A.RVPRrLdc0LdrH3RFtncYdaA04dQA6Yy1xt2kMy0 xwcM3SdKYo4WsUKhpTgGH94sC4VPeC3Ez55J8_jWfej1zBR8dRHEPRrS5TFl0jICoLCAKXvullXf X2b.gUwJKqcMhfuwAlXnt0dYGW6Dljk1_cJQrFmysSvlevxN5eDabXT6GLsVHTt6VULdYYHH2rCf ocEPmZKBpSFH7BO.iC3zLOaQWBNUo6u1.1ySz308bSuJQVO2EQOQuelLD7Chr2jZVl74SQpTnlDG 7WCx3thA6HlG53rKb0p1qnHus2Y05UM0O4pPVsra_T_c6C2gQSd.RSjwh4aKOaAhNzyAVTKWVMbd _0e74q0htdYzK8hnyvL5276hdV1xq93k4ukCERMCQ_ X-Sonic-MF: X-Sonic-ID: 7fe73e55-18cf-4957-a94a-a0e5fee6f628 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 Mar 2023 10:33:37 +0000 Original-Received: by hermes--production-sg3-67c57bccff-ddhjj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 20af7d3365ddb96baae0af08de0fc320; Wed, 22 Mar 2023 10:33:33 +0000 (UTC) In-Reply-To: <87v8itutwi.fsf@trop.in> (Andrew Tropin's message of "Wed, 22 Mar 2023 11:28:29 +0400") X-Mailer: WebService/1.1.21311 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258393 Archived-At: Andrew Tropin writes: > On 2023-03-22 14:11, Po Lu wrote: > >> Andrew Tropin writes: >> >>> On 2023-03-22 08:39, Po Lu wrote: >>> >>>> Andrew Tropin writes: >>>> >>>>> (gdb) frame 12 >>>>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=widget@entry=0xfee500, event=event@entry=0xfdb4a0) at gtkwidget.c:7808 >>>>> 7808 in gtkwidget.c >>>>> (gdb) p *event >>>>> $3 = {type = GDK_FOCUS_CHANGE, any = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000'}, expose = {type = GDK_FOCUS_CHANGE, window = 0xefc450, >>>>> send_event = 0 '\000', area = {x = 0, y = 0, width = 0, height = 0}, region = 0x0, count = 0}, visibility = {type = GDK_FOCUS_CHANGE, window = 0xefc450, >>>>> send_event = 0 '\000', state = GDK_VISIBILITY_UNOBSCURED}, motion = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, axes = 0x0, >>>>> state = 0, is_hint = 0, device = 0x0, x_root = 0, y_root = 0}, button = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, y = 0, >>>>> axes = 0x0, state = 0, button = 0, device = 0x0, x_root = 0, y_root = 0}, touch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, x = 0, >>>>> y = 0, axes = 0x0, state = 0, sequence = 0x0, emulating_pointer = 0, device = 0x0, x_root = 0, y_root = 0}, scroll = {type = GDK_FOCUS_CHANGE, window = 0xefc450, >>>>> send_event = 0 '\000', time = 0, x = 0, y = 0, state = 0, direction = GDK_SCROLL_UP, device = 0x0, x_root = 0, y_root = 0, delta_x = 0, delta_y = 0, is_stop = 0}, key = { >>>>> type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, state = 0, keyval = 0, length = 0, string = 0x0, hardware_keycode = 0, group = 0 '\000', >>>>> is_modifier = 0}, crossing = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', subwindow = 0x0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, >>>>> mode = GDK_CROSSING_NORMAL, detail = GDK_NOTIFY_ANCESTOR, focus = 0, state = 0}, focus_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', in = 1}, >>>>> configure = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', x = 0, y = 0, width = 0, height = 0}, property = {type = GDK_FOCUS_CHANGE, window = 0xefc450, >>>>> send_event = 0 '\000', atom = 0x0, time = 0, state = 0}, selection = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', selection = 0x0, target = 0x0, >>>>> property = 0x0, time = 0, requestor = 0x0}, owner_change = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', owner = 0x0, >>>>> reason = GDK_OWNER_CHANGE_NEW_OWNER, selection = 0x0, time = 0, selection_time = 0}, proximity = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', >>>>> time = 0, device = 0x0}, dnd = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', context = 0x0, time = 0, x_root = 0, y_root = 0}, window_state = { >>>>> type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', changed_mask = 0, new_window_state = 0}, setting = {type = GDK_FOCUS_CHANGE, window = 0xefc450, >>>>> send_event = 0 '\000', action = GDK_SETTING_ACTION_NEW, name = 0x0}, grab_broken = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', keyboard = 0, >>>>> implicit = 0, grab_window = 0x0}, touchpad_swipe = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', n_fingers = 1 '\001', time = 0, >>>>> x = 0, y = 0, dx = 0, dy = 0, x_root = 0, y_root = 0, state = 0}, touchpad_pinch = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', phase = 0 '\000', >>>>> n_fingers = 1 '\001', time = 0, x = 0, y = 0, dx = 0, dy = 0, angle_delta = 0, scale = 0, x_root = 0, y_root = 0, state = 0}, pad_button = {type = GDK_FOCUS_CHANGE, >>>>> window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, button = 0, mode = 0}, pad_axis = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', >>>>> time = 0, group = 0, index = 0, mode = 0, value = 0}, pad_group_mode = {type = GDK_FOCUS_CHANGE, window = 0xefc450, send_event = 0 '\000', time = 0, group = 0, mode = 0}} >>>>> >>>>> Thank you for your patience :) >>>> >>>> OK, thanks. This is quite odd. If you type: >>>> >>>> (gdb) p G_OBJECT_TYPE_NAME (widget) >>>> >>>> what do you see? >>> >>> (gdb) p G_OBJECT_TYPE_NAME (widget) >>> No symbol "G_OBJECT_TYPE_NAME" in current context. >> >> Hmm. Would you please try this instead? >> >> (gdb) p g_type_name (((GTypeInstance *) widget)->g_class->g_type) > > (gdb) p g_type_name (((GTypeInstance *) widget)->g_class->g_type) > 'g_type_name' has unknown return type; cast the call to its declared return type Ah, I guess you have to cast it to (char *): (gdb) p (char *) g_type_name ...