From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Viewing Value of a Property of an Item in the Agenda Date: Fri, 14 Sep 2012 08:43:51 +0200 Message-ID: <87392l5ck8.fsf@altern.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCPd3-0004zS-Sz for emacs-orgmode@gnu.org; Fri, 14 Sep 2012 02:43:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCPd2-0002l1-W4 for emacs-orgmode@gnu.org; Fri, 14 Sep 2012 02:43:53 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:51153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCPd2-0002kn-MQ for emacs-orgmode@gnu.org; Fri, 14 Sep 2012 02:43:52 -0400 Received: by weys10 with SMTP id s10so2381725wey.0 for ; Thu, 13 Sep 2012 23:43:52 -0700 (PDT) In-Reply-To: (Varun Vats's message of "Mon, 3 Sep 2012 20:28:00 +0530") 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: Varun Vats Cc: emacs-orgmode@gnu.org Hi Varun, Varun Vats writes: > I have the LOCATION property set for a few appointments in my org > files. When I look at the agenda, I sometimes want to be able to view > the location of an appointment quickly. Right now I hit TAB on the > agenda item (to go to its original location in the org file) and open > the :PROPERTIES: drawer to view the LOCATION property.  > > Is there any way I can quickly look-up an item's propert(y/ies) in > the agenda view? I know one option would be to set up a column view > for the agenda. However, this requires that I know the properties I > want to view beforehand. Any ideas/suggestions are appreciated. Hackish but works: (defun my-org-agenda-view-item-properties () "Display the properties of the item at point in the agenda." (interactive) (let ((m (get-text-property (point) 'org-hd-marker)) pp) (with-current-buffer (marker-buffer m) (goto-char m) (while (re-search-forward org-property-re (save-excursion (org-end-of-subtree)) t) (push (concat (match-string 2) ": " (match-string 3)) pp))) (delete-other-windows) (pop-to-buffer "*org properties*") (erase-buffer) (mapcar (lambda(p) (insert p "\n")) pp) (org-fit-window-to-buffer) (other-window 1))) HTH, -- Bastien