From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#15839: 24.3.50; `isearch-allow-scroll': be able to scroll point off screen temporarily Date: Fri, 30 Nov 2018 07:33:40 -0800 (PST) Message-ID: <90b5abf1-8203-4a50-877c-04070376c52a@default> 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>> <<83lg5bc9d6.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543592305 10009 195.159.176.226 (30 Nov 2018 15:38:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2018 15:38:25 +0000 (UTC) Cc: 15839@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 16:38:21 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 1gSks0-0002Vp-S9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2018 16:38:21 +0100 Original-Received: from localhost ([::1]:33397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSku7-00055T-9t for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2018 10:40:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSknr-00077P-2G for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2018 10:34:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSknq-0002rm-4m for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2018 10:34:02 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52324) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSknp-0002qp-TK for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2018 10:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gSknp-0008VK-Lr for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2018 10:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Nov 2018 15:34: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.154359203132669 (code B ref 15839); Fri, 30 Nov 2018 15:34:01 +0000 Original-Received: (at 15839) by debbugs.gnu.org; 30 Nov 2018 15:33:51 +0000 Original-Received: from localhost ([127.0.0.1]:56582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSknf-0008Ur-JW for submit@debbugs.gnu.org; Fri, 30 Nov 2018 10:33:51 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:53814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSknd-0008Ud-I9 for 15839@debbugs.gnu.org; Fri, 30 Nov 2018 10:33:50 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wAUFTV8m036077; Fri, 30 Nov 2018 15:33:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=kiOLWQsWGpFl/0cVU27GbVl91zCU+izth9l+ShBhnwQ=; b=q1AAwTAEmow6k9U2KpXpJWRyyYexloMh+TbYcpKzuB9pJ6dk/WDOamskQ7x4vO1ROxQC zzNeEefwXsFybKzcp4pRPi2K7JAAOmDPwy+lz9BAnKpDfG5UtGj1D/Y+GTc+5N2BqZml 6AXyUYYO2N66SlzOnTNmT/BvaglEkmMpVxMuaAQ7SjgYJT2qTXntO3M60JjEoiBUVss/ MjxVoi2riZYnnz4mocP1U+tyj4JJCP7mLkHzBuH4GHlH08wnXwlEIb6PFzE6ZI04oCg9 vAeWqZ/C79Hu+MF1eSWylkDmZ9gmBcvWrFrJGpdfHVP7aSus7ui/N/OPQ9j+5f5T2hfe mg== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2nxxkqxw4d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Nov 2018 15:33:43 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wAUFXgJB012125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Nov 2018 15:33:42 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wAUFXfdI008559; Fri, 30 Nov 2018 15:33:41 GMT In-Reply-To: <<83lg5bc9d6.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9092 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=818 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811300132 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:152937 Archived-At: > > > "If non-nil, scrolling commands can be used in Isearch mode. > > > However, the current match can't scroll offscreen if the value is > > > t. > > > But if it's `unlimited', the current match can scroll offscreen. > > > You may want to enable `lazy-highlight-buffer' in this case. > > > If nil, scrolling commands will cancel Isearch mode." > > > > > > If you don't agree, please suggest a better wording. > > > > I prefer the standard approach: say first what the default > > (nil) does. Then say what non-nil does. >=20 > I disagree that this should be a guideline. I should have said "a more typical approach". > The following two variants are equivalently good documentation, IMO: >=20 > Variant 1: >=20 > "If non-nil, scrolling commands can be used in Isearch mode. > If nil, the default, scrolling commands will cancel Isearch mode. >=20 > If the value is t, the current match cannot be scrolled off-screen, > but that limitation is removed if the value is `unlimited'. > You may want to enable `lazy-highlight-buffer' in this case." >=20 > Variant 2: >=20 > "If nil, the default, scrolling commands will cancel Isearch mode. > If non-nil, scrolling commands can be used in Isearch mode. >=20 > If the value is t, the current match cannot be scrolled off-screen, > but that limitation is removed if the value is `unlimited'. > You may want to enable `lazy-highlight-buffer' in this case." >=20 > And I think I slightly prefer the first one. Note that I rephrased > the last part. Yes, both of those variants are also clear. In any case, the fact that nil is the default should be stated clearly, and the nil and non-nil cases should be stated up front. That different non-nil cases exist comes afterward, so it is clear that they have a common non-nil behavior. I think it's can sometimes be clearer to put all of the description(s) of non-nil behavior together, but it's not a requirement for a clear description. Describing the general nil vs non-nil together is usually helpful, I think, before mentioning any particular non-nil behavior (unless it is the default).