unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29803: [PATCH] Fix output alignment in find-dired
@ 2017-12-21  9:08 Sebastian Reuße
  2017-12-21 18:08 ` Sebastian Reuße
  2017-12-22 15:24 ` Sebastian Reuße
  0 siblings, 2 replies; 7+ messages in thread
From: Sebastian Reuße @ 2017-12-21  9:08 UTC (permalink / raw)
  To: 29803; +Cc: Sebastian Reuße

* lisp/find-dired.el (find-dired-filter): Fix alignment of the file size
column when the user is using human file sizes as per ‘find-ls-option’.
---
 lisp/find-dired.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index 3b0613b280..4501da991b 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -295,7 +295,7 @@ specifies what to use in place of \"-ls\" as the final argument."
 		    (l-opt (and (consp find-ls-option)
 				(string-match "l" (cdr find-ls-option))))
 		    (ls-regexp (concat "^ +[^ \t\r\n]+\\( +[^ \t\r\n]+\\) +"
-				       "[^ \t\r\n]+ +[^ \t\r\n]+\\( +[0-9]+\\)")))
+				       "[^ \t\r\n]+ +[^ \t\r\n]+\\( +[0-9]+[kMGT]?\\)")))
 		(goto-char beg)
 		(insert string)
 		(goto-char beg)
-- 
2.15.1






^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-12-30 10:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-21  9:08 bug#29803: [PATCH] Fix output alignment in find-dired Sebastian Reuße
2017-12-21 18:08 ` Sebastian Reuße
2017-12-21 18:12   ` Sebastian Reuße
2017-12-22 14:46   ` Eli Zaretskii
2017-12-22 15:24     ` Sebastian Reuße
2017-12-22 15:24 ` Sebastian Reuße
2017-12-30 10:44   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).