This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to command hook [Revision 2]


> Date: Fri, 18 Aug 2000 16:27:20 +1000
> From: Steven Johnson <sbjohnson@ozemail.com.au>
>
> ! \input texinfo      @c -*-texinfo-*-
>   @c Copyright 1988-2000
>   @c Free Software Foundation, Inc.
> --- 1,3 ----
> ! echo\input texinfo      @c -*-texinfo-*-

You didn't really mean this change, did you? ;-)

> ! @kindex hook
> ! @kindex hook-
> ! You may define @dfn{hooks}, which are a special kind of user-defined
>   command.  Whenever you run the command @samp{foo}, if the user-defined
>   command @samp{hook-foo} exists, it is executed (with no arguments)
>   before that command.
>   
> + @cindex hooks, post-command
> + @kindex hookpost
> + @kindex hookpost-
> + A @dfn{hook} may also be defined which is run after the command you 
> + executed.  Whenever you run the command @samp{foo}, if the user-defined 
> + command @samp{hookpost-foo} exists, it is executed (with no arguments) 
> + after that command.  Post execution hooks may exist simultaneously with 
> + Pre execution hooks, on the same command. 
> + 
> + It is valid for a @dfn{hook} to call the command it is hooked to.  If 
> + this occurs, the hook is not re-executed, thereby avoiding infinte 
> + recursion.

A @dfn should only be used once for each term, where it is first
encountered.  The other places should have the word with no markup at
all.

(If you are going to commit the changes to gdb.texinfo, please change
that; otherwise, I will change it myself when I commit them.)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]