Subject: mailing-list for TeXmacs Users
List archive
From : "Kamaraju Kusumanchi" <address@hidden>- Cc: address@hidden
- Subject: Re: [TeXmacs] store the backup files in a separate directory
- Date: Sun, 12 Mar 2006 16:09:03 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=U14GfJpXXcN1uh0avq02GlcbUuc1l3f0oPqyUrVEyrrV/NonJlXqEyHBxpBwm+Pzb2gTYQrzLMzsphM6fp9Bfiu9oBXI9D1wM/nozt8cIVs2/oStxRz3RQ3zBBSaEXwsn3+WUGib2XOeZ15h3oz2m53dqp3946KGx1B3bmE+wfE=
On 3/12/06, David MENTRE <address@hidden> wrote:
> Hello Henri,
>
> Henri Lesourd <address@hidden> writes:
>
> > , and when the tab completion mechanism tells you that there are
> > other choices, you don't know if it is because :
> >
> > (1) there are two files foo and foo~ ;
> >
> > (2) there are several files starting with the prefix foo, for
> > example "foo", "foo2" "foo3"... ;
> >
> > It would be better to be able to rule out the case (1) all
> > the time.
>
> You can configure the completion mechanism to avoid considering the ~
> files. I'm sure that can be done under zsh, and also under bash (see
> "Programmable Completion" in Bash manual).
>
> For bash, add to your .bashrc "complete -f -X '*~' texmacs". With this
> command, ~ files are not considered for completing commands starting
> with texmacs.
Let's say I have file.tm and file.tm~ in the same directory. When I
want to send this to a 'texmacs unaware' person, I export the .tm to
.pdf and send the pdf file. Usually I store the pdf file with the same
file name (ie file.pdf in this case).
But, when using bash_completion with texmacs, I like to complete just
the .tm files. After lurking around in bash_completion script for a
while, I discovered that the following does what I need.
complete -f -X '!*.tm' texmacs
hth
raju
--
http://kamaraju.googlepages.com/cornell-bazaar
http://groups.google.com/group/cornell-bazaar/about
- Re: [TeXmacs] store the backup files in a separate directory, (continued)
- Re: [TeXmacs] store the backup files in a separate directory, Henri Lesourd, 03/10/2006
- Re: [TeXmacs] store the backup files in a separate directory, Andrey G. Grozin, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, Henri Lesourd, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, David MENTRE, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, Henri Lesourd, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, Kamaraju Kusumanchi, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, Kris Kuhlman, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, Andrey G. Grozin, 03/12/2006
- Re: [TeXmacs] store the backup files in a separate directory, Henri Lesourd, 03/12/2006
- Re: [TeXmacs] store the backup files in a separate directory, David MENTRE, 03/12/2006
- Re: [TeXmacs] store the backup files in a separate directory, Kamaraju Kusumanchi, 03/12/2006
- Re: [TeXmacs] store the backup files in a separate directory, David MENTRE, 03/12/2006
- Re: [TeXmacs] store the backup files in a separate directory, Henri Lesourd, 03/12/2006
- Re: [TeXmacs] store the backup files in a separate directory, David MENTRE, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, Henri Lesourd, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, Andrey G. Grozin, 03/11/2006
- Re: [TeXmacs] store the backup files in a separate directory, Henri Lesourd, 03/10/2006
Archive powered by MHonArc 2.6.19.