From: Keith David Bershatsky <esq@lawlist.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: Distinguishing: Temporary v. Semi-Permanent -- Horizontal Scrolling
Date: Sat, 23 Jun 2018 20:49:26 -0700 [thread overview]
Message-ID: <m2a7rk6dyx.wl%esq@lawlist.com> (raw)
I am working on feature requests 17684 (crosshairs) and 22873 (multiple fake cursors).
Temporary horizontal scrolling is achieved by interactively calling: (scroll-left 1)
Semi-permanent horizontal scrolling is achieved by typing: C-u C-x <
To determine whether _only_ the current line is _temporarily_ horizontally scrolled, I have been using:
bool hscl = (!it->w->suspend_auto_hscroll
&& EQ (Fbuffer_local_value (Qauto_hscroll_mode, buf), Qcurrent_line)
&& it->w->hscroll > 0);
I am now moving on to deal with a situation where horizontal scrolling is semi-permanent. In this situation (C-u C-x <), hscl is true. So that test is insufficient here.
What test, please, would be appropriate to determine whether semi-permanent (c-u C-x <) is in effect?
And, is it correct to assume that the current line will never be horizontally scrolled differently when semi-permanent (C-u X-x <) is in effect?
Thanks,
Keith
next reply other threads:[~2018-06-24 3:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-24 3:49 Keith David Bershatsky [this message]
2018-06-24 14:26 ` Distinguishing: Temporary v. Semi-Permanent -- Horizontal Scrolling Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2018-06-24 16:16 Keith David Bershatsky
2018-06-24 16:40 ` Eli Zaretskii
2018-06-24 17:31 Keith David Bershatsky
2018-07-03 2:44 Keith David Bershatsky
2018-07-03 19:29 ` Eli Zaretskii
2018-07-03 20:20 Keith David Bershatsky
2018-07-04 2:33 ` Eli Zaretskii
2018-07-04 13:56 Keith David Bershatsky
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2a7rk6dyx.wl%esq@lawlist.com \
--to=esq@lawlist.com \
--cc=emacs-devel@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 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).