emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: Planner trying to open links with web browser


From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: Planner trying to open links with web browser
Date: Thu, 15 Apr 2004 12:00:11 +0800
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

John Sullivan <address@hidden> writes:

> I did reproduce it with the latest dev sources and emacs -q
> --no-site-file. With only emacs-wiki.el, planner-el and
> planner-gnus.el loaded, it behaved the same way. 

I'm so so sorry about this stubborn bug... <sheepish grin>

Could you try this planner-gnus-browse-url? It cheats a little bit,
but it might behave now.

(defun planner-gnus-browse-url (url)
  "If this is a Gnus URL, jump to it."
  (when (string-match "^gnus://\\(.+\\)/\\(.+\\)" url)
    (let ((group (match-string 1 url))
          (article (match-string 2 url)))
      (gnus-fetch-group group)
      (or (gnus-summary-goto-article article)
          (when (fboundp 'gnus-summary-insert-cached-articles)
            (gnus-summary-insert-cached-articles)
            (gnus-summary-goto-article article))
          (message "Message could not be found."))
      t)))

> Interesting note though---at first, I forgot to load planner-gnus. It
> did not try to browse-url in that case. It just opened a new buffer
> with the name being the id of the linked message.

That's because gnus:// URLs weren't added to the regexp. After loading
planner-gnus, you have to close and reopen the plan page. Sorry!

-- 
Sacha Chua <address@hidden> - Ateneo CS faculty geekette
interests: emacs, gnu/linux, making computer science education fun
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C




reply via email to

[Prev in Thread] Current Thread [Next in Thread]