From unknown Sun Jun 15 09:02:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20790: Add more S-SPC key bindings Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jun 2015 23:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20790 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20790@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143406587010549 (code B ref -1); Thu, 11 Jun 2015 23:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jun 2015 23:37:50 +0000 Received: from localhost ([127.0.0.1]:51118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3C2e-0002k4-QG for submit@debbugs.gnu.org; Thu, 11 Jun 2015 19:37:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55029) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3C2c-0002jr-Jp for submit@debbugs.gnu.org; Thu, 11 Jun 2015 19:37:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3C2W-0002bj-EK for submit@debbugs.gnu.org; Thu, 11 Jun 2015 19:37:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3C2W-0002bf-BO for submit@debbugs.gnu.org; Thu, 11 Jun 2015 19:37:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3C2V-0004N8-8H for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 19:37:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3C2R-0002bI-3v for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 19:37:39 -0400 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:51906 helo=homiemail-a15.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3C2Q-0002b1-UQ for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 19:37:35 -0400 Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 6D71376C07F for ; Thu, 11 Jun 2015 16:37:33 -0700 (PDT) Received: from localhost.linkov.net (m83-187-196-182.cust.tele2.ee [83.187.196.182]) (Authenticated sender: jurta@jurta.org) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id A019B76C079 for ; Thu, 11 Jun 2015 16:37:32 -0700 (PDT) From: Juri Linkov Organization: LINKOV.NET Date: Fri, 12 Jun 2015 02:36:21 +0300 Message-ID: <87fv5x24y2.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) After adding S-SPC to some modes in bug#2145 it's natural to expect S-SPC to be the reverse of SPC to move in opposite direction, but in modes where SPC moves point by one line, S-SPC unexpectedly moves back a full screen (because it uses the default binding scroll-down-command in special-mode). This patch binds S-SPC to line-oriented commands. diff --git a/lisp/dired.el b/lisp/dired.el index 02946e0..babdf35 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1541,7 +1541,8 @@ (defvar dired-mode-map (define-key map "<" 'dired-prev-dirline) (define-key map ">" 'dired-next-dirline) (define-key map "^" 'dired-up-directory) - (define-key map " " 'dired-next-line) + (define-key map " " 'dired-next-line) + (define-key map [?\S-\ ] 'dired-previous-line) (define-key map [remap next-line] 'dired-next-line) (define-key map [remap previous-line] 'dired-previous-line) ;; hiding diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index eb03a8b..87f1e05 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -271,6 +271,7 @@ (defvar vc-dir-mode-map (define-key map " " 'vc-dir-next-line) (define-key map "\t" 'vc-dir-next-directory) (define-key map "p" 'vc-dir-previous-line) + (define-key map [?\S-\ ] 'vc-dir-previous-line) (define-key map [backtab] 'vc-dir-previous-directory) ;;; Rebind paragraph-movement commands. (define-key map "\M-}" 'vc-dir-next-directory) diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 4df41b5..44d9a21 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el @@ -395,6 +395,7 @@ (defvar archive-mode-map (define-key map "o" 'archive-extract-other-window) (define-key map "p" 'archive-previous-line) (define-key map "\C-p" 'archive-previous-line) + (define-key map [?\S-\ ] 'archive-previous-line) (define-key map [up] 'archive-previous-line) (define-key map "r" 'archive-rename-entry) (define-key map "u" 'archive-unflag) diff --git a/lisp/proced.el b/lisp/proced.el index 69355ab..65bd243 100644 --- a/lisp/proced.el +++ b/lisp/proced.el @@ -463,6 +463,7 @@ (defvar proced-mode-map (define-key km "\C-n" 'next-line) (define-key km "\C-p" 'previous-line) (define-key km "\C-?" 'previous-line) + (define-key km [?\S-\ ] 'previous-line) (define-key km [down] 'next-line) (define-key km [up] 'previous-line) ;; marking From unknown Sun Jun 15 09:02:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Juri Linkov Subject: bug#20790: closed (Re: bug#20790: Add more S-SPC key bindings) Message-ID: References: <87si4buef4.fsf@mail.linkov.net> <87fv5x24y2.fsf@mail.linkov.net> X-Gnu-PR-Message: they-closed 20790 X-Gnu-PR-Package: emacs Reply-To: 20790@debbugs.gnu.org Date: Thu, 12 Nov 2015 20:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1447361762-1359-1" This is a multi-part message in MIME format... ------------=_1447361762-1359-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20790: Add more S-SPC key bindings which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20790@debbugs.gnu.org. --=20 20790: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20790 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1447361762-1359-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20790-done) by debbugs.gnu.org; 12 Nov 2015 20:55:08 +0000 Received: from localhost ([127.0.0.1]:35158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zwytg-0000Kn-45 for submit@debbugs.gnu.org; Thu, 12 Nov 2015 15:55:08 -0500 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:35971 helo=homiemail-a76.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zwyte-0000Kg-KC for 20790-done@debbugs.gnu.org; Thu, 12 Nov 2015 15:55:07 -0500 Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id 8C88F458081 for <20790-done@debbugs.gnu.org>; Thu, 12 Nov 2015 12:55:05 -0800 (PST) Received: from localhost.linkov.net (m83-191-160-148.cust.tele2.ee [83.191.160.148]) (Authenticated sender: jurta@jurta.org) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id DA256458080 for <20790-done@debbugs.gnu.org>; Thu, 12 Nov 2015 12:55:04 -0800 (PST) From: Juri Linkov To: 20790-done@debbugs.gnu.org Subject: Re: bug#20790: Add more S-SPC key bindings Organization: LINKOV.NET References: <87fv5x24y2.fsf@mail.linkov.net> Date: Thu, 12 Nov 2015 22:54:23 +0200 In-Reply-To: <87fv5x24y2.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 12 Jun 2015 02:36:21 +0300") Message-ID: <87si4buef4.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20790-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > After adding S-SPC to some modes in bug#2145 > it's natural to expect S-SPC to be the reverse of SPC > to move in opposite direction, but in modes where SPC > moves point by one line, S-SPC unexpectedly moves back > a full screen (because it uses the default binding > scroll-down-command in special-mode). This patch > binds S-SPC to line-oriented commands. Pushed. ------------=_1447361762-1359-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Jun 2015 23:37:50 +0000 Received: from localhost ([127.0.0.1]:51118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3C2e-0002k4-QG for submit@debbugs.gnu.org; Thu, 11 Jun 2015 19:37:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55029) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3C2c-0002jr-Jp for submit@debbugs.gnu.org; Thu, 11 Jun 2015 19:37:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3C2W-0002bj-EK for submit@debbugs.gnu.org; Thu, 11 Jun 2015 19:37:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3C2W-0002bf-BO for submit@debbugs.gnu.org; Thu, 11 Jun 2015 19:37:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3C2V-0004N8-8H for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 19:37:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3C2R-0002bI-3v for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 19:37:39 -0400 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:51906 helo=homiemail-a15.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3C2Q-0002b1-UQ for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 19:37:35 -0400 Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 6D71376C07F for ; Thu, 11 Jun 2015 16:37:33 -0700 (PDT) Received: from localhost.linkov.net (m83-187-196-182.cust.tele2.ee [83.187.196.182]) (Authenticated sender: jurta@jurta.org) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id A019B76C079 for ; Thu, 11 Jun 2015 16:37:32 -0700 (PDT) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Add more S-SPC key bindings Organization: LINKOV.NET Date: Fri, 12 Jun 2015 02:36:21 +0300 Message-ID: <87fv5x24y2.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) After adding S-SPC to some modes in bug#2145 it's natural to expect S-SPC to be the reverse of SPC to move in opposite direction, but in modes where SPC moves point by one line, S-SPC unexpectedly moves back a full screen (because it uses the default binding scroll-down-command in special-mode). This patch binds S-SPC to line-oriented commands. diff --git a/lisp/dired.el b/lisp/dired.el index 02946e0..babdf35 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1541,7 +1541,8 @@ (defvar dired-mode-map (define-key map "<" 'dired-prev-dirline) (define-key map ">" 'dired-next-dirline) (define-key map "^" 'dired-up-directory) - (define-key map " " 'dired-next-line) + (define-key map " " 'dired-next-line) + (define-key map [?\S-\ ] 'dired-previous-line) (define-key map [remap next-line] 'dired-next-line) (define-key map [remap previous-line] 'dired-previous-line) ;; hiding diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index eb03a8b..87f1e05 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -271,6 +271,7 @@ (defvar vc-dir-mode-map (define-key map " " 'vc-dir-next-line) (define-key map "\t" 'vc-dir-next-directory) (define-key map "p" 'vc-dir-previous-line) + (define-key map [?\S-\ ] 'vc-dir-previous-line) (define-key map [backtab] 'vc-dir-previous-directory) ;;; Rebind paragraph-movement commands. (define-key map "\M-}" 'vc-dir-next-directory) diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 4df41b5..44d9a21 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el @@ -395,6 +395,7 @@ (defvar archive-mode-map (define-key map "o" 'archive-extract-other-window) (define-key map "p" 'archive-previous-line) (define-key map "\C-p" 'archive-previous-line) + (define-key map [?\S-\ ] 'archive-previous-line) (define-key map [up] 'archive-previous-line) (define-key map "r" 'archive-rename-entry) (define-key map "u" 'archive-unflag) diff --git a/lisp/proced.el b/lisp/proced.el index 69355ab..65bd243 100644 --- a/lisp/proced.el +++ b/lisp/proced.el @@ -463,6 +463,7 @@ (defvar proced-mode-map (define-key km "\C-n" 'next-line) (define-key km "\C-p" 'previous-line) (define-key km "\C-?" 'previous-line) + (define-key km [?\S-\ ] 'previous-line) (define-key km [down] 'next-line) (define-key km [up] 'previous-line) ;; marking ------------=_1447361762-1359-1--