unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Newbie: How to customize the headline-text with outline-mode
@ 2008-03-17 10:09 Srikanth K
  2008-03-19  1:00 ` Xavier Maillard
  0 siblings, 1 reply; 2+ messages in thread
From: Srikanth K @ 2008-03-17 10:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
   I am new to emacs and got fascinated with the outline-mode.  It is
really cool but I wanted to customize it a bit more.

    The text of file that view(generated as a result of running a test-
suite) generally has the following format
<snip>
Test Scenario:
Test Case1:
Data:....
Result: Pass|FAIL

Test Case2:
Data:...
Result PASS|FAIL

...
</snip>

I would like this to be shown in outline mode as follows
<snip>
Test Scenario:
Test Case1: Result:Pass|FAIL ...(Rest of data hidden)
Test Case2: Result:PASS|FAIL(rest of data hidden)
<snip>

The objective is that that I can quickly locate the test-case that
fails and expand it out.

I understand that I can customize the the definition of the header by
changing the contents of "outline-regexp", but could not figure out
how I can change the text that will be displayed after hiding the
leaves.

I did search this group and also on google for any tips but failed.

Any help would be highly appreciated.

thanks
Srikanth


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

* Re: Newbie: How to customize the headline-text with outline-mode
  2008-03-17 10:09 Newbie: How to customize the headline-text with outline-mode Srikanth K
@ 2008-03-19  1:00 ` Xavier Maillard
  0 siblings, 0 replies; 2+ messages in thread
From: Xavier Maillard @ 2008-03-19  1:00 UTC (permalink / raw)
  To: Srikanth K; +Cc: help-gnu-emacs


   The objective is that that I can quickly locate the test-case that
   fails and expand it out.

   I understand that I can customize the the definition of the header by
   changing the contents of "outline-regexp", but could not figure out
   how I can change the text that will be displayed after hiding the
   leaves.

   I did search this group and also on google for any tips but failed.

   Any help would be highly appreciated.

An alternative to the regular outline-mode is to use org-mode
which overloads it and just surpasses it by a factor of 1000.

I am doing something close to what you do except I coded a log
function that produces logs in a format understandable by org
directly.

I am then producing what is named a column view of this data
which just shows the information very fast.

My need is to display time passed to do different things (I have
a script which computes statistics of my databases for example.
As I am auditing time spent there, I need to know how long it
takes object by object).

What's more org is now part of official GNU Emacs distribution.

For more informations, just go to http://orgmode.org.

My recent posting[1] about that realization could be interesting
for you too.

[1] http://thread.gmane.org/gmane.emacs.orgmode/6005

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




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

end of thread, other threads:[~2008-03-19  1:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-17 10:09 Newbie: How to customize the headline-text with outline-mode Srikanth K
2008-03-19  1:00 ` Xavier Maillard

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