emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to turn off visibility-state messages from 'org-cycle?
Date: Thu, 18 Jul 2013 11:57:54 +0200	[thread overview]
Message-ID: <87k3kogpgd.fsf@gmail.com> (raw)
In-Reply-To: 87oba0gpon.fsf@gmail.com

Thorsten Jolitz <tjolitz@gmail.com> writes:

oops, there was a left-over from inspiring `toggle-truncate-lines' in my
example function, here is the fixed version:

#+begin_src emacs-lisp
  (defvar org-cycle-silently nil
    "Suppress visibility-state-change messages when non-nil.")

  (defun org-toggle-silent-cycling (&optional arg)
    "Toggle silent cycling between visibility states.

  When silent cycling is off, visibility state-change messages are
  written to stdout (i.e. the *Messages* buffer), otherwise these
  messages are suppressed. With prefix argument ARG, cycle silently
  if ARG is positive, otherwise write state-change messages."
    (interactive "P")
    (setq org-cycle-silently
          (if (null arg)
              (not org-cycle-silently)
            (> (prefix-numeric-value arg) 0)))
    (message "Silent visibility cycling %s"
             (if org-cycle-silently "enabled" "disabled")))
#+end_src

-- 
cheers,
Thorsten

  reply	other threads:[~2013-07-18 10:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-17 14:13 How to turn off visibility-state messages from 'org-cycle? Thorsten Jolitz
2013-07-18  8:35 ` Eric S Fraga
2013-07-18  9:32   ` Thorsten Jolitz
2013-07-18  9:52     ` Thorsten Jolitz
2013-07-18  9:57       ` Thorsten Jolitz [this message]
2013-07-19  9:04         ` Eric S Fraga
2013-07-19 11:57           ` [PATCH] Enable silent visibility cycling (was: How to turn off visibility-state messages from 'org-cycle?) Thorsten Jolitz
2013-07-19 12:23             ` [PATCH] Enable silent visibility cycling Jambunathan K
2013-07-22  7:50               ` Thorsten Jolitz
2013-07-22  7:58                 ` Jambunathan K
2013-07-25 10:18                   ` Thorsten Jolitz
2013-07-19 17:54             ` Eric S Fraga
2013-09-02  6:50               ` Carsten Dominik
2013-07-18 11:40 ` How to turn off visibility-state messages from 'org-cycle? Jambunathan K
2013-07-19  6:18   ` Thorsten Jolitz

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=87k3kogpgd.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).