* browse-url drops fragment identifier from file urls on Windows? @ 2012-10-26 17:54 Tom 2012-10-29 22:23 ` Glenn Morris 0 siblings, 1 reply; 3+ messages in thread From: Tom @ 2012-10-26 17:54 UTC (permalink / raw) To: help-gnu-emacs Do you also see this? 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. Does it happen only on Windows? Is there a workaround for this? ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: browse-url drops fragment identifier from file urls on Windows? 2012-10-26 17:54 browse-url drops fragment identifier from file urls on Windows? Tom @ 2012-10-29 22:23 ` Glenn Morris 2012-10-30 6:36 ` Tom 0 siblings, 1 reply; 3+ messages in thread From: Glenn Morris @ 2012-10-29 22:23 UTC (permalink / raw) To: Tom; +Cc: help-gnu-emacs 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..." > Does it happen only on Windows? Yes. > Is there a workaround for this? Use a proper OS? :) Or the wiki page has a suggestion. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: browse-url drops fragment identifier from file urls on Windows? 2012-10-29 22:23 ` Glenn Morris @ 2012-10-30 6:36 ` Tom 0 siblings, 0 replies; 3+ messages in thread From: Tom @ 2012-10-30 6:36 UTC (permalink / raw) To: help-gnu-emacs Glenn Morris <rgm <at> 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-30 6:36 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-10-26 17:54 browse-url drops fragment identifier from file urls on Windows? Tom 2012-10-29 22:23 ` Glenn Morris 2012-10-30 6:36 ` Tom
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.