GNU bug report logs - #4019
command to move point to #else (or #elif) in c-mode

Previous Next

Packages: emacs, cc-mode;

Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>

Date: Sun, 2 Aug 2009 18:30:07 UTC

Severity: wishlist

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Martín <mardani29 <at> yahoo.es>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 4019 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>, Dan Nicolaescu <dann <at> ics.uci.edu>
Subject: bug#4019: command to move point to #else (or #elif) in c-mode
Date: Sun, 10 Jul 2022 12:35:15 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> Hi Alan,
>
> Dan Nicolaescu <dann <at> ics.uci.edu> writes:
>
>> When looking at code with a lot of preprocessor conditionals, a lot of
>> times it is very useful when the point is at an #if to move it the
>> corresponding #else (or #elif) to check what is happening on the other
>> branch of the #if.  C-c C-p and C-c C-n are not very useful when you
>> have to deal with a lot of nested and not nested #if #else.
>
> This wishlist request was reported in 2009, but never got a reply.
>
> It seems to me that such a command would be useful but is still missing.

There are c-down-conditional-with-else and c-up-conditional-with-else,
which you can bind to a key if you use them frequently.




This bug report was last modified 2 years and 288 days ago.

Previous Next


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