Subject: bug#632 closed by Chong Yidong <[email-masked]> (Re: 23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines)

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#632: 23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines

It has been closed by Chong Yidong <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Chong Yidong <[email-masked]> by
replying to this email.

-- 
632: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=632
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Tue Aug 12 12:40:45 2008
From: Chong Yidong <[email-masked]>
To: Lawrence Mitchell <[email-masked]>
Cc: [email-masked]
Subject: Re: 23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines
Date: Tue, 12 Aug 2008 15:41:12 -0400

> If a buffer with `truncate-lines' set to t is put in visual-line-mode
> and subsequently visual-line-mode is turned off, the value of
> truncate-lines is lost (it is set to the default value).

I've checked in a fix.  Thanks.

>From [email-masked] Wed Jul 30 08:19:31 2008
Date: Wed, 30 Jul 2008 16:18:51 +0100
From: Lawrence Mitchell <[email-masked]>
To: [email-masked]
Subject: 23.0.60; Turning off visual-line-mode ignores previous value of
	truncate-lines

If a buffer with `truncate-lines' set to t is put in
visual-line-mode and subsequently visual-line-mode is turned off,
the value of truncate-lines is lost (it is set to the default value).

Steps to reproduce:

1) emacs -Q
2) evaluate

(progn
  (switch-to-buffer (generate-new-buffer "bug"))
  (setq truncate-partial-width-windows nil)
  (setq-default truncate-lines nil)
  (setq truncate-lines t)
  (insert (make-string (+ (window-width) 10) ?a))
  (goto-char (point-min))
  (visual-line-mode -1))

Expected result:
truncate-lines is t in the buffer "bug"

Actual result:
truncate-lines is nil (the default value).

In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-07-24 on lamacq.ph.ed.ac.uk
Windowing system distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure  '-C' '--prefix=/scratch/s0198183/applications/emacs-trunk/' 'CFLAGS=-ggdb3 -O0''

Cheers,
Lawrence

-- 
Lawrence Mitchell <[email-masked]>