From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert D. Crawford" Subject: generating titles in remember templates from w3 buffers [was:Re: feature request] Date: Tue, 24 Mar 2009 15:03:01 -0500 Message-ID: <87y6uud6yy.fsf_-_@comcast.net> References: <87hc1l0yvj.fsf@comcast.net> <878wmw1gxy.fsf@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmCqO-0003yY-7j for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 16:03:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmCqJ-0003wU-At for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 16:03:27 -0400 Received: from [199.232.76.173] (port=48297 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmCqI-0003wL-No for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 16:03:23 -0400 Received: from main.gmane.org ([80.91.229.2]:47156 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LmCqH-00042Y-QC for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 16:03:22 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LmCqE-00011S-Sq for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 20:03:18 +0000 Received: from c-98-211-29-41.hsd1.tn.comcast.net ([98.211.29.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Mar 2009 20:03:18 +0000 Received: from rdc1x by c-98-211-29-41.hsd1.tn.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Mar 2009 20:03:18 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org As I mentioned below, using the annotation expansion in the template does not work when using w3. I did see the error in my template and have fixed it (unnecessary brackets). I am wondering if there is some other way to get the title or if it can be added as a feature. I've changed the post below to reflect the change in my template and what it returns. Thanks in advance for any help, rdc "Robert D. Crawford" writes: > Matthew Lundin writes: > >>> I've been trying to make an org-remember template that will grab the >>> title of the webpage I want to create a link to. This seems to not be >>> possible, although I could very well be wrong. I was curious as to >>> whether a new keyword could be created for w3 and w3m links. Seems that >>> :title would be very useful. >> >> When I use w3m, the annotation substitution (%a) in the remember >> template does the trick. It grabs the url and title of the current page >> (using org-store-link). > > Thanks. This does work for w3m but using w3 it returns this: * [[http://www.gnu.org]] :gnu: > from this template: '((?b "* %a %^g %!" "~/bookmarks.org" bottom) > Later today, if I get the chance, I'll explore the solution proposed by > Sebastian Rose. As stated in a previous mail, Sebastian's solution works for browsers outside of emacs. -- Robert D. Crawford rdc1x@comcast.net If your mother knew what you're doing, she'd probably hang her head and cry.