[ESS] add TODOs into source code?

Dan Davison davison at stats.ox.ac.uk
Wed Jul 9 15:45:47 CEST 2008


On Wed, Jul 09, 2008 at 09:27:50AM -0400, gerald.jean at dgag.ca wrote:
> Hello there,
> 
> I'm a long time user of Emacs and ESS and this is new to me!  I tried to
> "grep" on a large Splus code file and miraculuously I got all the instances
> of the grep expression returned in the shell buffer.  I couldn't figure out
> though how to jump to the selected piece of code in the source file, as
> David suggest we can do?  How do you do that?  I'am on Linux as well and I

That happens when you use 

M-x occur <pattern> 

within emacs, not when you run grep from a shell.

> ran grep in an Emacs shell.
> 
> Thanks to all for these questions and answers that allow us, some of us at
> least, to become better Emacs users.
> 
> G?rald Jean
> Conseiller senior en statistiques, VP Planification et D?veloppement des March?s
> t?lephone            : (418) 835-4900 poste (7639)
> t?lecopieur          : (418) 835-6657
> courrier ?lectronique: gerald.jean at dgag.ca
> 
> "In God we trust, all others must bring data"  W. Edwards Deming
> 
> On Wed, Jul 9, 2008 at 12:09 PM, David Whiting <david.whiting at ncl.ac.uk>
> wrote:
> > On Wed, Jul 09, 2008 at 11:07:39AM +0100, David Whiting wrote:
> >>
> >> In emacs I use
> >>
> >>  M-x occur RET TODO RET
> >>
> >> This gives you a buffer with all the TODOs. If you add a very short
> >> one-line description after the word TODO you see that as well, e.g.:
> >>
> >> 2 lines matching "TODO" in buffer incidence.Rnw.
> >>     340:## TODO: Optimise this wobbly code
> >>     423:## TODO: Using dodgey faked value. Need to replace with real one
> >>
> >
> > I forgot to mention that you can then select one of these and it will
> > jump to that line in your code.
> 
> Thanks a lot - I love emacs :-)
> 
> needing a special tool to do TODO lists - time and effort
> thinking the emacs way  - priceless
> 
> Rainer
> 
> >
> >
> > David
> >
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help




More information about the ESS-help mailing list