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

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

Re: Splash-screen, elisp files compression, gdb usage


From: Nick Roberts
Subject: Re: Splash-screen, elisp files compression, gdb usage
Date: Sat, 11 Aug 2007 16:03:38 +1200

 > Thanks for the information on the '--annotate' option.
 > I would like to notice that the Ctrl-D binding is behaving as RET on 
 > end-of-buffer. I do not know if this was expected or not but that can be 
 > rather annoying for those used to this binding to quit GDB.

Hmm, I did try to deal with this but it doesn't seem to do the right thing
now.  Does this patch improve things for you?

-- 
Nick                                           http://www.inet.net.nz/~nickrob


*** gdb-ui.el   26 Jul 2007 09:28:01 +1200      1.206.2.2
--- gdb-ui.el   11 Aug 2007 15:56:56 +1200      
*************** This filter may simply queue input for a
*** 1129,1138 ****
          (let ((item (concat string "\n")))
            (if gdb-enable-debug (push (cons 'send item) gdb-debug-log))
            (process-send-string proc item)))
!       (if (and (string-match "\\\\$" string)
!              (not comint-input-sender-no-newline)) ;;Try to catch C-d.
          (setq gdb-continuation (concat gdb-continuation string "\n"))
!       (let ((item (concat gdb-continuation string "\n")))
          (gdb-enqueue-input item)
          (setq gdb-continuation nil)))))
  
--- 1129,1138 ----
          (let ((item (concat string "\n")))
            (if gdb-enable-debug (push (cons 'send item) gdb-debug-log))
            (process-send-string proc item)))
!       (if (string-match "\\\\\\'" string)
          (setq gdb-continuation (concat gdb-continuation string "\n"))
!       (let ((item (concat gdb-continuation string
!                        (if (not comint-input-sender-no-newline) "\n"))))
          (gdb-enqueue-input item)
          (setq gdb-continuation nil)))))
  




reply via email to

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