all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tino Calancha <f92capac@gmail.com>
To: 22255@debbugs.gnu.org
Subject: bug#22255: 25.1.50; Dired: Handle dired-actual-switches: -lsh
Date: Tue, 28 Jun 2016 13:25:13 +0900 (JST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1606281319040.7476@calancha-pc> (raw)
In-Reply-To: <alpine.LRH.2.20.1512281820500.3495@calancha-ilc.kek.jp>


emacs -Q ~
C-u s sh RET
;; Directories are not recognized: wrong fontification.
>
;;dired-next-dirline: No more subdirectories

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

From 9c9a3477bb53f24a12c82c86eb1edf269c4b3fac Mon Sep 17 00:00:00 2001
From: Tino Calancha <tino.calancha@gmail.com>
Date: Tue, 28 Jun 2016 13:10:11 +0900
Subject: [PATCH] Handle human readable units in the file size

* lisp/dired.el (dired-re-inode-size): (Bug#22255).
---
  lisp/dired.el | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/dired.el b/lisp/dired.el
index 38979b5..d078478 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -303,7 +303,7 @@ dired-actual-switches

  (put 'dired-actual-switches 'safe-local-variable 'dired-safe-switches-p)

-(defvar dired-re-inode-size "[0-9 \t]*"
+(defvar dired-re-inode-size "[0-9  \t]*[.,0-9]*[BkKMGTPEZY]?[ \t]*"
    "Regexp for optional initial inode and file size as made by `ls -i 
-s'.")

  ;; These regexps must be tested at beginning-of-line, but are also
-- 
2.8.1


In GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.20.6)
Repository revision: cfb3c61f1ffec9a6322407fdd228d5cc31c31ed0






  reply	other threads:[~2016-06-28  4:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-28  9:26 bug#22255: 25.1.50; directories not recognized if dired-actual-switches has: -lsh Tino Calancha
2016-06-28  4:25 ` Tino Calancha [this message]
2016-06-28 16:12   ` bug#22255: 25.1.50; Dired: Handle dired-actual-switches: -lsh Eli Zaretskii
2016-06-29  2:56 ` bug#22255: (no subject) Tino Calancha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1606281319040.7476@calancha-pc \
    --to=f92capac@gmail.com \
    --cc=22255@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.