unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* gdb-mi command complete broken
@ 2011-07-04  6:14 Wang Diancheng
  2011-07-04 17:51 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Diancheng @ 2011-07-04  6:14 UTC (permalink / raw)
  To: emacs-devel

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

Hi,
current gdb-mi command complete broken, this is patch:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff, Size: 628 bytes --]

diff -c -L /usr/share/emacs/24.0.50/lisp/progmodes/gdb-mi.el.gz -L \#\<buffer\ gdb-mi.el.gz\> /tmp/jka-com28609cP /tmp/buffer-content-2860Xxb
--- /usr/share/emacs/24.0.50/lisp/progmodes/gdb-mi.el.gz
+++ #<buffer gdb-mi.el.gz>
@@ -786,7 +786,10 @@
   (define-key gud-minor-mode-map [left-margin C-mouse-3]
     'gdb-mouse-jump)
 
-  (local-set-key "\C-i" 'gud-gdb-complete-command)
+  (add-hook 'completion-at-point-functions #'gud-gdb-completion-at-point
+            nil 'local)
+  (local-set-key "\C-i" 'completion-at-point)
+
   (setq gdb-first-prompt t)
   (setq gud-running nil)
 

Diff finished.  Mon Jul  4 11:34:22 2011

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gdb-mi command complete broken
  2011-07-04  6:14 gdb-mi command complete broken Wang Diancheng
@ 2011-07-04 17:51 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2011-07-04 17:51 UTC (permalink / raw)
  To: Wang Diancheng; +Cc: emacs-devel

> current gdb-mi command complete broken, this is patch:

Thank you, I installed your patch in the trunk.


        Stefan


> diff -c -L /usr/share/emacs/24.0.50/lisp/progmodes/gdb-mi.el.gz -L \#\<buffer\ gdb-mi.el.gz\> /tmp/jka-com28609cP /tmp/buffer-content-2860Xxb
> --- /usr/share/emacs/24.0.50/lisp/progmodes/gdb-mi.el.gz
> +++ #<buffer gdb-mi.el.gz>
> @@ -786,7 +786,10 @@
>    (define-key gud-minor-mode-map [left-margin C-mouse-3]
>      'gdb-mouse-jump)
 
> -  (local-set-key "\C-i" 'gud-gdb-complete-command)
> +  (add-hook 'completion-at-point-functions #'gud-gdb-completion-at-point
> +            nil 'local)
> +  (local-set-key "\C-i" 'completion-at-point)
> +
>    (setq gdb-first-prompt t)
>    (setq gud-running nil)
 

> Diff finished.  Mon Jul  4 11:34:22 2011




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-04 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-04  6:14 gdb-mi command complete broken Wang Diancheng
2011-07-04 17:51 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).