From: Herbert Euler <herberteuler@hotmail.com>
To: <emacs-devel@gnu.org>
Subject: wrong-type-argument in gud-tooltip-mode
Date: Sat, 26 Jan 2008 18:39:52 +0800 [thread overview]
Message-ID: <BAY143-W366F1276DD7DCF2F836BD3DA3A0@phx.gbl> (raw)
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/
next reply other threads:[~2008-01-26 10:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-26 10:39 Herbert Euler [this message]
2008-01-26 10:45 ` wrong-type-argument in gud-tooltip-mode 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY143-W366F1276DD7DCF2F836BD3DA3A0@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.