From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: How to turn off visibility-state messages from 'org-cycle? Date: Thu, 18 Jul 2013 17:10:09 +0530 Message-ID: <878v149jvq.fsf@gmail.com> References: <878v158eag.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzmXh-0005nU-QX for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 07:38:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzmXg-0000ZQ-OE for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 07:38:41 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:62361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzmXg-0000ZB-HJ for emacs-orgmode@gnu.org; Thu, 18 Jul 2013 07:38:40 -0400 Received: by mail-pa0-f48.google.com with SMTP id kp12so3104745pab.21 for ; Thu, 18 Jul 2013 04:38:39 -0700 (PDT) In-Reply-To: <878v158eag.fsf@gmail.com> (Thorsten Jolitz's message of "Wed, 17 Jul 2013 16:13:59 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Try this: (defadvice org-cycle-internal-local (around org-cycle-internal-local-suppress-messages activate) "Do the local cycling action, but suppress messages." (letf (((symbol-function 'message) (symbol-function 'ignore))) ad-do-it)) (defadvice org-cycle-internal-global (around org-cycle-internal-global-suppress-messages activate) "Do the global cycling action, but suppress messages." (letf (((symbol-function 'message) (symbol-function 'ignore))) ad-do-it)) You can also use `flet' form to `ignore' the `message'. Thorsten Jolitz writes: > Hi List, > > when calling Org-mode functionality form an external program, some > functions seem to make use of 'org-cycle', what results in a lot of > "OVERVIEW" messages arriving at stdout/stderr > > ,--------- > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | OVERVIEW > | .... > `--------- > > > that are not really helpful and a bit of a hassle. > > ,------------------------------------------------------------------------- > | (org-cycle &optional ARG) > | .... > | > | - When this function is called with a prefix argument, rotate the entire > | buffer through 3 states (global cycling) > | 1. OVERVIEW: Show only top-level headlines. > | 2. CONTENTS: Show all headlines of all levels, but no body text. > | 3. SHOW ALL: Show everything. > `------------------------------------------------------------------------- > > Is there a way to turn these message off? I found things like > 'org-no-popups or 'org-no-warnings but nothing like > "org-no-visibility-state-messages" or so. Its not really a big problem, > rather an inconvenience, but maybe its easy to solve when knowing where > to look.