0

If I recall correctly I was able to view the C indentation rules applied for indenting the line at point.

After searching the manual for a while I still can not find the command for it. Obviously I'm missing the proper key words for my search.

Can you tell me how what the name of this command is?

  • Are you looking for the level of indentation at point (the function current-column), or are you looking for the function that determines the indentation (stored in the variable indent-line-function)? – Dan Feb 9 '16 at 13:48
  • I vaguely remember that this command informed me about something like: this line is indented due to "defun-open-intro" with value + or ++ or something. – Dimitri Schachmann Feb 9 '16 at 13:53
-1

Found it myself: M-x c-set-offset or C-c C-o.

(c-set-offset SYMBOL OFFSET &optional IGNORED)

Change the value of a syntactic element symbol in `c-offsets-alist'. SYMBOL is the syntactic element symbol to change and OFFSET is the new offset for that syntactic element.

Called interactively, it proposes for SYMBOL the one applying on current line and so we can see what syntactic element governing its indentation the line belongs to.

  • Wouldn't you want M-x c-show-syntactic-information or C-c C-s? Note this stuff is cc-mode specific. – npostavs Feb 9 '16 at 20:23
  • Yeah, this also does what I want. c-set-offset is of course rather for customizing the offset. – Dimitri Schachmann Feb 9 '16 at 20:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.