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: occur patch Date: Sun, 14 Nov 2010 22:19:03 +0000 Organization: JURTA Message-ID: <874obj8s6g.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289773440 22066 80.91.229.12 (14 Nov 2010 22:24:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Nov 2010 22:24:00 +0000 (UTC) Cc: Nathaniel Flath , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 14 23:23:55 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PHkzJ-0005Rr-Qp for ged-emacs-devel@m.gmane.org; Sun, 14 Nov 2010 23:23:53 +0100 Original-Received: from localhost ([127.0.0.1]:39045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHkzJ-0003qD-34 for ged-emacs-devel@m.gmane.org; Sun, 14 Nov 2010 17:23:53 -0500 Original-Received: from [140.186.70.92] (port=57453 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHkzF-0003q8-AE for emacs-devel@gnu.org; Sun, 14 Nov 2010 17:23:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHkzE-0002fD-3S for emacs-devel@gnu.org; Sun, 14 Nov 2010 17:23:49 -0500 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:42140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHkzD-0002f9-RE for emacs-devel@gnu.org; Sun, 14 Nov 2010 17:23:48 -0500 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 499C86E8056; Sun, 14 Nov 2010 14:23:47 -0800 (PST) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 031FA451C036; Sun, 14 Nov 2010 14:23:43 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Thu, 11 Nov 2010 15:10:58 -0500") 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132621 Archived-At: >> I found it useful to have occur default to the current word instead of >> the last regexp, so I modified replace.el to support this. The patch >> is below, if it should be installed into emacs itself - let me know of >> any issues. > > I think a better solution than a config var is to provide both values. > So a single M-n chooses one and a second M-n chooses the other. And this is what occur already does now. Maybe the order of these M-n values should be configurable?