aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2009-09-22 08:44:16 +0000
committerJuanma Barranquero2009-09-22 08:44:16 +0000
commitbaa7f3de13241c665b8b2a5f6192acf2f15e8932 (patch)
treeb38e59eb808fca094b37047380d50e256215da93
parentdaedbbc2a90ab02f0e1cfcb3532d78b0f6907055 (diff)
downloademacs-baa7f3de13241c665b8b2a5f6192acf2f15e8932.tar.gz
emacs-baa7f3de13241c665b8b2a5f6192acf2f15e8932.zip
* info.el (Info-try-follow-nearest-node): Use the URL extracted by
`Info-get-token', instead of `browse-url-url-at-point'. (Bug#4508)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/info.el9
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 880dd09a6c9..551497b17c2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-09-22 Juanma Barranquero <lekktu@gmail.com>
2
3 * info.el (Info-try-follow-nearest-node): Use the URL extracted by
4 `Info-get-token', instead of `browse-url-url-at-point'. (Bug#4508)
5
12009-09-22 Glenn Morris <rgm@gnu.org> 62009-09-22 Glenn Morris <rgm@gnu.org>
2 7
3 * calendar/calendar.el (calendar-mode-map): Make mouse-1 and 3 clicks on 8 * calendar/calendar.el (calendar-mode-map): Make mouse-1 and 3 clicks on
diff --git a/lisp/info.el b/lisp/info.el
index f859ecf5dfb..cfaf749ef8a 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1,4 +1,4 @@
1;;; info.el --- info package for Emacs 1;; info.el --- info package for Emacs
2 2
3;; Copyright (C) 1985, 1986, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3;; Copyright (C) 1985, 1986, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 4;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
@@ -3518,9 +3518,10 @@ If FORK is a string, it is the name to use for the new buffer."
3518If FORK is non-nil, it is passed to `Info-goto-node'." 3518If FORK is non-nil, it is passed to `Info-goto-node'."
3519 (let (node) 3519 (let (node)
3520 (cond 3520 (cond
3521 ((Info-get-token (point) "[hf]t?tps?://" "[hf]t?tps?://\\([^ \t\n\"`({<>})']+\\)") 3521 ((setq node (Info-get-token (point) "[hf]t?tps?://"
3522 (setq node t) 3522 "\\([hf]t?tps?://[^ \t\n\"`({<>})']+\\)"))
3523 (browse-url (browse-url-url-at-point))) 3523 (browse-url node)
3524 (setq node t))
3524 ((setq node (Info-get-token (point) "\\*note[ \n\t]+" 3525 ((setq node (Info-get-token (point) "\\*note[ \n\t]+"
3525 "\\*note[ \n\t]+\\([^:]*\\):\\(:\\|[ \n\t]*(\\)?")) 3526 "\\*note[ \n\t]+\\([^:]*\\):\\(:\\|[ \n\t]*(\\)?"))
3526 (Info-follow-reference node fork)) 3527 (Info-follow-reference node fork))