[Top][All Lists]

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

What's the purpose of things like `default-truncate-lines'?

From: David Kastrup
Subject: What's the purpose of things like `default-truncate-lines'?
Date: Thu, 29 Jun 2006 12:55:01 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

I read

    default-truncate-lines is a variable defined in `src/buffer.c'.
    Its value is nil

    Default value of `truncate-lines' for buffers that do not override it.
    This is the same as (default-value 'truncate-lines).


If it is the same as (default-value 'truncate-lines), why do we have a
separately named variable?

Is this just a technical necessity for some reason?

I am asking because `default-truncate-lines' is documented as a
variable of its own in the Elisp manual, and I am not sure whether
that makes any sense.  Maybe it would be better to point out that
`truncate-lines' is automatically buffer-local and thus its default
should be set with `setq-default'.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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