Function: org-feed-goto-inbox-internal

org-feed-goto-inbox-internal is a byte-compiled function defined in org-feed.el.gz.

Signature

(org-feed-goto-inbox-internal FILE HEADING)

Documentation

Find or create HEADING in FILE.

Switch to that buffer, and return the position of that headline.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-feed.el.gz
(defun org-feed-goto-inbox-internal (file heading)
  "Find or create HEADING in FILE.
Switch to that buffer, and return the position of that headline."
  (find-file file)
  (widen)
  (goto-char (point-min))
  (if (re-search-forward
       (concat "^\\*+[ \t]+" heading "[ \t]*\\(:.*?:[ \t]*\\)?$")
       nil t)
      (goto-char (match-beginning 0))
    (goto-char (point-max))
    (insert "\n\n* " heading "\n\n")
    (org-back-to-heading t))
  (point))