From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: `isearch-allow-scroll' - a misnomer and a bad design Date: Sat, 10 Sep 2011 14:47:08 +0300 Organization: JURTA Message-ID: <8762l0aabn.fsf@mail.jurta.org> References: <20110909215255.GD2733@acm.acm> <7002A9DA9A804F0B9F6F251FD3A2B263@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315655330 19511 80.91.229.12 (10 Sep 2011 11:48:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2011 11:48:50 +0000 (UTC) Cc: 'Alan Mackenzie' , 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:48:45 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 1R2M3A-0008Si-Cg for ged-emacs-devel@m.gmane.org; Sat, 10 Sep 2011 13:48:44 +0200 Original-Received: from localhost ([::1]:37107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2M39-0000mA-Qe for ged-emacs-devel@m.gmane.org; Sat, 10 Sep 2011 07:48:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2M37-0000m5-RW for emacs-devel@gnu.org; Sat, 10 Sep 2011 07:48:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2M36-0003Aj-Ss for emacs-devel@gnu.org; Sat, 10 Sep 2011 07:48:41 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:57219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2M36-0003Af-N3 for emacs-devel@gnu.org; Sat, 10 Sep 2011 07:48:40 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 0992C6E808B; Sat, 10 Sep 2011 04:48:39 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id BC694451C474; Sat, 10 Sep 2011 04:48:37 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 09 Sep 2011 20:58:42 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.113.175.8 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:143845 Archived-At: > 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. I think this would be the best thing to do. And to add a new property that doesn't exit Isearch regardless of the value of `isearch-allow-scroll'. And put it on all universal argument commands `universal-argument', `negative-argument', `digit-argument', i.e.: ;; Universal argument commands (put 'universal-argument 'isearch-inhibit-exit t) (put 'negative-argument 'isearch-inhibit-exit t) (put 'digit-argument 'isearch-inhibit-exit t) that will do TRT by default for commands unrelated to scrolling.