From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#24364: [PATCH] Fix cursor at bottom left of rectangle (bug#24364) Date: Sun, 4 Sep 2016 23:19:25 +0100 Message-ID: <20160904221925.GA23467@breton.holly.idiocy.org> References: <20160904184755.GA3137@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1473027629 450 195.159.176.226 (4 Sep 2016 22:20:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Sep 2016 22:20:29 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) Cc: mariejones@web.de To: 24364@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 05 00:20:25 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgfm3-0007sy-E1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 00:20:23 +0200 Original-Received: from localhost ([::1]:51208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgfm1-0002EG-6D for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Sep 2016 18:20:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgfll-00025G-Pk for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2016 18:20:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgfli-00066k-GG for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2016 18:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgfli-00066g-Cb for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2016 18:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bgfli-0001RA-3w for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2016 18:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Sep 2016 22:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24364-submit@debbugs.gnu.org id=B24364.14730275755484 (code B ref 24364); Sun, 04 Sep 2016 22:20:02 +0000 Original-Received: (at 24364) by debbugs.gnu.org; 4 Sep 2016 22:19:35 +0000 Original-Received: from localhost ([127.0.0.1]:49951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgflH-0001QO-7V for submit@debbugs.gnu.org; Sun, 04 Sep 2016 18:19:35 -0400 Original-Received: from mail-wm0-f66.google.com ([74.125.82.66]:35596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgflF-0001QC-GY for 24364@debbugs.gnu.org; Sun, 04 Sep 2016 18:19:33 -0400 Original-Received: by mail-wm0-f66.google.com with SMTP id c133so10734924wmd.2 for <24364@debbugs.gnu.org>; Sun, 04 Sep 2016 15:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kewOsFD1Bv0rJKMjmBqROBck8BTgdV7WRhfywjduq5s=; b=dUBKXHHGh3Xr35JhQEhSHamVFBIUYP2ldvdYLGU1+BjzqbNKvGqgrgfqTOQhakaDAS VVv8CYLAOtYN2HzgNYG/qcjWrHWR+9HiYHLJjHqIrJDPoM7DQLvs0QswtY7vAKleso/M 60vSTnEW1KFfeCv3phwDJHdKAKdZI6MCDed8hcitkCkPKnHHj+lwmVcGgBtshFRQYbsr L0bA6+wm7/gEJhXQJ8C7Y0ZnDNX39nyhA+NbYvHg+uJOtXLmKNTbJVq7oDaoSsMhVpYb cedrUmOR5js0z4LSN6Fve0cR70UcjzR3zjrMYBWt4LDYFJ3QF34SnOYIX1lW9YgFlKJ+ p3Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=kewOsFD1Bv0rJKMjmBqROBck8BTgdV7WRhfywjduq5s=; b=QxkDrtRu8jeiqFS0Z6Uclcq1AEBjZkD996vCQd3siAdZUQsBeIEeIOJczZxQCmRkmG rpheyH5//4h7qwEkJbPn8diG9bG0wFh8RONV12vVjysaOHbrB+xZcOaZL3kKKS5FP4V2 EXz4JVN/sAKoIzeoRopbEE5ZyOAMYQ9OqJgueBqEyb3OAoe8moyiPl9/sRt6jN3vi2lU 7AMoGtgiSjePdiVkdlBKfqVhOpDghcRKX+MIUBSEqdt5sTCOg/LWYXu0h18jIe/cV5ma 5/V5CjUPn3z7NkfxKcPR6hVOdzA3IHbx3ZVNIiosVYGgUQqMCZGQWois2EGl5UwRJnrf NEgA== X-Gm-Message-State: AE9vXwO+p4ZvQUblUNQs+NR3pqwiZz17jbRjlEw8dgydbgE6cOQyEx+KYopI+7HOlJU5PQ== X-Received: by 10.194.116.197 with SMTP id jy5mr11953137wjb.19.1473027567735; Sun, 04 Sep 2016 15:19:27 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-39b1-2960-fede-28c6.holly.idiocy.org. [2001:8b0:3f8:8129:39b1:2960:fede:28c6]) by smtp.gmail.com with ESMTPSA id a21sm16831805wma.10.2016.09.04.15.19.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Sep 2016 15:19:27 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20160904184755.GA3137@breton.holly.idiocy.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122944 Archived-At: * lisp/rect.el (rectangle--col-pos): Don't assume point at EOL doesn't require rectangle--point-crutches to be set. --- lisp/rect.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/rect.el b/lisp/rect.el index 13499d6..f9bebc4 100644 --- a/lisp/rect.el +++ b/lisp/rect.el @@ -108,7 +108,7 @@ rectangle--pos-cols (defun rectangle--col-pos (col kind) (let ((c (move-to-column col))) - (if (= c col) + (if (and (= c col) (not (eolp))) (if (eq kind 'point) (if (window-parameter nil 'rectangle--point-crutches) (setf (window-parameter nil 'rectangle--point-crutches) nil)) -- I believe this small change sorts it. -- Alan Third