From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: `isearch-allow-scroll' - a misnomer and a bad design Date: Sat, 10 Sep 2011 11:28:56 +0000 Message-ID: <20110910112856.GB2460@acm.acm> References: <20110909215255.GD2733@acm.acm> <7002A9DA9A804F0B9F6F251FD3A2B263@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1315654372 14516 80.91.229.12 (10 Sep 2011 11:32:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2011 11:32:52 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 10 13:32:48 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2Lnk-0002Ng-Ez for ged-emacs-devel@m.gmane.org; Sat, 10 Sep 2011 13:32:48 +0200 Original-Received: from localhost ([::1]:52154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2Lnk-0007AG-1x for ged-emacs-devel@m.gmane.org; Sat, 10 Sep 2011 07:32:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2Lnh-0007AB-ND for emacs-devel@gnu.org; Sat, 10 Sep 2011 07:32:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2Lng-0000t4-Nz for emacs-devel@gnu.org; Sat, 10 Sep 2011 07:32:45 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:29194 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2Lng-0000sy-9Q for emacs-devel@gnu.org; Sat, 10 Sep 2011 07:32:44 -0400 Original-Received: (qmail 26747 invoked by uid 3782); 10 Sep 2011 11:32:42 -0000 Original-Received: from acm.muc.de (pD9556A07.dip.t-dialin.net [217.85.106.7]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 10 Sep 2011 13:32:40 +0200 Original-Received: (qmail 2970 invoked by uid 1000); 10 Sep 2011 11:28:56 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143844 Archived-At: Hi, Stefan. On Fri, Sep 09, 2011 at 08:58:42PM -0400, Stefan Monnier wrote: > > I meant that it is not _necessarily_ about scrolling. I understand that that > > was the original motivation, and it remains an important use case (for people > > who want scrolling). > Actually, it's more than that: its intention is about scrolling. > You can abuse it, but some people like pass-through for some set of > commands but not for others, so isearch-allow-scroll is meant to control > that for scrolling commands. > We all agree that the fact that C-u got folded into it is definitely > a misfeature in this respect. I do not agree with this. ;-) The prefix arg is an essential part of the command with which one might exit isearch. > Maybe what you want is a new option `isearch-pass-through-categories', > which would be a list of symbol properties, so any command who has > a non-nil value for one of those properties is allowed to run without > exiting isearch. > Then `scroll-command' becomes one possible element of > isearch-pass-through-categories. > > It is true, AFAICT. Nothing prevents you from putting property > > `isearch-scroll' on *any* command, to get Isearch to pass through > > to it. > But you still only have one boolean value to control what commands to > pass through. This isn't quite true either. The current isearch-scroll property must be t (not merely non-nil) at the moment. This leaves other non-nil values to specify other behaviour. This was deliberate. > So what would you name this boolean option? > `isearch-a-few-more-commands-run-within-isearch'? What if people want > pass-through for scrolling commands but not for your new command? > Stefan -- Alan Mackenzie (Nuremberg, Germany).