From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: browse-url drops fragment identifier from file urls on Windows? Date: Tue, 30 Oct 2012 06:36:19 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1351579006 3556 80.91.229.3 (30 Oct 2012 06:36:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 06:36:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 07:36:55 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TT5RW-0006m8-Ot for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 07:36:54 +0100 Original-Received: from localhost ([::1]:46691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT5RO-0004UF-Ei for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 02:36:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT5RI-0004U9-3F for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 02:36:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TT5RE-0004WJ-0N for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 02:36:40 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT5RD-0004WF-PC for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 02:36:35 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TT5RJ-0006U7-39 for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 07:36:41 +0100 Original-Received: from 94-21-222-108.pool.digikabel.hu ([94.21.222.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Oct 2012 07:36:41 +0100 Original-Received: from adatgyujto by 94-21-222-108.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Oct 2012 07:36:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.21.222.108 (Opera/9.80 (Windows NT 6.1; U; IBM EVV/3.0/EAK01AG9/LE; en) Presto/2.10.289 Version/12.02) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87489 Archived-At: Glenn Morris gnu.org> writes: > > Tom wrote: > > > Try this call with a local html file with a fragment appended > > to the url (e.g. #top): > > > > (browse-url "file://localhost/stuff/a.html#top") > > > > For me the #top part is not there when the URL is opened in the > > browser. > > Read these: > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2543 > > http://www.emacswiki.org/emacs/BrowseUrl > "The problem is not one of quoting..." > Thanks. It's a pity it doesn't work by default. For example one could write a function which opens documentation for symbols under the cursor using anchors in the url, so the browser jumps to the specific part of the doc describing the symbol. It won't work for Windows out of the box. Maybe a warning message should be added to browse-url, so the user knows he has to change browse-url configuration, otherwise URLs won't be opened at the proper place. browse-url could print this message in the echo area if # is used in the URL and the default browser is invoked on Windows.