From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73585 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: Survey: how do you view links in a external browser? Date: Mon, 25 Oct 2010 20:01:00 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87eibfya00.fsf@jidanni.org> <87ocaj38ch.fsf@gmail.com> <8uhbgbut7a.fsf@news.eternal-september.org> <87wrp6xleg.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288029727 25645 80.91.229.12 (25 Oct 2010 18:02:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2010 18:02:07 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21954@lists.math.uh.edu Mon Oct 25 20:02:06 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PARMu-000879-T3 for ding-account@gmane.org; Mon, 25 Oct 2010 20:02:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PARMZ-0007UG-LO; Mon, 25 Oct 2010 13:01:39 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PARMY-0007U2-4f for ding@lists.math.uh.edu; Mon, 25 Oct 2010 13:01:38 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PARMW-00065E-Fv for ding@lists.math.uh.edu; Mon, 25 Oct 2010 13:01:37 -0500 Original-Received: from mail-gw0-f44.google.com ([74.125.83.44]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PARMV-000615-00 for ; Mon, 25 Oct 2010 20:01:35 +0200 Original-Received: by gwb17 with SMTP id 17so2512119gwb.17 for ; Mon, 25 Oct 2010 11:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:organization :references:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=+cISGzvhkTWGd+Z59GWp3o+1U8P8F4hd8bsXVB7Unas=; b=ow4FSOGJ42gbUOcm/cX3R4Z5BhSVUGQ/tG08aXGq/Llc/MvuQ/RKs7jNMdNmOP/uUI buF7vrEgHukLTR6ejYv9dk8V5fDDH5O6Lokvn0AW87ItJGC2e8TN6MK26dTUBTnNX8fY 5L5RZhh5GGAKXi1vzMogkyvdbt8xZRloKwlak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:organization:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=nz7RPnyRrKuCT/RghPelESAYFeZo1YWsyBx9mP7qUHo++QIo0z1jo2yd/K/pio50Gg Pi8wPV+XIJm+q0pawJRlTDetxSoargCH1mlpt4h6V8+40aC0DzHWnoUQcrd/bVtkLfPF BXTsnXr8Fy6qgeu0n5Wh+kcHw4jEGlL/oOctQ= Original-Received: by 10.204.156.9 with SMTP id u9mr5143105bkw.202.1288029663237; Mon, 25 Oct 2010 11:01:03 -0700 (PDT) Original-Received: from localhost ([85.183.18.158]) by mx.google.com with ESMTPS id y19sm5081610bkw.18.2010.10.25.11.01.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 Oct 2010 11:01:02 -0700 (PDT) In-Reply-To: <87wrp6xleg.fsf@gmail.com> (Robert D. Crawford's message of "Mon, 25 Oct 2010 11:55:03 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73585 Archived-At: "Robert D. Crawford" writes: > Richard Riley writes: > >> "Robert D. Crawford" writes: >> >>> (defun rdc-gnus-open-in-browser (&optional arg) >>> "opens the link under point in browser >>> numeric argument calls alternate browser" >>> (interactive "p") >>> ;; the next few lines are not useful to you >>> ;; (dtk-speak "Opening URL in GUI browser") >>> ;; (let ((emacspeak-speak-messages nil)) >>> (goto-char (point-min)) >>> (search-forward-regexp "link") >>> ;; the next line moves into the word "link" >>> (backward-char 2) >>> (if (= arg 4) >>> (setq browser-command-string "chrome ") >>> (setq browser-command-string "firefox ")) >>> (shell-command (concat browser-command-string >>> "\"" >>> (if (eq browse-url-browser-function >>> 'browse-url-w3) >>> (w3-view-this-url) >>> (w3m-print-this-url) >>> "\"" >>> nil nil)))) >>> >> What wrong with something as simple as >> >> (setq browse-url-browser-function (quote browse-url-generic)) >> (setq browse-url-generic-program "iceweasel") >> >> for the default return key/left click on a link >> >> and then something like >> >> (define-key mode-specific-map [?u] 'w3m-browse-url) >> >> for internal using w3m? > > There might be a simpler way than what I've done here but I'm not > sure. Did you try the 3 lines above? I cant see anything else I set to make it work so but guess there might be something obscure hidden.