all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs - Buffer List - Drop-Down-Menu
@ 2007-12-06 15:00 Will
  2007-12-06 16:37 ` Peter Dyballa
  0 siblings, 1 reply; 8+ messages in thread
From: Will @ 2007-12-06 15:00 UTC (permalink / raw)
  To: help-gnu-emacs

Dear all,

if I press C-Mouse-1 the buffer list appears as a drop-down menu at the 
mouse-pointer. However, the justification seems to be messed up and I 
have problems orienting to find the buffer /folder names.

How can I change the justification of the buffer list so ist flushed 
left (like in Emacs menu -> Buffers)? How can I influence the sorting of 
buffer names in that list?

Thanks in advance,

Will

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

* Re: Emacs - Buffer List - Drop-Down-Menu
  2007-12-06 15:00 Emacs - Buffer List - Drop-Down-Menu Will
@ 2007-12-06 16:37 ` Peter Dyballa
  2007-12-06 17:08   ` Drew Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Dyballa @ 2007-12-06 16:37 UTC (permalink / raw)
  To: Will; +Cc: help-gnu-emacs


Am 06.12.2007 um 16:00 schrieb Will:

> if I press C-Mouse-1 the buffer list appears as a drop-down menu at  
> the mouse-pointer. However, the justification seems to be messed up  
> and I have problems orienting to find the buffer /folder names.
>
> How can I change the justification of the buffer list so ist  
> flushed left (like in Emacs menu -> Buffers)? How can I influence  
> the sorting of buffer names in that list?


You might check this:  '(mouse-buffer-menu-mode-mult 1). At least you  
can see that what pops up is mouse-buffer-menu related.

--
Greetings

   Pete

"One person with a belief is a social power equal to ninety-nine who  
have only interests."
                                                  - John Stuart Mill

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

* RE: Emacs - Buffer List - Drop-Down-Menu
  2007-12-06 16:37 ` Peter Dyballa
@ 2007-12-06 17:08   ` Drew Adams
  2007-12-06 17:28     ` Peter Dyballa
  0 siblings, 1 reply; 8+ messages in thread
From: Drew Adams @ 2007-12-06 17:08 UTC (permalink / raw)
  To: Peter Dyballa, Will; +Cc: help-gnu-emacs

> > if I press C-Mouse-1 the buffer list appears as a drop-down menu at
> > the mouse-pointer. However, the justification seems to be messed up
> > and I have problems orienting to find the buffer /folder names.
> >
> > How can I change the justification of the buffer list so ist
> > flushed left (like in Emacs menu -> Buffers)? How can I influence
> > the sorting of buffer names in that list?
>
>
> You might check this:  '(mouse-buffer-menu-mode-mult 1). At least you
> can see that what pops up is mouse-buffer-menu related.

Thanks. Never heard of that option. I wonder why 0 or 1 is not the default
value?

BTW, this helps a lot with the organization, but it doesn't really respond
to the OP question about justification and alignment. I agree that the
alignment is not ideal.

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

* Re: Emacs - Buffer List - Drop-Down-Menu
  2007-12-06 17:08   ` Drew Adams
@ 2007-12-06 17:28     ` Peter Dyballa
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2007-12-06 17:28 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs, Will


Am 06.12.2007 um 18:08 schrieb Drew Adams:

>> You might check this:  '(mouse-buffer-menu-mode-mult 1). At least you
>> can see that what pops up is mouse-buffer-menu related.
>
> Thanks. Never heard of that option. I wonder why 0 or 1 is not the  
> default
> value?

Because it's such an old variable that (almost) every value leads to  
different *documented* behaviour. I think 15 or 20 years ago I found  
1 fine after many tries and then said to myself: that's good enough  
for the remainder of my life. But then I discovered desktop and  
session and now so many buffers are saved between sessions that I  
think I might need to increase or decrease that value of 1 ...

There might be more mouse-buffer-menu stuff and variables.

--
Greetings

   Pete

"If we don't succeed, we run the risk of failure."

                                 George W. Bush

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

* Re: Emacs - Buffer List - Drop-Down-Menu
       [not found] <mailman.4655.1196960992.18990.help-gnu-emacs@gnu.org>
