Function: hs-c-like-adjust-block-beginning

hs-c-like-adjust-block-beginning is a byte-compiled function defined in hideshow.el.gz.

This function is obsolete since 31.1; Use hs-adjust-block-beginning-function instead.

Signature

(hs-c-like-adjust-block-beginning INITIAL)

Documentation

Adjust INITIAL, the buffer position after hs-block-start-regexp.

Actually, point is never moved; a new position is returned that is the end of the C-function header. This adjustment function is meant to be assigned to hs-adjust-block-beginning-function for C-like modes.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
;; This function is not used anymore (Bug#700).
(defun hs-c-like-adjust-block-beginning (initial)
  "Adjust INITIAL, the buffer position after `hs-block-start-regexp'.
Actually, point is never moved; a new position is returned that is
the end of the C-function header.  This adjustment function is meant
to be assigned to `hs-adjust-block-beginning-function' for C-like modes."
  (declare (obsolete "Use `hs-adjust-block-beginning-function' instead." "31.1"))
  (save-excursion
    (goto-char (1- initial))
    (forward-comment (- (buffer-size)))
    (point)))