emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Robert D. Crawford" <rdc1x@comcast.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: generating titles in remember templates from w3 buffers [was:Re: feature request]
Date: Wed, 25 Mar 2009 09:47:38 +0100	[thread overview]
Message-ID: <CFCC7A9F-8413-40D4-B32F-37D5F21BA30C@gmail.com> (raw)
In-Reply-To: <87y6uud6yy.fsf_-_@comcast.net>

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" <rdc1x@comcast.net> writes:
>> Matthew Lundin <mdl@imapmail.org> 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

  parent reply	other threads:[~2009-03-25  8:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-23  2:14 feature request Robert D. Crawford
2009-03-23  2:44 ` Matthew Lundin
2009-03-23 13:56   ` Robert D. Crawford
2009-03-23 14:08     ` Sebastian Rose
2009-03-24 20:03     ` generating titles in remember templates from w3 buffers [was:Re: feature request] Robert D. Crawford
2009-03-25  5:46       ` Charles Philip Chan
2009-03-25 12:36         ` Charles Philip Chan
2009-03-25  8:47       ` Carsten Dominik [this message]
2009-03-25 13:06         ` Robert D. Crawford
2009-03-25 19:42           ` Carsten Dominik
2009-03-25 19:58             ` Robert D. Crawford
     [not found]               ` <rdc1x@comcast.net>
2009-03-25 20:54                 ` Nick Dokos
2009-03-23 11:24 ` feature request Sebastian Rose
2009-03-24 16:53   ` Robert D. Crawford
2009-03-24 18:23     ` Sebastian Rose
2009-03-25 13:50     ` Charles Philip Chan
2009-03-25 14:51       ` Robert D. Crawford
2009-03-26  4:09 ` Carsten Dominik
2009-03-26 16:43   ` Robert D. Crawford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CFCC7A9F-8413-40D4-B32F-37D5F21BA30C@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rdc1x@comcast.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).