unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* wrong-type-argument in gud-tooltip-mode
@ 2008-01-26 10:39 Herbert Euler
  2008-01-26 10:45 ` Herbert Euler
  0 siblings, 1 reply; 11+ messages in thread
From: Herbert Euler @ 2008-01-26 10:39 UTC (permalink / raw)
  To: emacs-devel


In emacs-unicode-2, toggling gud-tooltip-mode results in an error
(wrong-type-argument stringp nil) in `gdb-create-define-alist'.  This
function is invoked by `gud-tooltip-mode' on every buffer that
satisfies the conditions specified in its definition:

[definition of `gud-tooltip-mode']

            (dolist (buffer (buffer-list))
              (unless (eq buffer gud-comint-buffer)
                (with-current-buffer buffer
                  (when (and (memq gud-minor-mode '(gdbmi gdba))
                             (not (string-match "\\`\\*.+\\*\\'"
                                                (buffer-name))))
                    (make-local-variable 'gdb-define-alist)
                    (gdb-create-define-alist)
                    (add-hook 'after-save-hook
                              'gdb-create-define-alist nil t))))))

Unfortunately, the regular expression here is not complete.  Buffers
whose name start with a space character do not visit files, but they
satisfy the above conditions too.  Hence `gdb-create-define-alist' is
invoked on these buffers too, which causes the error, when
`gdb-create-define-alist' checks the existence of the file that
current buffer visits.

I did not try the HEAD version, but since the definition of
`gud-tooltip-mode' is the same as that in the emacs-unicode-2 branch,
I guess this bug exists in HEAD too.

Regards,
Guanpeng Xu
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

end of thread, other threads:[~2008-01-28  1:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-26 10:39 wrong-type-argument in gud-tooltip-mode Herbert Euler
2008-01-26 10:45 ` Herbert Euler
2008-01-27  0:04   ` Nick Roberts
2008-01-27  5:22     ` Herbert Euler
2008-01-27  6:43       ` Nick Roberts
2008-01-27  9:10         ` Herbert Euler
2008-01-27 10:30           ` Nick Roberts
2008-01-27 11:14             ` Herbert Euler
2008-01-27 11:26               ` Herbert Euler
2008-01-27 21:04                 ` Nick Roberts
2008-01-28  1:34                   ` Herbert Euler

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).