From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marvin Doyley Subject: Re: Counting number of children under heading Date: Thu, 17 Apr 2014 09:44:53 -0400 Message-ID: <93A3610A-49AE-4C4A-9C88-2DD81F2C641D@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WamfH-0004UR-0J for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 09:47:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wamf7-0005uz-SZ for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 09:47:42 -0400 Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:64564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wamf7-0005up-N7 for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 09:47:33 -0400 Received: by mail-qc0-f180.google.com with SMTP id w7so439846qcr.11 for ; Thu, 17 Apr 2014 06:47:33 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: tjolitz@gmail.com Cc: emacs-orgmode@gnu.org Hi Thorsten, Your hidden line cookie is what I am looking for. If I understand it I = should do the following * Fruits [# ] ** Apples ** Pears M-x org-hlc-toggle-hidden-lines-cookies ? When ever I do this I get the following error Symbol=92s function definition is void: outline-body visible-p,=20 The backtrace is included below. Thanks M Debugger entered--Lisp error: (void-function outline-body-visible-p) (outline-body-visible-p) (not (outline-body-visible-p)) (or (not (outline-body-visible-p)) (re-search-forward = org-hlc-hidden-lines-cookie-format-regexp (line-end-position) (quote = NO-ERROR))) (progn (or (not (outline-body-visible-p)) (re-search-forward = org-hlc-hidden-lines-cookie-format-regexp (line-end-position) (quote = NO-ERROR)))) (unwind-protect (progn (or (not (outline-body-visible-p)) = (re-search-forward org-hlc-hidden-lines-cookie-format-regexp = (line-end-position) (quote NO-ERROR)))) (set-match-data = save-match-data-internal (quote evaporate))) (let ((save-match-data-internal (match-data))) (unwind-protect (progn = (or (not (outline-body-visible-p)) (re-search-forward = org-hlc-hidden-lines-cookie-format-regexp (line-end-position) (quote = NO-ERROR)))) (set-match-data save-match-data-internal (quote = evaporate)))) (save-excursion (let ((save-match-data-internal (match-data))) = (unwind-protect (progn (or (not (outline-body-visible-p)) = (re-search-forward org-hlc-hidden-lines-cookie-format-regexp = (line-end-position) (quote NO-ERROR)))) (set-match-data = save-match-data-internal (quote evaporate))))) org-hlc-hidden-lines-cookie-status-changed-p() (and (outline-on-heading-p) = (org-hlc-hidden-lines-cookie-status-changed-p) = (org-hlc-set-hidden-lines-cookie)) (save-excursion (goto-char (point-min)) (and (outline-on-heading-p) = (org-hlc-hidden-lines-cookie-status-changed-p) = (org-hlc-set-hidden-lines-cookie)) (while (not (eobp)) = (outline-next-visible-heading 1) (and (outline-on-heading-p) = (org-hlc-hidden-lines-cookie-status-changed-p) = (org-hlc-set-hidden-lines-cookie)))) org-hlc-write-hidden-lines-cookies() org-hlc-show-hidden-lines-cookies() (if org-hlc-hidden-lines-cookies-on-p = (org-hlc-hide-hidden-lines-cookies) (org-hlc-show-hidden-lines-cookies)) org-hlc-toggle-hidden-lines-cookies() call-interactively(org-hlc-toggle-hidden-lines-cookies record nil) command-execute(org-hlc-toggle-hidden-lines-cookies record) (progn (setq prefix-arg current-prefix-arg) (setq this-command = chosen-item) (command-execute chosen-item (quote record))) (unwind-protect (progn (setq prefix-arg current-prefix-arg) (setq = this-command chosen-item) (command-execute chosen-item (quote record))) = (smex-rank chosen-item) (smex-show-key-advice chosen-item) (run-at-time = 0.01 nil (function (lambda (cmd) (setq last-repeatable-command cmd))) = chosen-item)) (if smex-custom-action (let ((action smex-custom-action)) (setq = smex-custom-action nil) (funcall action chosen-item)) (unwind-protect = (progn (setq prefix-arg current-prefix-arg) (setq this-command = chosen-item) (command-execute chosen-item (quote record))) (smex-rank = chosen-item) (smex-show-key-advice chosen-item) (run-at-time 0.01 nil = (function (lambda (cmd) (setq last-repeatable-command cmd))) = chosen-item))) (let ((chosen-item (intern (smex-completing-read commands = initial-input)))) (if smex-custom-action (let ((action = smex-custom-action)) (setq smex-custom-action nil) (funcall action = chosen-item)) (unwind-protect (progn (setq prefix-arg = current-prefix-arg) (setq this-command chosen-item) (command-execute = chosen-item (quote record))) (smex-rank chosen-item) = (smex-show-key-advice chosen-item) (run-at-time 0.01 nil (function = (lambda (cmd) (setq last-repeatable-command cmd))) chosen-item)))) smex-read-and-run(("toggle-debug-on-error" "org-mode" "text-mode" = "artist-mode" "color-theme-snow" "eshell" "load-file" "notes" = "org-bibtex-yank" "tea-time" "brain" "insert-date" "org-bibtex-read" = "org-hlc-toggle-hidden-lines-cookies" "el-get-install" = "org-bibtex-search" "skimCopy" "word-count" "desktop-read" = "word-count-mode" "marv:create-scratch-buffer" "matlab-shell" = "el-get-list-packages" "wl" "dired" "org-insert-drawer" = "text-scale-increase" "org-hlc-hide-hidden-lines-cookies" = "org-export-insert-default-template" "python-mode" "desktop-save" = "writegood-mode" "artbollocks-mode" "el-get-self-update" = "marv:org-entry-wpm" "org-bibtex" "insert-time" "org-capture" = "move-border-up" "org-mobile-pull" "org-bibtex-write" = "org-bibtex-read-file" "org-habit-toggle-habits" = "marv:toggle-line-spacing" "comment-or-uncomment-region" "version" = "mail-mode" "reftex-toc" "bibtex-mode" "matlab-mode" ...)) (if (smex-already-running) (smex-update-and-rerun) (and = smex-auto-update (smex-detect-new-commands) (smex-update)) = (smex-read-and-run smex-ido-cache)) smex() call-interactively(smex nil nil)