From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: [PATCH] Allow to disable the agenda block separator per block Date: Fri, 3 Jun 2011 21:13:20 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=000e0cdff82af8b1bc04a4d38b7c Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSZoB-00083w-OV for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 15:13:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSZoA-0004Jx-Dd for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 15:13:23 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:35247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSZo9-0004Ji-Rh for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 15:13:22 -0400 Received: by eyd9 with SMTP id 9so901763eyd.0 for ; Fri, 03 Jun 2011 12:13:20 -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: Org Mode --000e0cdff82af8b1bc04a4d38b7c Content-Type: text/plain; charset=ISO-8859-1 * org-agenda.el (org-agenda-compact-blocks): Improve docstring. (org-agenda-block-separator): Add nil to docstring and customization. (org-prepare-agenda): Skip agenda block separator additionally if org-agenda-block-separator is nil. (org-agenda-overriding-header): Improve docstring. This change allows to disable the agenda block separator only and also per block only. (The variable org-agenda-compact-blocks non-nil disables agenda block separators together with the line containing the agenda span name and week number and does this globally for all blocks and all custom agenda commands.) Michael --000e0cdff82af8b1bc04a4d38b7c Content-Type: application/octet-stream; name="0001-Allow-to-disable-the-agenda-block-separator-per-bloc.patch" Content-Disposition: attachment; filename="0001-Allow-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