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: make smerge-mode move the point? Date: Sun, 13 Jan 2008 16:55:28 -0500 Message-ID: References: <200801132014.m0DKEito029530@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200261720 16511 80.91.229.12 (13 Jan 2008 22:02:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2008 22:02:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 13 23:02:23 2008 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.50) id 1JEAuN-00073l-5C for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2008 23:02:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEAtz-0003HE-7j for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2008 17:01:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEAtv-0003H9-Sp for emacs-devel@gnu.org; Sun, 13 Jan 2008 17:01:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEAtu-0003Gx-EX for emacs-devel@gnu.org; Sun, 13 Jan 2008 17:01:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEAtu-0003Gu-AQ for emacs-devel@gnu.org; Sun, 13 Jan 2008 17:01:54 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEAtt-0004jI-TJ for emacs-devel@gnu.org; Sun, 13 Jan 2008 17:01:54 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAK4YikfO+KVp/2dsb2JhbACmdn0 X-IronPort-AV: E=Sophos;i="4.24,279,1196658000"; d="scan'208";a="12618209" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 13 Jan 2008 17:01:53 -0500 Original-Received: from ceviche.home ([206.248.165.105]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id TXO14053 for ; Sun, 13 Jan 2008 17:01:53 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 37D2AB4052; Sun, 13 Jan 2008 16:55:28 -0500 (EST) In-Reply-To: <200801132014.m0DKEito029530@oogie-boogie.ics.uci.edu> (Dan Nicolaescu's message of "Sun, 13 Jan 2008 12:14:39 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.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:86851 Archived-At: > Wouldn't it be better if smerge-mode moved the point to the first > conflict marker? > Resolving conflicts is the reason this mode gets turned on, so it would > be nicer for the user if it would move the point to the first conflict. > It would be one less action to do, and it would make it easier to see > there's a conflict. I think it would be wrong for the `smerge-mode' command to move point. (De)activating such a minor mode shouldn't move point. OTOH when smerge-mode gets enabled in response to a VC action, it probably makes sense to move point, indeed. So I suggest to add a new command that activates smerge-mode and moves to the first conflict (and probably run a hook where the user can place things like smerge-resolve-all). Stefan