unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#632: 23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines
@ 2008-07-30 15:18 ` Lawrence Mitchell
  2008-08-12 19:50   ` bug#632: marked as done (23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Lawrence Mitchell @ 2008-07-30 15:18 UTC (permalink / raw)
  To: emacs-pretest-bug

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@gmx.li>






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#632: marked as done (23.0.60; Turning off visual-line-mode  ignores previous value of truncate-lines)
  2008-07-30 15:18 ` bug#632: 23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines Lawrence Mitchell
@ 2008-08-12 19:50   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2008-08-12 19:50 UTC (permalink / raw)
  To: Chong Yidong

[-- Attachment #1: Type: text/plain, Size: 921 bytes --]


Your message dated Tue, 12 Aug 2008 15:41:12 -0400
with message-id <87d4ket413.fsf@stupidchicken.com>
and subject line Re: 23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines
has caused the Emacs bug report #632,
regarding 23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
632: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=632
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3577 bytes --]

From: Lawrence Mitchell <wence@gmx.li>
To: emacs-pretest-bug@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
Message-ID: <20080730151851.GB17404@lamacq.ph.ed.ac.uk>

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@gmx.li>



[-- Attachment #3: Type: message/rfc822, Size: 1199 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: Lawrence Mitchell <wence@gmx.li>
Cc: 632-done@emacsbugs.donarmstrong.com
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
Message-ID: <87d4ket413.fsf@stupidchicken.com>

> 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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-12 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87d4ket413.fsf@stupidchicken.com>
2008-07-30 15:18 ` bug#632: 23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines Lawrence Mitchell
2008-08-12 19:50   ` bug#632: marked as done (23.0.60; Turning off visual-line-mode ignores previous value of truncate-lines) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).