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

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

Re: Error during ask-user-about-lock


From: Richard Stallman
Subject: Re: Error during ask-user-about-lock
Date: Wed, 09 Aug 2006 21:13:33 -0400

    It took a while to get a gcc build built.  I put a breakpoint on:

      if (ascii_required && !(NUMBERP (seconds) && NILP (val)))
        {
          /* Convert certain symbols to their ASCII equivalents.  */
    -->   if (SYMBOLP (val))
            {

With the breakpoint there, it stops for all events.
If you put the breakpoint one line down, it will stop only for symbols.

    This time I get a drag-n-drop event.  Is there anything else you need?

That makes it clear what caused the error.  Thanks.

The question is, what SHOULD Emacs do when a drag-and-drop event arrives
while it is asking the user a question?

One possibility is, what it does now.

Another possibility is, handle the drag-and-drop event "on the side"
and continue asking.  That could be implemented by binding it on
special-event-map, as shown below.

Do you like the results of this change?  Does anyone think it is a mistake?


*** x-win.el    08 Jul 2006 22:05:18 -0400      1.190
--- x-win.el    09 Aug 2006 17:44:29 -0400      
***************
*** 2518,2524 ****
  
  ;; Initiate drag and drop
  (add-hook 'after-make-frame-functions 'x-dnd-init-frame)
! (global-set-key [drag-n-drop] 'x-dnd-handle-drag-n-drop-event)
  
  ;; Let F10 do menu bar navigation.
  (and (fboundp 'menu-bar-open)
--- 2518,2524 ----
  
  ;; Initiate drag and drop
  (add-hook 'after-make-frame-functions 'x-dnd-init-frame)
! (define-key special-event-map [drag-n-drop] 'x-dnd-handle-drag-n-drop-event)
  
  ;; Let F10 do menu bar navigation.
  (and (fboundp 'menu-bar-open)




reply via email to

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