From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#29664: 26.0.90; Auto Hscroll Mode + Visual Line Mode + Truncate don't work well together Date: Mon, 11 Dec 2017 21:07:50 +0000 Message-ID: References: <83fu8hrnjn.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11416c4cf34a3c056016ed60" X-Trace: blaine.gmane.org 1513026551 15873 195.159.176.226 (11 Dec 2017 21:09:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2017 21:09:11 +0000 (UTC) Cc: 29664@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 11 22:09:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOVJw-0003oC-Ru for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Dec 2017 22:09:05 +0100 Original-Received: from localhost ([::1]:55476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOVK3-0008IR-SH for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Dec 2017 16:09:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOVJy-0008I0-5Q for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 16:09:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOVJu-00061m-Ok for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 16:09:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48631) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOVJu-00061U-KQ for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 16:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eOVJu-0006Jk-BG for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2017 16:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Dec 2017 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29664 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29664-submit@debbugs.gnu.org id=B29664.151302648824197 (code B ref 29664); Mon, 11 Dec 2017 21:09:02 +0000 Original-Received: (at 29664) by debbugs.gnu.org; 11 Dec 2017 21:08:08 +0000 Original-Received: from localhost ([127.0.0.1]:57312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOVJ2-0006ID-Iz for submit@debbugs.gnu.org; Mon, 11 Dec 2017 16:08:08 -0500 Original-Received: from mail-yb0-f178.google.com ([209.85.213.178]:43096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOVJ1-0006Hl-3t for 29664@debbugs.gnu.org; Mon, 11 Dec 2017 16:08:07 -0500 Original-Received: by mail-yb0-f178.google.com with SMTP id i206so6803696ybc.10 for <29664@debbugs.gnu.org>; Mon, 11 Dec 2017 13:08:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/hsaUrz66MSoj/xwc2HNwf+9kGqv7guyZ3daW6XTJKc=; b=RKR5eW9aL6JoEInwFtZmeAq5feFRIUh0wnRS4uzuBQuXt59n/cIJkMYYQiIYii5ZlR eMe3s0A3bahK1tGrxqlBdkzxbHSRrZmPtuXqF6YSvMmOcil0qVqNivSarmK9SYNEh8lO qbL2xbaF7CAUTQhgEflMsTKJ4uMSNJjUKVVwoTbseEoMqQ2DltN8eK+r5C+2Jc1pbkKi Ygw35rmcYMx+VF3ntGC1SoO1m4W9jv8ZcSXYJWQoCXGkDVsljeDK0Ebg3UTpyKF5kj9I DDRJm7B56PYikGLH8Abe6QqrR/ZXYbHMUhYz7JddnmRrUSCsjBg8+O6eK132IkxVFmFl SJ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/hsaUrz66MSoj/xwc2HNwf+9kGqv7guyZ3daW6XTJKc=; b=CdIYW7frlz9B8kbiP6q2AtwCqP65u8+tmkuNmQyHRmstYPhG5JJ8q50cRISJpv282f 7uWvKq1epVU+5Kt0Zll8ZaQq8NNQJjlqoJHhMZ/FT1K3nqzx0zOAPY2ZklkJX9J1q+ww wjOB2CGfs6ZcoAOTxLdXn+uX2e5TjgazVu6pF10sylGsqWOtZmi6hlajAKkP+RqWMSB6 0kwWqYe+zXpiZxssvAYdzSrUF+3UsKcgMvuoc3F5aY8T+DPFgakmx3CA19pElD24KjTn IaplPVRfwjx+c14TkzN35ATUfxcIHQ4q1OXr6pp42hUYNoLIOX8XgcmmzO1iRwWAXnpz 3TNQ== X-Gm-Message-State: AKGB3mJTV9/Pd2UpzXnwQh12I+3mftzhiVRI6vmXsIefndTWK7qDxXDI e/YA7aH19dDmTpfZq3WmSid5B8z/3O2ZAoQYfCQ= X-Google-Smtp-Source: ACJfBovM7XNVELlRroXgdyuOOF9pJhl16Whi1xyT/DDbmbqtVqw66NFwXZHk+Wx3GnQHO2kHj1BzYUXjTxcgJVkguPU= X-Received: by 10.37.22.85 with SMTP id 82mr1322922ybw.493.1513026481243; Mon, 11 Dec 2017 13:08:01 -0800 (PST) In-Reply-To: <83fu8hrnjn.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140948 Archived-At: --001a11416c4cf34a3c056016ed60 Content-Type: text/plain; charset="UTF-8" On Mon, Dec 11, 2017 at 3:57 PM Eli Zaretskii wrote: > > Why are you turning on both visual-line-mode and truncate-lines? > These are mutually exclusive: the former is for wrapping long > continued lines, the latter is for not continuing lines at all. > > What am I missing? > Yes, I understand that. But they were both enabled by mistake. - The visual line mode was enabled by default in org-mode-hook - And I happened to have "# eval: (toggle-truncate-lines 1)" in the Local Variables footer in one of the Org files. There were no signs of problem until C-a and C-e started misbehaving that way. Should emacs do the "right thing" and auto-disable the other if one got enabled, or throw a warning? This problem with C-a and C-e does not happen if skip this part in the test setup: (setq auto-hscroll-mode 'current-line) - C-a works perfectly - C-e does not jump instantly to the EOL, but progressively goes to the EOL on hitting C-e, and eventually gets there (interesting behavior). So at least with the default value of auto-hscroll-mode, a user is not stuck wondering why C-a/C-e stopped working, even if they enabled visual-line-mode and toggle-truncate-lines simultaneously by mistake. PS: I noticed that the email client or the debbugs server auto-inserted newlines in my test function.. I intend that insert form to insert a string without any inbetween newlines.. like this: (insert (concat "\n\ndlkasdjf lkdkmnf kd aksdjkldj laksdjflkasdf " "aldksflakdjf alksdjldf lksdfjldkj lkjdfad " "falksdflj asldkfjlasdf fjlaksdjflkj asdf " "lasdkfalkds alsdfkj sdf lsdkfj sldkfjlksdjf " "asldkfjlksdjfowieur nxc")) -- Kaushal Modi --001a11416c4cf34a3c056016ed60 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Dec 11= , 2017 at 3:57 PM Eli Zaretskii <eliz@gn= u.org> wrote:

