From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?q?Eduardo_Mu=F1oz?= Newsgroups: gmane.emacs.devel Subject: Dired & small files on FreeBSD Date: 19 Jul 2005 22:56:12 +0200 Message-ID: <87d5pewm4z.fsf@triple.boundp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1121808449 21790 80.91.229.2 (19 Jul 2005 21:27:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2005 21:27:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 19 23:27:27 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Duzbq-0002ZZ-5R for ged-emacs-devel@m.gmane.org; Tue, 19 Jul 2005 23:26:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Duzbu-0003vg-V3 for ged-emacs-devel@m.gmane.org; Tue, 19 Jul 2005 17:26:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Duzbb-0003mD-Pz for emacs-devel@gnu.org; Tue, 19 Jul 2005 17:26:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DuzbO-0003jR-Nx for emacs-devel@gnu.org; Tue, 19 Jul 2005 17:26:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuzbO-0003ga-70 for emacs-devel@gnu.org; Tue, 19 Jul 2005 17:26:10 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DuzbU-0008I8-7z for emacs-devel@gnu.org; Tue, 19 Jul 2005 17:26:16 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DuzS8-0001Iu-7B for emacs-devel@gnu.org; Tue, 19 Jul 2005 23:16:36 +0200 Original-Received: from 125.red-213-97-131.pooles.rima-tde.net ([213.97.131.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jul 2005 23:16:36 +0200 Original-Received: from emufer by 125.red-213-97-131.pooles.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jul 2005 23:16:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 33 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 125.red-213-97-131.pooles.rima-tde.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41082 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41082 Using dired-listing-switches with a value like "-lh" on FreeBSD results in an output like the following: -rw------- 1 emf emf 6.2K Jul 19 22:13 .bash_history -rw-r--r-- 1 emf emf 174B Nov 25 2001 .bash_logout -rw-r--r-- 1 emf emf 551B Jul 5 22:54 .bash_profile as you can see small files (under 1K) display sizes with a 'B' suffix. As a consecuence those files cant be selected by dired and instead an error ("No file on this line") is signaled. The following patch fixes this behaviour. $ diff -uF '^(def*' dired.el~ dired.el --- dired.el~ Tue Jul 19 22:41:41 2005 +++ dired.el Tue Jul 19 22:42:49 2005 @@ -1870,7 +1870,7 @@ (defvar dired-move-to-filename-regexp ;; The ".*" below finds the last match if there are multiple matches. ;; This avoids recognizing `jservice 10 1024' as a date in the line: ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host - (concat ".*[0-9][kKMGTPEZY]?" s + (concat ".*[0-9][BkKMGTPEZY]?" s "\\(" western "\\|" western-comma "\\|" japanese "\\|" iso "\\)" s "+")) "Regular expression to match up to the file name in a directory listing. -- Eduardo Muņoz | (prog () 10 (print "Hello world!") http://213.97.131.125/ | 20 (go 10))