From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#43948: 28.0.50; [PATHC][NS] Make s- to move to beginning/end of line Date: Wed, 14 Oct 2020 13:15:51 +0300 Message-ID: References: <20201013203639.GL60347@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37352"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: Daniel =?UTF-8?Q?Mart=C3=ADn?= , 43948@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 14 12:17:20 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSdqR-0009bc-U6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 12:17:20 +0200 Original-Received: from localhost ([::1]:52356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSdqQ-0001ng-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 06:17:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSdqB-0001nY-0U for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 06:17:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSdqA-0005Cn-NG for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 06:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSdqA-0002Hd-I8 for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 06:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Oct 2020 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43948 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43948-submit@debbugs.gnu.org id=B43948.16026705648640 (code B ref 43948); Wed, 14 Oct 2020 10:17:02 +0000 Original-Received: (at 43948) by debbugs.gnu.org; 14 Oct 2020 10:16:04 +0000 Original-Received: from localhost ([127.0.0.1]:50130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSdpE-0002FH-0Y for submit@debbugs.gnu.org; Wed, 14 Oct 2020 06:16:04 -0400 Original-Received: from mail-lf1-f42.google.com ([209.85.167.42]:45182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSdpA-0002EO-Op for 43948@debbugs.gnu.org; Wed, 14 Oct 2020 06:16:03 -0400 Original-Received: by mail-lf1-f42.google.com with SMTP id r127so3013232lff.12 for <43948@debbugs.gnu.org>; Wed, 14 Oct 2020 03:16:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=u6mIAO5QVaf4TCQcGW8z4fYMkkVhGY1BzFo4V5GOwGo=; b=fvvgAqt+194Bq967ag7e6V0HVs18u+eplHosfVbVHmxzcjfCsPo8sGvJhIXanfPm0f OAxj26Bv8DK6WQk1YMfktf8InO16dIc0pDD9leROXphMWdyVlpc8wuZMRxnGkf0Ba+dI N+9wYwWalmxAFaPGVY2Yxb/QTs7VoI1KuTKeQIgfdNBPVi5cExOOXokOi1RTXBHuORvm AaJeIV8FxeILS+5tA8ZNUnIvF7P6AwlKQ50FVC8hy8DiGrTLaG1Cipm3ceP3Xs3CsIcI yMttcDfljuHLE8aGT+qhpa6QXLsubUnLY/9Ef6wxbsNTiY3O3k2lPx3ivRiQDdqhfl0+ +ZNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=u6mIAO5QVaf4TCQcGW8z4fYMkkVhGY1BzFo4V5GOwGo=; b=L84ExiZkvysA7XCEq++glUyI5qr0vAZq1FRxoPaPvCE1Mc3si8fBk/ZWItFYb4jUIk IadyavHeFDmsUCOlplhzimHh10GdxsTw8ucKAxhMRX9E0+iuY2V84aDGUXD7WsPgP6ja wf8gyc5XhOiiZ1Lyj18qd12wipHiggZMfaWQNExeE0oLi0ZYRnrA9XrjYU5peyYe5z4g 6oASAtS5YgW6qVlB9CiHX6Uk8M5Eu5Lkzv2aRCd2FHD5YSAmkbIQp/96kg//ThDlyspD ZhUt+z8dDQtBofehB8AP9JlRxBkgLdl6caE7Qi6MdCxgjKHYqAyOsUK/E/dlbbQMoD5I m9EA== X-Gm-Message-State: AOAM532vV6ixmoUMOBgfk+GLqAD8zl2iAYyoOawpjw1STlQ5Fef7yVwt +O+EyaooMZ/MhrjY8hC+GnujuPU6sHE= X-Google-Smtp-Source: ABdhPJzI8+LamsBDofXOmGAIe2a5G27kdCUYf80o29ub8DvVFu8ez57N9NxUtTqwRGub4azyIzokhg== X-Received: by 2002:ac2:4da1:: with SMTP id h1mr1109490lfe.343.1602670554321; Wed, 14 Oct 2020 03:15:54 -0700 (PDT) Original-Received: from muffinmac (102-26-207-82.ip.ukrtel.net. [82.207.26.102]) by smtp.gmail.com with ESMTPSA id c26sm961727lfh.107.2020.10.14.03.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 03:15:53 -0700 (PDT) In-Reply-To: <20201013203639.GL60347@breton.holly.idiocy.org> (Alan Third's message of "Tue, 13 Oct 2020 21:36:39 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190497 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alan Third writes: > On Tue, Oct 13, 2020 at 10:57:11AM +0300, Andrii Kolomoiets wrote: >> Daniel Mart=C3=ADn writes: >>=20 >> >> +** On macOS, 's-' and 's- are now bound to >> >> +'move-beginning-of-line' and 'move-end-of-line' respectively. >> >> + >> > >> > Maybe we should say here that the former commands for these keys can >> > still be invoked via M-x ns-prev-frame and M-x ns-next-frame, >> > respectively. >>=20 >> Former commands can be invoked with 's-`' and 's-~'. Those are the >> common shortcuts in macOS. So maybe it is better to mention those keys >> instead of M-x? Though I'm not the experienced NEWS writer. > > Yes, I think that mentioning those keys is better. Done. See attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-NS-Make-s-left-right-to-move-to-beginning-end-of-lin.patch >From 52c5b246b010b06f62d656811cf3a772399f0c18 Mon Sep 17 00:00:00 2001 From: Andrii Kolomoiets Date: Mon, 12 Oct 2020 14:24:25 +0300 Subject: [PATCH] NS: Make s- to move to beginning/end of line * lisp/term/ns-win.el: Bind 's-' to 'move-beginning-of-line'; bind 's-' to 'move-end-of-line'. * etc/NEWS: Mention new bindings. --- etc/NEWS | 5 +++++ lisp/term/ns-win.el | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index cc8733c2c0..f6f4c2e057 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1683,6 +1683,11 @@ image API via 'M-x report-emacs-bug'. --- ** The user option 'make-pointer-invisible' is now honored on macOS. +-- +** On macOS, 's-' and 's- are now bound to +'move-beginning-of-line' and 'move-end-of-line' respectively. The former +commands to select previous/next frame are still bound to 's-~' and 's-`'. + ---------------------------------------------------------------------- This file is part of GNU Emacs. diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index cc7a3762b4..8273c067f8 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el @@ -148,9 +148,8 @@ global-map (define-key global-map [?\s-|] 'shell-command-on-region) (define-key global-map [s-kp-bar] 'shell-command-on-region) (define-key global-map [?\C-\s- ] 'ns-do-show-character-palette) -;; (as in Terminal.app) -(define-key global-map [s-right] 'ns-next-frame) -(define-key global-map [s-left] 'ns-prev-frame) +(define-key global-map [s-right] 'move-end-of-line) +(define-key global-map [s-left] 'move-beginning-of-line) (define-key global-map [home] 'beginning-of-buffer) (define-key global-map [end] 'end-of-buffer) -- 2.15.1 --=-=-=--