From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: How to turn off visibility-state messages from 'org-cycle? Date: Thu, 18 Jul 2013 11:57:54 +0200 Message-ID: <87k3kogpgd.fsf@gmail.com> References: <878v158eag.fsf@gmail.com> <87a9lkmfk0.fsf@ucl.ac.uk> <87txjsgqmy.fsf@gmail.com> <87oba0gpon.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzl0H-0002xg-5x for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 06:00:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uzl0G-0000fA-3P for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 06:00:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:43724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzl0F-0000dM-U1 for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 06:00:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uzl0F-0006uQ-7G for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 12:00:03 +0200 Received: from g231107052.adsl.alicedsl.de ([92.231.107.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jul 2013 12:00:03 +0200 Received: from tjolitz by g231107052.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jul 2013 12:00:03 +0200 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: emacs-orgmode@gnu.org Thorsten Jolitz 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