Function: hif-add-new-defines

hif-add-new-defines is an interactive and byte-compiled function defined in hideif.el.gz.

Signature

(hif-add-new-defines &optional MIN MAX)

Documentation

Scan and add all #define macros between MIN and MAX.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideif.el.gz
(defun hif-add-new-defines (&optional min max)
  "Scan and add all #define macros between MIN and MAX."
  (interactive)
  (save-excursion
    (save-restriction
      ;; (mark-region min max) ;; for debugging
      (and min (goto-char min))
      (setq hif-verbose-define-count 0)
      (forward-comment (point-max))
      (setq min (point))
      (let ((breakloop nil))
        (while (and (not breakloop)
                    (hif-find-define min max))
          (forward-comment (point-max))
          (if (and max
                   (> (point) max))
              (setq max (point)
                    breakloop t))
          (setq min (point))))
      (if max (goto-char max)
        (goto-char (point-max))
        nil))))