all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: rudalics@gmx.at, emacs-devel@gnu.org
Subject: Re: simplifying windmove-frame-edges
Date: Fri, 25 Oct 2019 15:51:34 +0300	[thread overview]
Message-ID: <83imodvvhl.fsf@gnu.org> (raw)
In-Reply-To: <CAAeL0SRCmCywenz6SshMhpvVH6PB0LOs-u15V=JUsweS4Qspig@mail.gmail.com> (message from Juanma Barranquero on Fri, 25 Oct 2019 14:17:23 +0200)

> From: Juanma Barranquero <lekktu@gmail.com>
> Date: Fri, 25 Oct 2019 14:17:23 +0200
> Cc: martin rudalics <rudalics@gmx.at>, Emacs developers <emacs-devel@gnu.org>
> 
> > We cannot just delete them, we need to obsolete them first.  They were
> > with us for far too long.
> 
> I find the argument less than compelling, given the fact that the functions have been known not to work well in
> some cases for the past six years or so.

From bitter experience, we have no good ways of knowing which APIs are
used by unbundled packages and user code out there.  Emacs is a stable
package, so users rightfully expect it not to break their code by
backward-incompatible changes.

> --- a/lisp/windmove.el
> +++ b/lisp/windmove.el
> @@ -473,15 +473,19 @@ windmove-other-window-loc
>  ;; Rewritten on 2013-12-13 using `window-in-direction'.  After the
>  ;; pixelwise change the old approach didn't work any more.  martin
>  (defun windmove-find-other-window (dir &optional arg window)
> -  "Return the window object in direction DIR.
> -DIR, ARG, and WINDOW are handled as by `windmove-other-window-loc'."
> +  "Return the window object in direction DIR as seen from WINDOW.
> +DIR is one of `left', `up', `right', or `down'.
> +Optional ARG, if negative, means to use the right or bottom edge of
> +WINDOW as reference position, instead of `window-point'; if positive,
> +use the left or top edge of WINDOW as reference point.
> +WINDOW must be a live window and defaults to the selected one."
>    (window-in-direction dir window nil arg windmove-wrap-around t))

The last sentence should be the 2nd, because you mention WINDOW in the
first sentence of the doc string.

> From 1e7b2fe06a4fce4dc2ce52b037145190d86176ca Mon Sep 17 00:00:00 2001
> From: Juanma Barranquero <lekktu@gmail.com>
> Date: Fri, 25 Oct 2019 14:02:22 +0200
> Subject: [PATCH 3/3] windmove.el: Remove comments about the old implementation

Are these comments really no longer relevant?

Thanks.



  reply	other threads:[~2019-10-25 12:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 11:54 simplifying windmove-frame-edges Juanma Barranquero
2019-10-23 16:05 ` martin rudalics
2019-10-23 18:10   ` Juanma Barranquero
2019-10-24  6:44     ` martin rudalics
2019-10-24 14:11       ` Eli Zaretskii
2019-10-25 12:17         ` Juanma Barranquero
2019-10-25 12:51           ` Eli Zaretskii [this message]
2019-10-25 13:13             ` Juanma Barranquero
2019-10-25 13:42               ` Eli Zaretskii
2019-10-25 14:05                 ` Juanma Barranquero
2019-10-24  9:12     ` Phil Sainty
2019-10-24  9:37       ` Juanma Barranquero

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=83imodvvhl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=rudalics@gmx.at \
    /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.