From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: occur patch Date: Thu, 11 Nov 2010 15:10:58 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289506337 12038 80.91.229.12 (11 Nov 2010 20:12:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2010 20:12:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nathaniel Flath Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 11 21:12:13 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 1PGdVF-00008W-Ib for ged-emacs-devel@m.gmane.org; Thu, 11 Nov 2010 21:12:13 +0100 Original-Received: from localhost ([127.0.0.1]:35217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGdVE-0007Hv-St for ged-emacs-devel@m.gmane.org; Thu, 11 Nov 2010 15:12:12 -0500 Original-Received: from [140.186.70.92] (port=40283 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGdU5-0006e8-7P for emacs-devel@gnu.org; Thu, 11 Nov 2010 15:11:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGdU3-00020G-Um for emacs-devel@gnu.org; Thu, 11 Nov 2010 15:11:00 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:9025 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGdU3-0001zz-SK for emacs-devel@gnu.org; Thu, 11 Nov 2010 15:10:59 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiEHADXc20xMCpqE/2dsb2JhbAChTXpywj6FSgSEWo1f X-IronPort-AV: E=Sophos;i="4.59,184,1288584000"; d="scan'208";a="82264948" Original-Received: from 76-10-154-132.dsl.teksavvy.com (HELO pastel.home) ([76.10.154.132]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 11 Nov 2010 15:10:59 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A6D9CA86F1; Thu, 11 Nov 2010 15:10:58 -0500 (EST) In-Reply-To: (Nathaniel Flath's message of "Wed, 10 Nov 2010 20:44:39 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:132552 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. Stefan