Re: Clearcase view in macro

Tony Balinski <[email protected]>
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
Quoting YT Lim <ytlim23-/[email protected]>:

> Thanks Tony. That helps. It's a bit strange that the string returned is
> /view/cc_view_tag instead of cc_view_tag alone.
>
> /Y.T.

Oops, you're right: it cut off everything upto the last slash so:
  clearcaseviewtag = replace_in_string(getenv("CLEARCASE_ROOT"), \
                                       ".*/", "", "regex", "copy")
should do the job. Either way CLEARCASE_ROOT is the environment variable
used,

Tony

> ----- Original Message ----
> From: Tony Balinski <[email protected]>
> To: General NEdit discussion list <[email protected]>
> Sent: Sunday, 21 September, 2008 1:38:26 AM
> Subject: Re: Clearcase view in macro
>
> Quoting YT Lim <ytlim23-/[email protected]>:
>
> > Nedit currently displays active Clearcase view in the title bar and all
> > files opened in the same view go into new tabs of the editor. Is there a
> > way to retrieve the name of the Clearcase view in a macro?
> >
> > Regards,
> > /Y.T.
>
> Yes: clearcaseviewtag = getenv("CLEARCASE_ROOT")
>
> Tony
> --
> NEdit Discuss mailing list - [email protected]
> http://www.nedit.org/mailman/listinfo/discuss
>
>
>
>       Make the switch to the world&#39;s best email. Get Yahoo!7 Mail!
> http://au.yahoo.com/y7mail
> --
> NEdit Discuss mailing list - [email protected]
> http://www.nedit.org/mailman/listinfo/discuss
>


-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.