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 23:48:29 +0300 Message-ID: References: <20201013203639.GL60347@breton.holly.idiocy.org> <20201014202406.GN60347@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="34218"; 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 22:49:12 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 1kSnhv-0008o1-FX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 22:49:11 +0200 Original-Received: from localhost ([::1]:46202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSnhu-0001HJ-Cm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 16:49:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSnhm-0001H8-0A for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 16:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSnhl-0004Bo-MC for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 16:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSnhl-000850-Kz for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 16:49:01 -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 20:49:01 +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.160270852131023 (code B ref 43948); Wed, 14 Oct 2020 20:49:01 +0000 Original-Received: (at 43948) by debbugs.gnu.org; 14 Oct 2020 20:48:41 +0000 Original-Received: from localhost ([127.0.0.1]:53150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSnhQ-00084J-Uo for submit@debbugs.gnu.org; Wed, 14 Oct 2020 16:48:41 -0400 Original-Received: from mail-lf1-f49.google.com ([209.85.167.49]:40711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSnhP-000845-3R for 43948@debbugs.gnu.org; Wed, 14 Oct 2020 16:48:40 -0400 Original-Received: by mail-lf1-f49.google.com with SMTP id a9so981695lfc.7 for <43948@debbugs.gnu.org>; Wed, 14 Oct 2020 13:48:38 -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=lchoFlflJ1qWxVu5YfsLjsEaaT1MgP0lgyUl+9TTWi4=; b=Iaht2E8TwjnrzNbRzzonap6lPcDuS56OC9CnYn4+HximwZISLqRigxHcA4HvsnwHIW 39IDe0aUY6VFLIX3Qkoppccx1084qn+AQ8iZ4ijMo4Oo67oEGcP71UfZhBUdqhiimiLj 4zGkBGMjc5rKU/dt2BFBN3AB9AKXsNA0HC3mJw2CT69EJFMWDpGPlKPKZF7rEG+Trsdd 1+6WoVEPc3fJTk3tnnLT4gNRD6Un153lRlglBazp4lGSugKYqsI15NtfBWkg9bsBeCzM sPp5j7SAqGzoO4/BEjWmtKg1rNjrqwQJhkgU2RzVZxvDli93imaDke4sW5WP28pitRas H/tw== 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=lchoFlflJ1qWxVu5YfsLjsEaaT1MgP0lgyUl+9TTWi4=; b=NyOjA+1Px2u7A1/AQ55Uop+U+4Jn2ue+S9d/GWA8FWv1D7Iq/1l10PT/IuINWR6j7R myvYhOIZUYHjXsnwAOSuf6NoC0qq/GXbtFcUnRGU7u00ZsbjOXQbQGqbQu2zCuiJWA2m NI159UiX1/Fo77dPFgeK9gwDkqkYtupMuLyIaM6Ga4xFoMCrlU5l59nqw6XP/LXlta66 T2PSlsqrfCZs5+ZcZ0emiedZYQoCbuXRunfG2tc/UKmAZlTyimR5GFvU4S0HSGt2Pfqf jXXS+TPDlxBnMRDnBzlxfRGyQiHbxthjYD4J1D18YdN0Xy2G9TEUrVorcTQnzE5RzBtZ IUiQ== X-Gm-Message-State: AOAM530Wlk083VOJ0GoIgoIijtHh9bP+2D6rX8WUm8sU9ZwNew65gW50 xLuyGsHbhLAoaFGz5uVqkJGaXCgGDT8= X-Google-Smtp-Source: ABdhPJzkOB7J9hi0n2sQm2fddZ8WON9Sr7dYWLNGFvpgRT5Z2R25u9kZslLY9+EILir4YOybeZqfAw== X-Received: by 2002:a19:ee16:: with SMTP id g22mr297780lfb.443.1602708511724; Wed, 14 Oct 2020 13:48:31 -0700 (PDT) Original-Received: from muffinmac ([91.206.110.168]) by smtp.gmail.com with ESMTPSA id c17sm156888lfi.35.2020.10.14.13.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 13:48:30 -0700 (PDT) In-Reply-To: <20201014202406.GN60347@breton.holly.idiocy.org> (Alan Third's message of "Wed, 14 Oct 2020 21:24:06 +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:190525 Archived-At: --=-=-= Content-Type: text/plain Alan Third writes: >> +** On macOS, 's-' and 's- are now bound to > ^ > Missing quote. Fixed. Smells like bug report for electric-pair-mode to pair "'" in text-mode :) > >> +'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-`'. > > I don't think you need the word "former" here. Other than that, LGTM. And fixed. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-NS-Make-s-left-right-to-move-to-beginning-end-of-lin.patch >From edb8467d3884067f88c2349cb30bd38a6a3d40b9 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..8cb9ecc102 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 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 --=-=-=--