@ 2007-12-06 17:54 ` Jason Rumney
  2007-12-06 18:53   ` Drew Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Jason Rumney @ 2007-12-06 17:54 UTC (permalink / raw)
  To: help-gnu-emacs

On 6 Dec, 17:08, "Drew Adams" <drew.ad...@oracle.com> wrote:

> BTW, this helps a lot with the organization, but it doesn't really respond
> to the OP question about justification and alignment. I agree that the
> alignment is not ideal.

The alignment comes from the second nested format call in mouse-buffer-
menu-alist. I think the intention is to align the flags and file name,
but it also results in the buffer names being left padded, losing
their left alignment. This looks completely messed up when the menus
use a variable width font, as nothing ends up aligned.

On Windows, the tab character can be used for alignment within the
menu, xmenu.c seems to use spaces to align the key codes though, so it
probably doesn't work cross-platform.

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

* RE: Emacs - Buffer List - Drop-Down-Menu
  2007-12-06 17:54 ` Jason Rumney
@ 2007-12-06 18:53   ` Drew Adams
  0 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2007-12-06 18:53 UTC (permalink / raw)
  To: Jason Rumney, help-gnu-emacs

> > BTW, this helps a lot with the organization, but it doesn't
> really respond
> > to the OP question about justification and alignment. I agree that the
> > alignment is not ideal.
>
> The alignment comes from the second nested format call in mouse-buffer-
> menu-alist. I think the intention is to align the flags and file name,
> but it also results in the buffer names being left padded, losing
> their left alignment. This looks completely messed up when the menus
> use a variable width font, as nothing ends up aligned.
>
> On Windows, the tab character can be used for alignment within the
> menu, xmenu.c seems to use spaces to align the key codes though, so it
> probably doesn't work cross-platform.

Yes. A variable-width font is what I see on Windows, by default - which is
good, IMO.

I think (so far) that the buffer name should just be flush left, and it
should be followed by a single space before the file name. That is, forget
about trying to align the file names. That is the best solution for a
variable-width font, IMO. Besides, there is no reason to align the file
names: they don't constitute a separate field or whatever here.

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

* Emacs - Buffer List - Drop-Down-Menu
@ 2008-01-09 12:54 Will
  2008-01-09 14:14 ` Jason Rumney
  0 siblings, 1 reply; 8+ messages in thread
From: Will @ 2008-01-09 12:54 UTC (permalink / raw)
  To: bug-gnu-emacs

Hello,

if I press C-Mouse-1 the buffer list appears as a drop-down menu at the
mouse-pointer. However, the justification seems to be messed up and I
have problems orienting to find the buffer /folder names.

I am using GNU Emacs Version 22.1 with EmacsW32 package under Windows XP.

Please check the thread "Emacs - Buffer List - Drop-Down-Menu" on 
<gnu.emacs.help> starting on 2007-12-06 for further explanations.


Best, Will





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

* Re: Emacs - Buffer List - Drop-Down-Menu
  2008-01-09 12:54 Will
@ 2008-01-09 14:14 ` Jason Rumney
  0 siblings, 0 replies; 8+ messages in thread
From: Jason Rumney @ 2008-01-09 14:14 UTC (permalink / raw)
  To: Will; +Cc: bug-gnu-emacs

Will wrote:
> Please check the thread "Emacs - Buffer List - Drop-Down-Menu" on 
> <gnu.emacs.help> starting on 2007-12-06 for further explanations.

Thanks for your report. The menu justification was fixed in response to 
that thread.





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

end of thread, other threads:[~2008-01-09 14:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-06 15:00 Emacs - Buffer List - Drop-Down-Menu Will
2007-12-06 16:37 ` Peter Dyballa
2007-12-06 17:08   ` Drew Adams
2007-12-06 17:28     ` Peter Dyballa
     [not found] <mailman.4655.1196960992.18990.help-gnu-emacs@gnu.org>
2007-12-06 17:54 ` Jason Rumney
2007-12-06 18:53   ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2008-01-09 12:54 Will
2008-01-09 14:14 ` Jason Rumney

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.