From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#4951: 23.1.50; browse-url-default-windows-browser bug + patch Date: Mon, 23 Nov 2009 02:34:29 +0100 Message-ID: References: <4B038C0D.8020707@f2s.com> Reply-To: Lennart Borgman , 4951@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1258940866 7228 80.91.229.12 (23 Nov 2009 01:47:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 01:47:46 +0000 (UTC) Cc: 4951@emacsbugs.donarmstrong.com To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 23 02:47:39 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NCO1i-00010k-Gj for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2009 02:47:38 +0100 Original-Received: from localhost ([127.0.0.1]:39844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCO1h-0005ip-VO for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2009 20:47:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCO1b-0005fJ-2Q for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2009 20:47:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCO1W-0005ap-4b for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2009 20:47:30 -0500 Original-Received: from [199.232.76.173] (port=39270 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCO1V-0005am-TS for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2009 20:47:25 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45110) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NCO1V-0002NF-2b for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2009 20:47:25 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAN1lLtC030577; Sun, 22 Nov 2009 17:47:21 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAN1e5DO029877; Sun, 22 Nov 2009 17:40:05 -0800 Resent-Date: Sun, 22 Nov 2009 17:40:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 23 Nov 2009 01:40:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4951 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4951-submit@emacsbugs.donarmstrong.com id=B4951.125894009629395 (code B ref 4951); Mon, 23 Nov 2009 01:40:05 +0000 Original-Received: (at 4951) by emacsbugs.donarmstrong.com; 23 Nov 2009 01:34:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-yw0-f196.google.com (mail-yw0-f196.google.com [209.85.211.196]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAN1YsKU029392 for <4951@emacsbugs.donarmstrong.com>; Sun, 22 Nov 2009 17:34:56 -0800 Original-Received: by ywh34 with SMTP id 34so4524496ywh.1 for <4951@emacsbugs.donarmstrong.com>; Sun, 22 Nov 2009 17:34:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=7rONJFte2AW1bGBfhVAACXFMU9tp0Li62N19ZNIkS6Q=; b=jeFrJc+pTOBtzotcP9wlvm8VX/1Y0Qu++arshGnM9+qejRUZrSdAIeGXPYlSfMCThi jWM4zEi6hrhVkCfE2fZ5o4IGdOcUFuDqRGpyTtu9oWAUhh4lX7s1uKBBMCAY4afRjj3I S4FyufSotIWncWOkXFkE9f/2mbqy0Eu/9cBOY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=xcUy9L77Opgx46P7PDHX6z7vIf5zLWGyjexKHHRTHShHoR3nAJCNZgNLXGVO7GC87D /F8z5Xg3bidqxJdC7N2Zkw30dkMloCu+k4m1lMNGiMQtv5PcWsQ0Drxzow08cW17o0yv aVuHBMlyhxGOzNXX9T14i9ULMZ4oC8ODxoGVw= Original-Received: by 10.101.2.22 with SMTP id e22mr3292042ani.145.1258940089425; Sun, 22 Nov 2009 17:34:49 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 22 Nov 2009 20:47:30 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32824 Archived-At: I have tried to find the cause of the problem. Some people on help-emacs-windows@gnu.org mailing list helped me, but I could not find anything specific. However I wrote this function and will include it in my patched version of Emacs+EmacsW32 for those who needs it. (I am not the only one having this trouble.) ;; (customize-option-other-window 'browse-url-browser-function) (defun browse-url-no-open-windows-browser (url &optional new-window) "Same as `browse-url-default-windows-browser' nearly. You may want to customize `browse-url-browser-function' to this function if files do not open in your web browser. It is known that some pc:s have this problem, reason is so far unknown. The cure seem to be to call `w32-shell-execute' with a nil argument here instead of \"open\" which the default function function `browse-url-default-windows-browser' does. This should be safe unless your computer is strangely configured, since you are normaly opening .html files with this function." (interactive (browse-url-interactive-arg "URL: ")) (if (eq system-type 'ms-dos) (if dos-windows-version (shell-command (concat "start " (shell-quote-argument url))) (error "Browsing URLs is not supported on this system")) (w32-shell-execute nil url)))