From: Clemens Radermacher <clemens.radermacher@posteo.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 35659@debbugs.gnu.org
Subject: bug#35659: 26.1; Weird horizontal scroll behavior with certain settings for `auto-hscroll-mode' and `hscroll-step`.
Date: Fri, 10 May 2019 16:25:05 +0200 [thread overview]
Message-ID: <d425904a-a919-bdc6-9884-880782157ce7@posteo.de> (raw)
In-Reply-To: <83a7fufltw.fsf@gnu.org>
> I think the fact that it happens for hscroll-step of zero is "by sheer
> luck". I certainly don't remember explicitly coding that.
Programmers need luck, too ;)
> Maybe someone will find an easy fix, volunteers are welcome. Emacs
> really shouldn't depend for its display code development on one old
> curmudgeon such as myself...
I had some success with this workaround (ugly but it's enough for my use case):
(defun my-temporary-change-hscroll (f &rest args)
(setq hscroll-step 0)
(apply f args)
(run-at-time 0.1 nil
(lambda ()
(setq hscroll-step 1))))
(advice-add #'previous-line :around 'my-temporary-change-hscroll)
(advice-add #'next-line :around 'my-temporary-change-hscroll)
I would really like to dig into it but I hardly know any C and I have read several times
that the Emacs code base is reserved for advanced C programmers. Thank you for
all the work you are doing, Emacs is such a great software!
Clemens
next prev parent reply other threads:[~2019-05-10 14:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-09 19:15 bug#35659: 26.1; Weird horizontal scroll behavior with certain settings for `auto-hscroll-mode' and `hscroll-step` clemera
2019-05-10 7:14 ` Eli Zaretskii
2019-05-10 12:37 ` Clemens Radermacher
2019-05-10 13:02 ` Eli Zaretskii
2019-05-10 13:24 ` Clemens Radermacher
2019-05-10 13:34 ` Eli Zaretskii
2019-05-10 13:44 ` Clemens Radermacher
2019-05-10 14:03 ` Eli Zaretskii
2019-05-10 14:25 ` Clemens Radermacher [this message]
2019-05-10 15:14 ` Eli Zaretskii
2019-08-27 0:06 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d425904a-a919-bdc6-9884-880782157ce7@posteo.de \
--to=clemens.radermacher@posteo.de \
--cc=35659@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.