all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Columns don't align in buffer-list
@ 2006-08-05  0:59 mlathe
  2006-08-12  1:48 ` mlathe
  0 siblings, 1 reply; 4+ messages in thread
From: mlathe @ 2006-08-05  0:59 UTC (permalink / raw)



is there an easy way to adjust the width of the columns in the buffer-list?
Currently long buffer names screw up how the columns line up. For example
(should be viewed with monospaced font):

 MR Buffer           Size  Mode         File
 -- ------           ----  ----         ----
  % *dired*           254  Dired by name ~/
 *  *Shelper*       67566  Shell        ~/foo
    svc_abcdef_foobar.h  35131 C        ~/foo/svc_abcdef_foobar.h
    svc_abcdef_foobar2.h  15548 C       ~/foo/svc_abcdef_foobar2.h

I imagine that i could change these things by mucking around in the "Buffer
Menu" mode's code, but i'd prefer not to.
thanks
matthias
-- 
View this message in context: http://www.nabble.com/Columns-don%27t-align-in-buffer-list-tf2054288.html#a5660111
Sent from the Emacs - Help forum at Nabble.com.

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

* Re: Columns don't align in buffer-list
  2006-08-05  0:59 Columns don't align in buffer-list mlathe
@ 2006-08-12  1:48 ` mlathe
  2006-08-12  4:12   ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: mlathe @ 2006-08-12  1:48 UTC (permalink / raw)



Any answer? or is this not easily done?


mlathe wrote:
> 
> is there an easy way to adjust the width of the columns in the
> buffer-list? Currently long buffer names screw up how the columns line up.
> --snip--
> 

-- 
View this message in context: http://www.nabble.com/Columns-don%27t-align-in-buffer-list-tf2054288.html#a5771938
Sent from the Emacs - Help forum at Nabble.com.

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

* RE: Columns don't align in buffer-list
  2006-08-12  1:48 ` mlathe
@ 2006-08-12  4:12   ` Drew Adams
  2006-08-12 15:21     ` mlathe
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2006-08-12  4:12 UTC (permalink / raw)


    > is there an easy way to adjust the width of the columns in the
    > buffer-list? Currently long buffer names screw up how the
    > columns line up.

    Any answer? or is this not easily done?

I don't know the answer to your question, but I think it is "not easily
done". I suspect that you are using a version of Emacs that produces a
buffer list such as this (this one is Emacs 20):

.   A Long Buffer Name With Lots Of Words  0 Fundamental
    icicles-cmd.el  228546 Emacs-Lisp	c:/somedir/icicles-cmd.el
    files.el	   134157  Emacs-Lisp	c:/Emacs-20.7/lisp/files.el
 %  *Help*                 993  Help
    *scratch*	        0  Lisp Interaction
 *  *Messages*	      246  Fundamental
 *% *Buffer List*     359  Buffer Menu

This problem has been addressed in Emacs 22 (CVS Emacs). Here is what I see
in Emacs 22. To counter mailer wrapping, I've truncated the File entries
here (using ...).

.   A Long Buffer Name Wi:   0  Fundamental
    icicles-cmd.el      228546  Emacs-Lisp	  c:/dre...
    files.el            209193  Emacs-Lisp	  c:/Ema...
 %  *Help*                 993  Help
    *scratch*                0  Lisp Interaction
  * *Messages*             399  Fundamental

The long buffer name is truncated, so it doesn't affect the alignment of the
Size column. The name is allowed to intrude into the Size column, but only
because the size in this case is small. Inserting some text into the buffer
leads to this - the buffer name is truncated more, to accommodate the larger
size (291757).

. * A Long Buffer Name: 291757  Fundamental
    icicles-cmd.el      228546  Emacs-Lisp	  c:/dre...
    files.el            209193  Emacs-Lisp	  c:/Ema...
 %  *Help*                 993  Help
    *scratch*                0  Lisp Interaction
  * *Messages*             418  Fundamental

I think this is a pretty good feature, since it provides the maximum length
for the buffer name, given fixed available column lengths.

However, I agree that it might be useful to easily be able to change the
column widths - e.g. drag them to widen or shorten them, and perhaps have
Emacs save the resulting setting. AFAIK, there is no easy way to change the
column widths. I'll bet that Emacs developers would welcome such a
direct-manipulation feature (patch), however ;-).

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

* RE: Columns don't align in buffer-list
  2006-08-12  4:12   ` Drew Adams
@ 2006-08-12 15:21     ` mlathe
  0 siblings, 0 replies; 4+ messages in thread
From: mlathe @ 2006-08-12 15:21 UTC (permalink / raw)




Drew Adams wrote:
> 
> I don't know the answer to your question, but I think it is "not easily
> done". I suspect that you are using a version of Emacs that produces a
> buffer list such as this (this one is Emacs 20):
> 

Yep you're right. Thanks for the help. Truncating names is kind of annoying
even though 21(approx) chars is a pretty long buffer name. Maybe i'll look
into the modifying the mode's code.
thanks again. 

-- 
View this message in context: http://www.nabble.com/Columns-don%27t-align-in-buffer-list-tf2054288.html#a5776524
Sent from the Emacs - Help forum at Nabble.com.

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

end of thread, other threads:[~2006-08-12 15:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-05  0:59 Columns don't align in buffer-list mlathe
2006-08-12  1:48 ` mlathe
2006-08-12  4:12   ` Drew Adams
2006-08-12 15:21     ` mlathe

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.