From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: How to know in elisp if I am in the agenda .. Date: Thu, 11 Apr 2013 15:58:24 +0200 Message-ID: <5166C180.6070203@online.de> References: <87d2u1ckph.fsf@gmail.com> <87hajdb5mh.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQI9w-0004kI-Lg for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 10:07:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQI9v-00085U-Jv for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 10:07:28 -0400 Received: from plane.gmane.org ([80.91.229.3]:56189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQI1J-00057O-4c for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 09:58:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UQI1H-0001HT-B0 for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 15:58:31 +0200 Received: from 212.34.176.74 ([212.34.176.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Apr 2013 15:58:31 +0200 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Apr 2013 15:58:31 +0200 In-Reply-To: <87hajdb5mh.fsf@thinkpad.tsdh.de> 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 Cc: emacs-orgmode@gnu.org Am 11.04.2013 14:42, schrieb Tassilo Horn: > Thorsten Jolitz writes: > >>> Please help. Where could I find information/docs for something like >>> "How to determine when I am in agenda view"? >> >> ,------------------------------------------------ >> | M-: (string-equal "*Org Agenda*" (buffer-name)) >> `------------------------------------------------ >> >> gives t when called from inside the agenda. > > Better > > (string-equal org-agenda-buffer-name (buffer-name)) > > or even better > > (eq major-mode 'org-agenda-mode) > > Bye, > Tassilo > > > Tassilo, that works perfect and my function also does now! Exciting! Thanks, Rainer