From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: Diary - Deciding to display time or not Date: Mon, 21 Dec 2020 02:54:51 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="745"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 21 02:55:50 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krAQP-00005m-Nr for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Dec 2020 02:55:49 +0100 Original-Received: from localhost ([::1]:33788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krAQO-0002PN-QD for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 20:55:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krAPY-0002Ow-64 for help-gnu-emacs@gnu.org; Sun, 20 Dec 2020 20:54:56 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:57727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krAPW-0000tQ-97 for help-gnu-emacs@gnu.org; Sun, 20 Dec 2020 20:54:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608515691; bh=wugnzmjMjn0V5GR5VNUjj+fOCeEmaJVl70HpU7g/vEM=; h=X-UI-Sender-Class:From:To:Subject:Date; b=KB96d29ucqlfVhxAbcX8uihn+hgZs2zGDvhFI9qkKCuCz8Lv5h9qwp7T3ZKhz8HUX gXp/r7ihhiP7nuXCOgJ77W0BNDeDunOpPTvz6+qjpUO+kzEa+D56KiF0YvHvF9t6Rw NwabNC7JcgJaQJDyJ/YNDxSk3G5bUC8biBi/v1mQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Mon, 21 Dec 2020 02:54:51 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:u/6uxYHCxzyJnyBzFKZvxx1ZEF2SHc5kDCB51+KNljLxO9gmgMgNHNUrW2hwG2QVJgUTr PzR/x3PqCiezY9aGqWwK7iuF+FAXMECLpRqAKKoqEBGVCWXnPx8VfEnzOPboF+uEHiBkgn4ntwuT fO6y/bcXdJZHkHyKGZfDQHEzeWpvQIila1DYK+P2BcvBAkzQcO9H0o4uJxUwcWzG73tck65H6qo4 azX+cbNaeA3WKfnuBtcxrNs7BHgMiuCrASHImt6pSR3VJGXmgQYluSbBDKJRQVGvbgP3mmhlpmEr Mk= X-UI-Out-Filterresults: notjunk:1;V03:K0:xRacX+0aGcg=:EMTOuxA4WR/dr4BsituyhA viBJbxGfDayGTnacuqlf46pi25HDfcD0imIk32CZ6nHcKCqADrnEKAJ83uGeus+r9QR2EVfoL p9vKWO5GBrrfcyM+6FkE1iS5dsXr8gRuyiGvxt1TtW3TTB06zGEmm+qKA7vIzkr2Vq4mNokof BPwiamLct2fBDdPQZ2V1fhR3HiGnCIXr6OvHqn0f05/9+I8yT667JYcMlUjO0I9tCVItOA+WS qHmW1zFJ0RxlFHcnOUud6QytFbN97hCxAO04wk85/hSybERMJwMjVx3ArD/u1DUiNzMdMlCxA HJxG4nR+3l3EbwRLXhQwuU+NoVwlwDb1RpBn4EaPkC7n3JuSVFUmU4pp/qX4A24m3bIR/eVr0 b1AKfKqGAQYn881ytmE0+OcJGQc1YsKjT0Jq4fTu9I/D0zKW8F2EyjZvV4VFc1/LGdC//knAN FJdK8q8vcHBbVfHy2y2DPRZf3srSDFfzlPE2vkjhe6YhXZxi7ePcLWX7fEnuN2i5Z953RDL7o yIumuH+TP+uvGOWC5wE6DCRz3WZAb7NJmNJ7LSt9Whp0xJ2RvEivB/Ajs6IgbZ+17KUFt5zle vZd2edZY5j8vDD0nmGGESydBs9isDoTV+G Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126657 Archived-At: I want to be able to show the time but also to set it to "nil". What can I do? (defun diary-days-time (n &optional t) "Display N-day diary window and current time in the Mode Line." (interactive " NN-Day Diary: \nN Display Time: ") (diary n) ; Generate the diary window for N days. ;; Display current time in the Mode Line (when (< n 1) (display-time nil)) )