[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display-based word wrapping

From: Chong Yidong
Subject: Re: Display-based word wrapping
Date: Tue, 24 Jun 2008 22:04:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>>> Do you care about this?  If so, how about this: make truncate-lines an
>>>> obsolete alias for `line-wrap-method', which accepts the values
>>>> `edge-wrap', `word-wrap', and `truncate', with t equivalent to
>>>> `truncate' and nil equivalent to `edge-wrap'.
>>> Yes, that sounds very good (I'd have said `char-wrap' rather than
>>> `edge-wrap', tho).
>> One big disadvantage, though: truncate-lines is used very widely in the
>> Lisp code.  Replacing them would be rather annoying.
> I don't see much of a problem with it.  That's what
> define-obsolete-variable-alias is for, isn't it?

Leaving these calls in place would generate plenty of byte-compiler
warnings, unless we do defvaralias instead of
define-obsolete-variable-alias.  Anyway, isn't it a general policy to
change the code in Emacs to use non-obsolete names?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]