From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#10899: 24.0.93; c-forward-conditional should not move the mark Date: Mon, 27 Feb 2012 21:59:45 +0100 Message-ID: References: <83haycdnqt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330376507 14045 80.91.229.3 (27 Feb 2012 21:01:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 21:01:47 +0000 (UTC) Cc: 10899@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 22:01:46 2012 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 1S27hZ-0004P9-3P for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 22:01:45 +0100 Original-Received: from localhost ([::1]:49419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S27hY-0003WV-NC for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 16:01:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S27hT-0003WK-Ad for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 16:01:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S27hS-00020P-9p for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 16:01:39 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S27hF-0001wZ-0E; Mon, 27 Feb 2012 16:01:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S27jm-0000ve-An; Mon, 27 Feb 2012 16:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 27 Feb 2012 21:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10899 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 10899-submit@debbugs.gnu.org id=B10899.13303765973509 (code B ref 10899); Mon, 27 Feb 2012 21:04:02 +0000 Original-Received: (at 10899) by debbugs.gnu.org; 27 Feb 2012 21:03:17 +0000 Original-Received: from localhost ([127.0.0.1]:60237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S27ix-0000u9-Hx for submit@debbugs.gnu.org; Mon, 27 Feb 2012 16:03:17 -0500 Original-Received: from mail-tul01m020-f172.google.com ([209.85.214.172]:44279) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S27ig-0000tY-A6 for 10899@debbugs.gnu.org; Mon, 27 Feb 2012 16:03:00 -0500 Original-Received: by obbeh20 with SMTP id eh20so1646403obb.3 for <10899@debbugs.gnu.org>; Mon, 27 Feb 2012 12:59:45 -0800 (PST) Received-SPF: pass (google.com: domain of dmoncayo@gmail.com designates 10.182.149.71 as permitted sender) client-ip=10.182.149.71; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dmoncayo@gmail.com designates 10.182.149.71 as permitted sender) smtp.mail=dmoncayo@gmail.com; dkim=pass header.i=dmoncayo@gmail.com Original-Received: from mr.google.com ([10.182.149.71]) by 10.182.149.71 with SMTP id ty7mr5604601obb.70.1330376385934 (num_hops = 1); Mon, 27 Feb 2012 12:59:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=UQSvxR4pzRunHhgG2M4B7/MQuZBLeBehhDNe6ZoC6DY=; b=jLZaf4Lbc0k6NJxpdoERF7YbILndMgB5qxgapcdZiawcePoN5WruOPL4Y9k26YMURG 41sWdqZ+25g8AQKeJRwqcFTP74hha8eE45e4TNac5I4YERMc8ebJdj40MqobPk3WY9h8 +oQZmwkcaO0TLJFgVbdyRoBapRo1yOffKKNUU= Original-Received: by 10.182.149.71 with SMTP id ty7mr4990373obb.70.1330376385881; Mon, 27 Feb 2012 12:59:45 -0800 (PST) Original-Received: by 10.60.42.193 with HTTP; Mon, 27 Feb 2012 12:59:45 -0800 (PST) In-Reply-To: <83haycdnqt.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:57332 Archived-At: >> What does "leaving mark behind" mean exactly here? =A0It seem to mean >> "setting the mark at point, and then moving the point". =A0At least it >> is the behavior I observe. > > What else could it possibly mean? I don't know, but "to leave X behind" does not imply to move "X" from its original position. So this wording seems confusing to me. >> But this behavior is undesirable (IMO - this is a movement command. >> whats the point of setting the mark here?) > > A conditional could, and frequently does, enclose a large portion of > the code. =A0Leaving the mark where you were lets you get back there > with "C-x C-x", obviously, which is a convenience. =A0In general, Emacs > commands that could potentially move a long way leave the mark behind. > >> and inconsistent with analogous movement commands such as >> `forward-list'. > > There's no need for consistency in all movement commands. =A0In > particular, those that generally move short distances need not behave > the same as the other kind. > Consistency is a good design principle to follow, unless there is good reason not to. And frankly, I don't see a good reason here. > And you have "C-u C-c C-n" to do what you want. And if "C-c C-n" didn't set the mark, you would have "C-SPC C-c C-n" to do what you want. --=20 Dani Moncayo