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

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

[emacs-wiki-discuss] planner-bibtex modification


From: Jim Ottaway
Subject: [emacs-wiki-discuss] planner-bibtex modification
Date: Wed, 12 Jan 2005 16:14:19 +0000
User-agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.2 (gnu/linux)

I have found that planner-bibtex-browse-url fails if there is a `:' in
the label; here is a modified browse function:

(defun planner-bibtex-browse-url (url)
  "If this is a Bibtex URL, jump to it."
  (when (string-match "^bibtex:\\([^:]+\\):\\(.+\\)" url)
    (let ((file (match-string 1 url))
          (label (match-string 2 url)))
      (find-file file)
      (widen)
      (goto-char (point-min))
      (search-forward (concat "{"  label ",")))))

Regards,

-- 
Jim Ottaway




reply via email to

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