From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#15839: 24.3.50; `isearch-allow-scroll': be able to scroll point off screen temporarily Date: Mon, 10 Dec 2018 02:21:51 +0200 Organization: LINKOV.NET Message-ID: <87efaqi5mw.fsf@mail.linkov.net> References: <51df60b6-e152-4989-a27e-70dadb9b7474@default> <8736rqgk6f.fsf@mail.linkov.net> <87y39gexdo.fsf@mail.linkov.net> <877egzmmyk.fsf@mail.linkov.net> <8af20443-841d-4211-99ae-269e042a9a33@default> <875zwidonq.fsf@mail.linkov.net> <178ca8ac-fb45-4cef-a48d-d916a60860be@default> <87a7lsu7rn.fsf@mail.linkov.net> <24e8fff5-67d8-49ac-801e-1e5f49d2037f@default> <875zwfed5h.fsf@mail.linkov.net> <5a6a3254-f742-44e9-a498-b6d5a375a873@default> <87va4ai16x.fsf@mail.linkov.net> <87zhtk164k.fsf@web.de> <87woon33bp.fsf@mail.linkov.net> <87mupij1g0.fsf@web.de> <87o99y5kbp.fsf@mail.linkov.net> <87o99xbjaf.fsf@web.de> <87k1kj1sh9.fsf@mail.linkov.net> <8736r7a4er.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1544402171 16171 195.159.176.226 (10 Dec 2018 00:36:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2018 00:36:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 15839@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 10 01:36:07 2018 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 1gW9YM-00047I-RT for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Dec 2018 01:36:07 +0100 Original-Received: from localhost ([::1]:57789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW9aT-0001B0-EC for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 19:38:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gW9aH-0001AH-CF for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 19:38:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gW9aE-0004AC-7t for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 19:38:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36221) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gW9aE-00049s-1e for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 19:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gW9aD-0004do-Tm for bug-gnu-emacs@gnu.org; Sun, 09 Dec 2018 19:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Dec 2018 00:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15839-submit@debbugs.gnu.org id=B15839.154440225117777 (code B ref 15839); Mon, 10 Dec 2018 00:38:01 +0000 Original-Received: (at 15839) by debbugs.gnu.org; 10 Dec 2018 00:37:31 +0000 Original-Received: from localhost ([127.0.0.1]:40467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW9Zi-0004cY-Ju for submit@debbugs.gnu.org; Sun, 09 Dec 2018 19:37:30 -0500 Original-Received: from cichlid.maple.relay.mailchannels.net ([23.83.214.36]:54910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gW9Zg-0004cD-SO for 15839@debbugs.gnu.org; Sun, 09 Dec 2018 19:37:29 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 458705C6A7F; Mon, 10 Dec 2018 00:37:27 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a47.g.dreamhost.com (unknown [100.96.36.160]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id ECA535C5B26; Mon, 10 Dec 2018 00:37:26 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a47.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Mon, 10 Dec 2018 00:37:27 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-White-Shoe: 0ed7668f76fd80c1_1544402247111_3364455303 X-MC-Loop-Signature: 1544402247111:3807311957 X-MC-Ingress-Time: 1544402247111 Original-Received: from pdx1-sub0-mail-a47.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a47.g.dreamhost.com (Postfix) with ESMTP id 9620C805B4; Sun, 9 Dec 2018 16:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=Ip2Ma8fi4yQ9shi9UFGvprjAcg8=; b= l4TX+hOhrFtqdpoX6yNORZoPIoVHl5PMKI4nAgmo1BSYVQj9f+0ak9PLWXp7RM5r VKXUBzdGB1XLEEpJvOrHNZdUTAJsM5yaa5Ez+x80Lzj5pbYXmWk75tWbhIFOjA9x zdT0B0ammy04iiNHs/mB0sZf41tRfhlXfX+OcAJgskY= Original-Received: from mail.jurta.org (m91-129-96-177.cust.tele2.ee [91.129.96.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a47.g.dreamhost.com (Postfix) with ESMTPSA id 85D6C805AE; Sun, 9 Dec 2018 16:37:23 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a47 In-Reply-To: <8736r7a4er.fsf@web.de> (Michael Heerdegen's message of "Sun, 09 Dec 2018 02:13:16 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudeggedgvdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdeliedrudejjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrudejjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseifvggsrdguvgenucevlhhushhtvghrufhiiigvpedu 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:153281 Archived-At: >> > This isearch-yank-on-move -> 'shift thing is a difficult matter. >> > I'm not sure any more if it's a good idea. It's confusing if I get >> > a different behavior depending on the current major mode. As a user >> > I would rather expect that the rule would be that Isearch would test >> > any shift binding to see what the binding without shift is doing, >> > and invoke that if it is a moving command. >> >> This is what this-command-keys-shift-translated was intended to do >> together with ^ in interactive spec. > > I don't follow. If a shifted key, like shift-left, is bound, there is > no shift translation happening. So your code doesn't kick in because > your condition isn't met, instead of calling the binding of the > unshifted key (left in my example). The problem is that some commands that are called with shift-key are unsuitable for isearch, e.g. S-M-< (beginning-of-buffer) should not put all text from the beginning of the buffer to the search string. It seems we can't detect such commands automatically, so one way to support a command is to put a property with the patch that I sent recently, e.g. (put 'backward-char 'isearch-move 'enabled) (put 'forward-char 'isearch-move 'enabled)