From unknown Fri Jun 13 11:53:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22303: 24.5; toggle-truncate-lines not mentioned in docstring for truncate-lines nor in elisp manual Resent-From: phs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jan 2016 09:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22303@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: phs@lsv.fr Received: via spool by submit@debbugs.gnu.org id=B.14519010678008 (code B ref -1); Mon, 04 Jan 2016 09:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2016 09:51:07 +0000 Received: from localhost ([127.0.0.1]:37129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aG1n5-000251-PZ for submit@debbugs.gnu.org; Mon, 04 Jan 2016 04:51:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51983) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aG1n4-00024L-44 for submit@debbugs.gnu.org; Mon, 04 Jan 2016 04:51:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG1mx-0004aP-S4 for submit@debbugs.gnu.org; Mon, 04 Jan 2016 04:50:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG1mx-0004aL-Ot for submit@debbugs.gnu.org; Mon, 04 Jan 2016 04:50:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG1mw-0007YJ-Qi for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 04:50:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG1ms-0004Yt-Os for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 04:50:54 -0500 Received: from olive.lsv.fr ([138.231.81.248]:48066 helo=olive.lsv.ens-cachan.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG1ms-0004Um-Ii for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 04:50:50 -0500 Received: from phs-air.local (gwvisitors.lsv.fr [138.231.81.8]) by olive.lsv.ens-cachan.fr (Postfix) with ESMTP id 18AA74C01C4 for ; Mon, 4 Jan 2016 10:30:18 +0100 (CET) From: phs Message-ID: <568A3BA9.8000300@lsv.fr> Date: Mon, 4 Jan 2016 10:30:17 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) In general, changing the value of `truncate-lines' should be done via `toggle-truncate-lines' not by `(setq truncate-lines ..)' However the documentation string for `truncate-lines' does not mention the existence of `toggle-truncate-lines', nor is it mentioned in the elisp manual (section "37.3 Truncation"). It seems that modifying `truncate-lines' with just `(setq ..)' may suffer from redisplay problems, see http://emacs.stackexchange.com/questions/19228 for a way to trip the problem from emacs -Q. --phs In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1404 Configured using: `configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: value of $LC_ALL: en_US value of $LANG: en_US locale-coding-system: utf-8-unix -- Philippe SCHNOEBELEN, www.lsv.ens-cachan.fr/~phs LSV, CNRS UMR 8643 & ENS de Cachan Tel: (+33/0) 147 407 530 "Algebraic symbols are used when you do not know what you are talking about" From unknown Fri Jun 13 11:53:38 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: phs@lsv.fr Subject: bug#22303: closed (Re: bug#22303: 24.5; toggle-truncate-lines not mentioned in docstring for truncate-lines nor in elisp manual) Message-ID: References: <837fjp6zi4.fsf@gnu.org> <568A3BA9.8000300@lsv.fr> X-Gnu-PR-Message: they-closed 22303 X-Gnu-PR-Package: emacs Reply-To: 22303@debbugs.gnu.org Date: Mon, 04 Jan 2016 17:12:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1451927522-30245-1" This is a multi-part message in MIME format... ------------=_1451927522-30245-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22303: 24.5; toggle-truncate-lines not mentioned in docstring for truncate= -lines nor in elisp manual which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 22303@debbugs.gnu.org. --=20 22303: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22303 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1451927522-30245-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22303-done) by debbugs.gnu.org; 4 Jan 2016 17:11:38 +0000 Received: from localhost ([127.0.0.1]:37786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aG8fS-0007r5-0F for submit@debbugs.gnu.org; Mon, 04 Jan 2016 12:11:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40248) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aG8fQ-0007qu-S8 for 22303-done@debbugs.gnu.org; Mon, 04 Jan 2016 12:11:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG8fI-0003z6-Ho for 22303-done@debbugs.gnu.org; Mon, 04 Jan 2016 12:11:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG8fI-0003z2-E9; Mon, 04 Jan 2016 12:11:28 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3199 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aG8fH-0002a5-Qo; Mon, 04 Jan 2016 12:11:28 -0500 Date: Mon, 04 Jan 2016 19:11:31 +0200 Message-Id: <837fjp6zi4.fsf@gnu.org> From: Eli Zaretskii To: phs@lsv.fr In-reply-to: <568A3BA9.8000300@lsv.fr> (message from phs on Mon, 4 Jan 2016 10:30:17 +0100) Subject: Re: bug#22303: 24.5; toggle-truncate-lines not mentioned in docstring for truncate-lines nor in elisp manual References: <568A3BA9.8000300@lsv.fr> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22303-done Cc: 22303-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: phs > Date: Mon, 4 Jan 2016 10:30:17 +0100 > > In general, changing the value of `truncate-lines' should be done via > `toggle-truncate-lines' not by `(setq truncate-lines ..)' > > However the documentation string for `truncate-lines' does not mention > the existence of `toggle-truncate-lines', nor is it mentioned in the > elisp manual (section "37.3 Truncation"). > > It seems that modifying `truncate-lines' with just `(setq ..)' may > suffer from redisplay problems, see > http://emacs.stackexchange.com/questions/19228 for a way to trip the > problem from emacs -Q. Thanks for pointing this out. The answers on stackexchange are incorrect: there's nothing wrong with setting 'truncate-lines' directly. The situation described there revealed a bug, which I just fixed for the next release. I see no need to change the documentation in this regard. ------------=_1451927522-30245-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jan 2016 09:51:07 +0000 Received: from localhost ([127.0.0.1]:37129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aG1n5-000251-PZ for submit@debbugs.gnu.org; Mon, 04 Jan 2016 04:51:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51983) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aG1n4-00024L-44 for submit@debbugs.gnu.org; Mon, 04 Jan 2016 04:51:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG1mx-0004aP-S4 for submit@debbugs.gnu.org; Mon, 04 Jan 2016 04:50:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG1mx-0004aL-Ot for submit@debbugs.gnu.org; Mon, 04 Jan 2016 04:50:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG1mw-0007YJ-Qi for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 04:50:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG1ms-0004Yt-Os for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 04:50:54 -0500 Received: from olive.lsv.fr ([138.231.81.248]:48066 helo=olive.lsv.ens-cachan.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG1ms-0004Um-Ii for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 04:50:50 -0500 Received: from phs-air.local (gwvisitors.lsv.fr [138.231.81.8]) by olive.lsv.ens-cachan.fr (Postfix) with ESMTP id 18AA74C01C4 for ; Mon, 4 Jan 2016 10:30:18 +0100 (CET) To: bug-gnu-emacs@gnu.org From: phs Subject: 24.5; toggle-truncate-lines not mentioned in docstring for truncate-lines nor in elisp manual Message-ID: <568A3BA9.8000300@lsv.fr> Date: Mon, 4 Jan 2016 10:30:17 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: phs@lsv.fr Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) In general, changing the value of `truncate-lines' should be done via `toggle-truncate-lines' not by `(setq truncate-lines ..)' However the documentation string for `truncate-lines' does not mention the existence of `toggle-truncate-lines', nor is it mentioned in the elisp manual (section "37.3 Truncation"). It seems that modifying `truncate-lines' with just `(setq ..)' may suffer from redisplay problems, see http://emacs.stackexchange.com/questions/19228 for a way to trip the problem from emacs -Q. --phs In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1404 Configured using: `configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: value of $LC_ALL: en_US value of $LANG: en_US locale-coding-system: utf-8-unix -- Philippe SCHNOEBELEN, www.lsv.ens-cachan.fr/~phs LSV, CNRS UMR 8643 & ENS de Cachan Tel: (+33/0) 147 407 530 "Algebraic symbols are used when you do not know what you are talking about" ------------=_1451927522-30245-1--