GNU bug report logs - #632
23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines

Previous Next

Package: emacs;

Reported by: Lawrence Mitchell <wence <at> gmx.li>

Date: Wed, 30 Jul 2008 15:25:05 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 632 in the body.
You can then email your comments to 632 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#632; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Lawrence Mitchell <wence <at> gmx.li>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Lawrence Mitchell <wence <at> gmx.li>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; Turning off visual-line-mode ignores previous value of
	truncate-lines
Date: Wed, 30 Jul 2008 16:18:51 +0100
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 <wence <at> gmx.li>




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Lawrence Mitchell <wence <at> gmx.li>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 632-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Lawrence Mitchell <wence <at> gmx.li>
Cc: 632-done <at> debbugs.gnu.org
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.




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 10 Sep 2008 14:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 280 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.