From: Lars Magne Ingebrigtsen Date: Sun, 1 Dec 2013 14:45:02 +0000 (+0100) Subject: Compilation warning fix X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~606 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1af6643718160f7dc5e5e2530f351a721248821b;p=emacs.git Compilation warning fix Move eww-link-keymap definition to before usage Fixes: debbugs:15243 --- diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 9021c8f3b7e..ef03c7281be 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -105,6 +105,11 @@ (defvar eww-local-regex "localhost" "When this regex is found in the URL, it's not a keyword but an address.") +(defvar eww-link-keymap + (let ((map (copy-keymap shr-map))) + (define-key map "\r" 'eww-follow-link) + map)) + ;;;###autoload (defun eww (url) "Fetch URL and render the page. @@ -380,11 +385,6 @@ word(s) will be searched for via `eww-search-prefix'." ["List cookies" url-cookie-list t])) map)) -(defvar eww-link-keymap - (let ((map (copy-keymap shr-map))) - (define-key map "\r" 'eww-follow-link) - map)) - (define-derived-mode eww-mode nil "eww" "Mode for browsing the web.