From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: generating titles in remember templates from w3 buffers [was:Re: feature request] Date: Wed, 25 Mar 2009 09:47:38 +0100 Message-ID: References: <87hc1l0yvj.fsf@comcast.net> <878wmw1gxy.fsf@comcast.net> <87y6uud6yy.fsf_-_@comcast.net> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmOm4-0007JP-EH for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 04:47:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmOly-0007Iu-L1 for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 04:47:47 -0400 Received: from [199.232.76.173] (port=45027 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmOly-0007Il-GG for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 04:47:42 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:46137) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmOly-0004A7-1e for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 04:47:42 -0400 Received: by ewy4 with SMTP id 4so2866908ewy.42 for ; Wed, 25 Mar 2009 01:47:40 -0700 (PDT) In-Reply-To: <87y6uud6yy.fsf_-_@comcast.net> 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: "Robert D. Crawford" Cc: emacs-orgmode@gnu.org On Mar 24, 2009, at 9:03 PM, Robert D. Crawford wrote: > 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. Hi Robert, Unfortunately I do not know about a variable that does hold the title of a page in w3. In w3m there is w3m-current-title. In w3, all I was able to find is the URL via (org-view-url t) If anyone knows the magic incantation to extract the page title in a w3 buffer, I'd be happy to make it the default for the link description. - Carsten > > 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. > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode