emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: x-dnd (drag and drop) fails on x86_64


From: Reiner Steib
Subject: Re: x-dnd (drag and drop) fails on x86_64
Date: Sat, 05 Feb 2005 18:45:34 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

On Sat, Feb 05 2005, Jan D. wrote:

> Thank you for the response.  This confirms that the fix I just commited
> is the correct one.  

Emacs no longer throws an error, but unfortunately it doesn't accept
the drag of text neither.  Here a new gdb output:

--8<---------------cut here---------------start------------->8---
Breakpoint 1 at 0x4e3dc0: file [...]/emacs/src/emacs.c, line 453.
Breakpoint 2 at 0x4bc4f0: file [...]/emacs/src/xterm.c, line 7788.
(gdb) b x_handle_dnd_message
Breakpoint 3 at 0x4ccfe0: file [...]/emacs/src/xselect.c, line 2633.
(gdb) r -Q
Starting program: [...]/emacs/cvs-HEAD/x86_64/src/emacs -Q
[Thread debugging using libthread_db enabled]
[New Thread 182940272320 (LWP 1900)]
[Switching to Thread 182940272320 (LWP 1900)]

Breakpoint 3, x_handle_dnd_message (f=0xcfa3d0, event=0x7fbfffae90, 
dpyinfo=0xde4670, bufp=0x7fbfffb210)
    at [...]/emacs/src/xselect.c:2633
2633    {
(gdb) p *event
$1 = {
  type = 33, 
  serial = 1588, 
  send_event = 1, 
  display = 0xdb26c0, 
  window = 52428820, 
  message_type = 274, 
  format = 32, 
  data = {
    b = 
"tI\300\003\000\000\000\000\001\000\000\003\000\000\000\000\000\000\000", 
    s = {18804, 960, 0, 0, 1, 768, 0, 0, 0, 0}, 
    l = {62933364, 50331649, 0, 0, 0}
  }
}
(gdb) p sizeof(event->data)
$2 = 40
(gdb) p sizeof(event->data.l[0])
$3 = 8
(gdb) 
--8<---------------cut here---------------end--------------->8---

But it does accept dragging URLs.  (The URL is inserted in the buffer.
Shouldn't it be passed to `browse-url-browser-function' i.e. to
`browse-url-default-browser' with -Q?)

--8<---------------cut here---------------start------------->8---
(gdb) p *event
$1 = {
  type = 33, 
  serial = 1594, 
  send_event = 1, 
  display = 0xdb26c0, 
  window = 52428820, 
  message_type = 274, 
  format = 32, 
  data = {
    b = 
"tI\300\003\000\000\000\000\001\000\000\003\000\000\000\000\000\000\000", 
    s = {18804, 960, 0, 0, 1, 768, 0, 0, 0, 0}, 
    l = {62933364, 50331649, 0, 0, 0}
  }
}
(gdb) p sizeof(event->data)
$2 = 40
(gdb) p sizeof(event->data.l[0])
$3 = 8
--8<---------------cut here---------------end--------------->8---

Please tell me if you need other data from gdb.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]