GNU bug report logs - #10899
24.0.93; c-forward-conditional should not move the mark

Previous Next

Packages: cc-mode, emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Mon, 27 Feb 2012 19:10:02 UTC

Severity: minor

Found in version 24.0.93

Full log


Message #8 received at 10899 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: 10899 <at> debbugs.gnu.org
Subject: Re: bug#10899: 24.0.93; c-forward-conditional should not move the mark
Date: Mon, 27 Feb 2012 20:29:55 +0100
> Recipe from "emacs -Q":
> 1. Visit the attached file.
> 2. Type: C-SPC C-c C-n C-c C-n
>
> --> Expected result: the region covers the two "#ifdef" preprocessor
> conditionals.
> --> Observed result: it covers only the second one, because the mark
> has moved when I typed the second "C-c C-n".

I didn't read the docstring of the function, which says:

  Move forward across a preprocessor conditional, leaving mark behind.
  A prefix argument acts as a repeat count.  With a negative argument,
  move backward across a preprocessor conditional.

What does "leaving mark behind" mean exactly here?  It seem to mean
"setting the mark at point, and then moving the point".  At least it
is the behavior I observe.

But this behavior is undesirable (IMO - this is a movement command.
whats the point of setting the mark here?), and inconsistent with
analogous movement commands such as `forward-list'.


-- 
Dani Moncayo




This bug report was last modified 4 years and 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.