all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#19259: 25.0.50; Be able to use `compare-windows' in either direction
@ 2014-12-02 22:53 Drew Adams
  2014-12-05  0:57 ` Juri Linkov
  2021-07-13 20:52 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Drew Adams @ 2014-12-02 22:53 UTC (permalink / raw)
  To: 19259

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'





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-13 21:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02 22:53 bug#19259: 25.0.50; Be able to use `compare-windows' in either direction Drew Adams
2014-12-05  0:57 ` 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

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.