From: Juanma <juanma_bellon@yahoo.es>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Mode for files visited by GUD
Date: Fri, 18 Jul 2008 02:21:01 +0200 [thread overview]
Message-ID: <200807180221.01749.juanma_bellon@yahoo.es> (raw)
In-Reply-To: <200807180154.59785.juanma_bellon@yahoo.es>
> > gdb-find-file-hook is run when GUD visits a source code file. You could
> > advise that function
>
> Great, it worked.
No, wait. Now find-file-hook contains gdb-find-file-hook, so Emacs is
running my gdb-specific minor mode for every file "found" into Emacs.
This is what I did:
----------------------------------------
(defun activate-my-guding-mode ()
(source-guding-mode 1)
(message "*GUDing* mode activated"))
(defadvice gdb-find-file-hook (after activate-guding activate)
(activate-my-guding-mode))
----------------------------------------
Did I do something wrong?
--
Juanma
"Having a smoking section in a restaurant is like
having a peeing section in a swimming pool."
-- Edward Burr
next prev parent reply other threads:[~2008-07-18 0:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 23:35 Mode for files visited by GUD Juanma
2008-07-17 0:13 ` Nick Roberts
2008-07-17 23:54 ` Juanma
2008-07-18 0:21 ` Juanma [this message]
2008-07-18 0:30 ` Nick Roberts
2008-07-18 1:08 ` Juanma
2008-07-18 1:32 ` Nick Roberts
2008-07-19 1:40 ` Juanma
2008-07-19 2:20 ` Nick Roberts
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200807180221.01749.juanma_bellon@yahoo.es \
--to=juanma_bellon@yahoo.es \
--cc=help-gnu-emacs@gnu.org \
--cc=nickrob@snap.net.nz \
/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.
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).