From: Marvin Doyley <marvinpas@gmail.com>
To: tjolitz@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Counting number of children under heading
Date: Thu, 17 Apr 2014 09:44:53 -0400 [thread overview]
Message-ID: <93A3610A-49AE-4C4A-9C88-2DD81F2C641D@gmail.com> (raw)
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’s function definition is void: outline-body visible-p,
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)
next reply other threads:[~2014-04-17 13:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-17 13:44 Marvin Doyley [this message]
2014-04-17 14:43 ` Counting number of children under heading Thorsten Jolitz
-- strict thread matches above, loose matches on Subject: below --
2014-04-17 16:21 Doyley, Marvin M.
2014-04-17 9:15 Marvin Doyley
2014-04-17 9:21 ` Bastien
2014-04-17 9:42 ` Thorsten Jolitz
2014-04-18 13:54 ` Sebastien Vauban
2014-04-18 14:50 ` Sacha Chua
2014-04-20 17:28 ` Sebastien Vauban
2014-04-21 2:55 ` Sacha Chua
2014-04-17 10:55 ` Eric Abrahamsen
2014-04-17 12:02 ` Thorsten Jolitz
2014-04-17 13:10 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=93A3610A-49AE-4C4A-9C88-2DD81F2C641D@gmail.com \
--to=marvinpas@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tjolitz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).