From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: `#` in org mode links doesn't open correctly? Date: Tue, 08 Apr 2014 15:11:47 +0200 Message-ID: <8738ho0xv0.fsf@gmail.com> References: <87mwfw1cp5.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1396962675 11777 80.91.229.3 (8 Apr 2014 13:11:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2014 13:11:15 +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 Apr 08 15:11:08 2014 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 1WXVnu-0002ho-5I for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Apr 2014 15:11:06 +0200 Original-Received: from localhost ([::1]:40122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXVnt-0000a6-MF for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Apr 2014 09:11:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXVna-0000TX-4B for help-gnu-emacs@gnu.org; Tue, 08 Apr 2014 09:10:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXVnS-0002sw-IJ for help-gnu-emacs@gnu.org; Tue, 08 Apr 2014 09:10:46 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXVnS-0002rs-BV for help-gnu-emacs@gnu.org; Tue, 08 Apr 2014 09:10:38 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WXVnP-0002OF-QG for help-gnu-emacs@gnu.org; Tue, 08 Apr 2014 15:10:35 +0200 Original-Received: from g231235076.adsl.alicedsl.de ([92.231.235.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Apr 2014 15:10:35 +0200 Original-Received: from tjolitz by g231235076.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Apr 2014 15:10:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 65 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231235076.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:fXgNQnKSSx2XFxfgT2XZJCwJ8q8= 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:97040 Archived-At: Tim Visher writes: > On Tue, Apr 8, 2014 at 3:51 AM, Thorsten Jolitz wrote: >> Tim Visher writes: >> >>> I'm putting together a reading list file for SICP and I'm linking >>> directly to the HTML version of the book. >>> >>> Many of the links include target data with them (i.e. >>> `link#some-target`) and when I call `org-open-at-point` it corrupts >>> the link by incorrectly converting `#` to `%23`. >>> >>> How can I get this to behave properly? >> >> I just switched to outorg and used C-c C-l to insert this link with >> Org-mode: >> >> [[http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-10.html#%25_sec_1.1.5][SICP-LINK]] >> >> which looks like this when copied from w3m: >> >> ,------------------------------------------------------------------------- >> | >> http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-10.html#%_sec_1.1.5 >> `------------------------------------------------------------------------- >> >> but the Org link, besided being modified, works with org-open-at-point >> or w3m-browse-url for me, so it does not really seem to be corrupted? > > What do you mean, 'besides being modified'? I mean that the link inserted by Org is not exactly the same as the url you get from emacs-w3m, as you can see in the examples given above. > I'm on `GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0)`. Any chance > you're on a more recent version and this is a bug that was fixed? I > just confirmed that if I drop into fundamental mode and directly use > browse-url-at-point, the behavior still happens. #+begin_src emacs-lisp (call-interactively 'org-version) #+end_src #+results: : Org-mode version 8.2.5h (release_8.2.5h-883-ga36dde @ /usr/share/emacs/24.3/lisp/org/lisp/) #+begin_src emacs-lisp (emacs-version) #+end_src #+results: : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7) : of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen so we have the same version. > I'm using Chrome as my browser. I use (emacs-)w3m. Maybe somebody else can try the link above produced by Org-mode? -- cheers, Thorsten