comparison lisp/progmodes/gdb-ui.el @ 106680:63c5fb6b67fc

Declare some functions for the byte-compiler.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 29 Dec 2009 18:44:27 +0100
parents 3a8fd7717b30
children ac408704629c
comparison
equal deleted inserted replaced
106679:95a78f48ba00 106680:63c5fb6b67fc
850 "server interpreter mi \"-var-create - * " expr "\"\n") 850 "server interpreter mi \"-var-create - * " expr "\"\n")
851 (concat"-var-create - * " expr "\n")) 851 (concat"-var-create - * " expr "\n"))
852 `(lambda () (gdb-var-create-handler ,expr))))))) 852 `(lambda () (gdb-var-create-handler ,expr)))))))
853 (message "gud-watch is a no-op in this mode.")))) 853 (message "gud-watch is a no-op in this mode."))))
854 854
855 (declare-function speedbar-change-initial-expansion-list "speedbar" (new-default))
856
855 (defun gdb-var-create-handler (expr) 857 (defun gdb-var-create-handler (expr)
856 (let* ((result (gdb-json-partial-output))) 858 (let* ((result (gdb-json-partial-output)))
857 (if (not (bindat-get-field result 'msg)) 859 (if (not (bindat-get-field result 'msg))
858 (let ((var 860 (let ((var
859 (list (bindat-get-field result 'name) 861 (list (bindat-get-field result 'name)
871 (speedbar 1) 873 (speedbar 1)
872 (unless (string-equal 874 (unless (string-equal
873 speedbar-initial-expansion-list-name "GUD") 875 speedbar-initial-expansion-list-name "GUD")
874 (speedbar-change-initial-expansion-list "GUD"))) 876 (speedbar-change-initial-expansion-list "GUD")))
875 (message-box "No symbol \"%s\" in current context." expr)))) 877 (message-box "No symbol \"%s\" in current context." expr))))
878
879 (declare-function speedbar-timer-fn "speedbar" ())
876 880
877 (defun gdb-speedbar-update () 881 (defun gdb-speedbar-update ()
878 (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame) 882 (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)
879 (not (member 'gdb-speedbar-timer gdb-pending-triggers))) 883 (not (member 'gdb-speedbar-timer gdb-pending-triggers)))
880 ;; Dummy command to update speedbar even when idle. 884 ;; Dummy command to update speedbar even when idle.
1055 (defcustom gdb-delete-out-of-scope t 1059 (defcustom gdb-delete-out-of-scope t
1056 "If non-nil delete watch expressions automatically when they go out of scope." 1060 "If non-nil delete watch expressions automatically when they go out of scope."
1057 :type 'boolean 1061 :type 'boolean
1058 :group 'gdb 1062 :group 'gdb
1059 :version "22.2") 1063 :version "22.2")
1064
1065 (declare-function speedbar-change-expand-button-char "speedbar" (char))
1066 (declare-function speedbar-delete-subblock "speedbar" (indent))
1067 (declare-function speedbar-center-buffer-smartly "speedbar" ())
1060 1068
1061 (defun gdb-speedbar-expand-node (text token indent) 1069 (defun gdb-speedbar-expand-node (text token indent)
1062 "Expand the node the user clicked on. 1070 "Expand the node the user clicked on.
1063 TEXT is the text of the button we clicked on, a + or - item. 1071 TEXT is the text of the button we clicked on, a + or - item.
1064 TOKEN is data related to this node. 1072 TOKEN is data related to this node.