From: Drew Adams <drew.adams@oracle.com>
To: 19259@debbugs.gnu.org
Subject: bug#19259: 25.0.50; Be able to use `compare-windows' in either direction
Date: Tue, 2 Dec 2014 14:53:18 -0800 (PST) [thread overview]
Message-ID: <109d0892-03a9-4daa-8814-16207d2f3858@default> (raw)
Especially when `compare-windows' is used repeatedly (e.g. bound to a
repeatable key etc.), it can be helpful to be able to sometimes
compare backward, toward bob, instead of always forward, toward eob.
Please add this enhancement.
It can be introduced at the user level by modifying how a prefix arg is
handled. If the numeric value is 0 or greater, the behavior would be as
it is now (so no change for `C-u', for instance). If the numeric value
is 0 or less, then comparison would be toward bob.
For example, (the parameter would be renamed ARG and) the doc string
would be updated with something like this, concerning the prefix arg:
...
Variable `compare-windows-whitespace' controls how whitespace is
skipped. But a non-negative prefix arg means reverse the value of
this variable.
A non-positive prefix arg means compare backward not forward.
If `compare-ignore-case' is non-nil then ignore changes in case.
...
Repeatability would need to be handled using something like
having `set-transient-map' recognize the repeated command and
reuse the same direction, unless a prefix arg is used again to
signal a direction change.
E.g., if `C-= w' were bound to `compare-windows' then
C-- C-= w w w w C-u w w C-- w w w
would compare backward 4 times, then forward twice, then
backward 3 times.
In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
of 2014-10-20 on LEG570
Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'
next reply other threads:[~2014-12-02 22:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 22:53 Drew Adams [this message]
2014-12-05 0:57 ` bug#19259: 25.0.50; Be able to use `compare-windows' in either direction Juri Linkov
2014-12-05 2:12 ` Drew Adams
2021-07-13 20:52 ` Lars Ingebrigtsen
2021-07-13 21:57 ` bug#19259: [External] : " Drew Adams
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=109d0892-03a9-4daa-8814-16207d2f3858@default \
--to=drew.adams@oracle.com \
--cc=19259@debbugs.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.