From xemacs-m  Sat Mar 22 13:16:12 1997
Received: from mailbox2.ucsd.edu (mailbox2.ucsd.edu [132.239.1.54])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id NAA29706
	for <xemacs-beta@xemacs.org>; Sat, 22 Mar 1997 13:16:11 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by mailbox2.ucsd.edu (8.8.5/8.6.9) with SMTP id LAA18751 for <xemacs-beta@xemacs.org>; Sat, 22 Mar 1997 11:16:13 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id LAA02906; Sat, 22 Mar 1997 11:18:07 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: xemacs-beta@xemacs.org
Subject: Re: bugs with efs-dired.
References: <m37miz7rlt.fsf@jens.metrix.de> <y9lhgi3ztd3.fsf@modas.informatik.uni-tuebingen.de>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: David Moore <dmoore@ucsd.edu>
Date: 22 Mar 1997 11:18:07 -0800
In-Reply-To: sperber@informatik.uni-tuebingen.de's message of 22 Mar 1997 19:14:48 +0100
Message-ID: <rvlo7frb0w.fsf@sdnp5.ucsd.edu>
Lines: 40
X-Mailer: Gnus v5.4.33/XEmacs 19.15(beta103)

sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) writes:

> >>>>> "Jens" == Jens Lautenbacher <jens@metrix.de> writes:

> Jens> 2)      ----------   1 jens     jens            0 Feb 12 06:00 core
> Jens>         isn't highlighted at all.
> 
> I don't see this.
> 
> Jens> 3)      the same goes for something like  d--------- 
> 
> Neither do I see this.  The corresponding regexp:
> 
> (defvar dired-re-permissions "[-r][-w][-Ssx][-r][-w][-Ssx][-r][-w][-xstT]"
>   "Regexp matching the file permissions part of a dired line.")
> 
> also gives no clue why it shouldn't.  Could you debug this a wee bit
> more?

If I do `touch FOOBIE; chmod a-rwx FOOBIE' `M-x dired' on the directory
containing that file, I don't see it hilighted either.  This is in 19.15.


Ok, the problem seems to be:
    (if (and (re-search-forward dired-re-pre-permissions
				(save-excursion (end-of-line) (point))
				t)
	     (looking-at dired-re-permissions))

dired-re-pre-permissions is "^.? ?[0-9 	]*[-d]".  This means that
the re-search-forward can match `--' not just `-' which is what you
need.  Should that leading . be \. ?  A the minimum the following works:
"^[^-d]? ?[0-9	]*[-d]".


-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In a cloud bones of steel.

