all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tak Kunihiro <tkk@misasa.okayama-u.ac.jp>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Kunihiro Tak <tkk@misasa.okayama-u.ac.jp>, 26599@debbugs.gnu.org
Subject: bug#26599: patch for mwheel.el
Date: Wed, 26 Apr 2017 15:08:42 +0900	[thread overview]
Message-ID: <A4F6BA3C-D7C1-4220-8972-4D7AA7D1D3C1@misasa.okayama-u.ac.jp> (raw)
In-Reply-To: <83lgqnpxs4.fsf@gnu.org>

>>>> Is it possible to add a line that runs hook on `mwheel.el' to let me
>>>> do so without advice-add?
>>> 
>>> Wouldn't it be better to have a user option which would turn off
>>> auto-hscroll-mode without running any hooks?
>> 
>> Yes.  A concern is how to turn auto-hscroll-mode t back.
> 
> maybe I misunderstand something: what I had in mind is turn off
> auto-hscroll-mode as part of the mwheel commands, then turn it back on
> when the mwheel command did its job.
> 
>> User decides when to set auto-hscroll-mode t again by an event besides
>> wheel-up, -down, -left, or -down.
> 
> No, I meant to have it off as long as the mwheel command runs, and
> restore it right back immediately afterwards.

Let’s consider a buffer consists of very long lines and an empty line.
Point starts from A with auto-hscroll-mode t.

0000..0000 A
0000..0000 I
C          B
D 00..0000 Z

Point reaches to B by scroll up and as soon as auto-hscroll-mode
is set to t, scope will be shifted to point C. Another scrolling
up moves point to D instead of Z.

To visit point Z, timer is required. A minor-mode serves as a long timer.






  reply	other threads:[~2017-04-26  6:08 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-22  1:27 bug#26599: patch for mwheel.el Tak Kunihiro
2017-04-22  7:52 ` Eli Zaretskii
2017-04-23  6:13   ` Tak Kunihiro
2017-04-26  5:01     ` Eli Zaretskii
2017-04-26  6:08       ` Tak Kunihiro [this message]
2017-04-26 10:50         ` Eli Zaretskii
2017-04-26 12:32           ` Tak Kunihiro
2017-04-26 15:31             ` Eli Zaretskii
2017-04-26 23:33               ` Tak Kunihiro
2017-04-27  2:36                 ` Eli Zaretskii
2017-04-27  5:27                   ` Tak Kunihiro
2017-04-27 14:25                     ` Eli Zaretskii
2017-04-27 23:16                       ` Tak Kunihiro
2017-04-28  6:47                         ` Eli Zaretskii
2017-04-28  9:12                           ` Tak Kunihiro
2017-05-19  8:55                             ` Eli Zaretskii
2019-06-24 16:38                               ` Lars Ingebrigtsen
2020-01-20 20:06                                 ` Stefan Kangas
2020-01-20 22:47                                   ` Juri Linkov
2020-01-21  7:17                                     ` Tak Kunihiro
2020-01-21  9:46                                       ` Stefan Kangas
2020-01-22  5:46                                         ` Tak Kunihiro
2020-03-13 23:43                                           ` Tak Kunihiro
2020-03-13 23:52                                         ` Tak Kunihiro

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=A4F6BA3C-D7C1-4220-8972-4D7AA7D1D3C1@misasa.okayama-u.ac.jp \
    --to=tkk@misasa.okayama-u.ac.jp \
    --cc=26599@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.