all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* patch for dired-format-columns-of-files
@ 2008-04-30 17:50 Toru TSUNEYOSHI
  2008-05-01 14:35 ` Toru TSUNEYOSHI
  0 siblings, 1 reply; 4+ messages in thread
From: Toru TSUNEYOSHI @ 2008-04-30 17:50 UTC (permalink / raw)
  To: bug-gnu-emacs

I found a bug when I do (dired-do-delete).
I will send the patch for correcting it.

--- lisp/dired.el.orig 2008-03-17 01:27:10.000000000 +0900
+++ lisp/dired.el 2008-05-01 02:33:21.297046400 +0900
@@ -2639,9 +2639,9 @@
 (defun dired-format-columns-of-files (files)
   ;; Files should be in forward order for this loop.
   ;; i.e., (car files) = first file in buffer.
   ;; Returns the number of lines used.
-  (let* ((maxlen (+ 2 (apply 'max (mapcar 'length files))))
+  (let* ((maxlen (+ 2 (apply 'max (mapcar 'string-width files))))
   (width (- (window-width (selected-window)) 2))
   (columns (max 1 (/ width maxlen)))
   (nfiles (length files))
   (rows (+ (/ nfiles columns)





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

end of thread, other threads:[~2008-05-03  2:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30 17:50 patch for dired-format-columns-of-files Toru TSUNEYOSHI
2008-05-01 14:35 ` Toru TSUNEYOSHI
2008-05-02 17:39   ` Stefan Monnier
2008-05-03  2:29     ` Toru TSUNEYOSHI

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.