Why are you turning on both visual-line-mode and truncate-lines?
These are mutually exclusive: the former is for wrapping long
continued lines, the latter is for not continuing lines at all.

What am I missing?

Yes, I understand th= at. But they were both enabled by mistake.

- = The visual line mode was enabled by default in org-mode-hook
- An= d I happened to have "# eval: (toggle-truncate-lines 1)" in the L= ocal Variables footer in one of the Org files.

The= re were no signs of problem until C-a and C-e started misbehaving that way.=

Should emacs do the "right thing" = and auto-disable the other if one got enabled, or throw a warning?

This problem with C-a and C-e does not happen if skip this= part in the test setup:

=C2=A0(setq auto-hscroll-= mode 'current-line)

- C-a works perfectly
- C-e does not jump instantly to the EOL, but progressively goes to t= he EOL on hitting C-e, and eventually gets there (interesting behavior).

So at least with the default value of auto-hscroll-m= ode, a user is not stuck wondering why C-a/C-e stopped working, even if the= y enabled visual-line-mode and toggle-truncate-lines simultaneously by mist= ake.

PS: I noticed that the email client or th= e debbugs server auto-inserted newlines in my test function.. I intend that= insert form to insert a string without any inbetween newlines.. like this:=

(insert (concat "\n\ndlkasdjf lkdkmnf kd aks= djkldj laksdjflkasdf "
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "aldksflakdjf alksdjl= df lksdfjldkj lkjdfad "
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "falksdflj asldkfjlas= df fjlaksdjflkj asdf "
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "lasdkfalkds alsdfkj = sdf lsdkfj sldkfjlksdjf "
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "asldkfjlksdjfowie= ur nxc"))
--

Kau= shal Modi

--001a11416c4cf34a3c056016ed60--