From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14742: 24.3.50; enhancement request: be able to prepend stuff from buffer when search backward Date: Fri, 05 Jul 2013 20:40:30 -0400 Message-ID: References: <4b9029ca-1775-482f-ba9a-46a891be7405@default> <87sj01c3n2.fsf@mail.jurta.org> <7518b30b-63d2-40ea-956f-a504f40c4cfd@default> <87haggoc6r.fsf@mail.jurta.org> <8ada7269-baa9-483f-9595-d46619393aa7@default> <87y59ok18k.fsf@mail.jurta.org> <6ae1046e-e6ae-43ae-96ff-064fd01c9ec2@default> <87k3l8ik77.fsf@mail.jurta.org> <87k3l79seh.fsf@mail.jurta.org> <9fa6642c-dbcb-47aa-a8a3-29ee892bd933@default> <87y59lc32c.fsf@mail.jurta.org> <877gh43ara.fsf@mail.jurta.org> <87ehbczje8.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373071269 17153 80.91.229.3 (6 Jul 2013 00:41:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jul 2013 00:41:09 +0000 (UTC) Cc: 14742@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 06 02:41:09 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UvGYm-0007v0-Ab for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jul 2013 02:41:08 +0200 Original-Received: from localhost ([::1]:57785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvGYl-0001KS-Ur for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 20:41:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvGYh-0001K7-Gp for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 20:41:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UvGYg-0004V0-NJ for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 20:41:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvGYg-0004Uu-Kf for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 20:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UvGYg-00073S-6A for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 20:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jul 2013 00:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14742 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14742-submit@debbugs.gnu.org id=B14742.137307123727049 (code B ref 14742); Sat, 06 Jul 2013 00:41:02 +0000 Original-Received: (at 14742) by debbugs.gnu.org; 6 Jul 2013 00:40:37 +0000 Original-Received: from localhost ([127.0.0.1]:33154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UvGYH-00072C-4N for submit@debbugs.gnu.org; Fri, 05 Jul 2013 20:40:37 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:56399) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UvGYD-000722-LF for 14742@debbugs.gnu.org; Fri, 05 Jul 2013 20:40:34 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r660eVOj019084; Fri, 5 Jul 2013 20:40:32 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C6126AE0C1; Fri, 5 Jul 2013 20:40:30 -0400 (EDT) In-Reply-To: <87ehbczje8.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 06 Jul 2013 02:17:35 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4630=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4630> : streams <994767> : uri <1468226> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75972 Archived-At: > then code for `isearch-allow-scroll' should be moved to a separate > function like `isearch-handle-scroll-function' too. That would be nice, as well, yes. > But still I don't understand how this would be possible to handle > outside of `isearch-other-meta-char', because this code changes the > local variables `key', `keylist', `main-event', `move-command' > locally bound in `isearch-other-meta-char'. AFAICT, `move-command' is not used by the rest of the code, so `setq'ing it is not needed. For the other three, I guess you could do something like + ((let ((hmf (isearch-handle-motion-function ))) + (when hmf (setq key (nth 0 hmf)) + (setq keylist (nth 1 hmf)) + (setq main-event (nth 2 hmf)) + (nth 3 hmf)))) It's not super elegant, but the reason is the messed up data-flow, so at least this formulation makes the mes more clear and self-evident. Hopefully someone will find a way to clean it up at some point. Stefan