[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: the menu Options / Truncate Long Lines in This Buffer not working co
From: |
Glenn Morris |
Subject: |
Re: the menu Options / Truncate Long Lines in This Buffer not working correctly |
Date: |
Thu, 10 Apr 2008 13:58:54 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Dan Nicolaescu wrote:
> > I'm not sure whether one should go further and define a new command
> > linked to the toggle, that if needed makes
> > truncate-partial-width-windows buffer-local and sets it to nil, before
> > setting truncate-lines appropriately.
>
> IMO, that would be TRTD, it would make the menu keep its promise to
> toggle truncating long lines in the buffer.
I don't think a menu toggle can ever work right. The problem is
controlled by two variables, and you would never be able to get back
to the initial state, unless you made it rather complex.
Even if you simplify things by getting rid of
truncate-partial-width-windows, there are still three possible states:
always truncate lines, never truncate lines, truncate only in partial
width windows. You could have a radio button I suppose, but it all
seems a bit much to me.