I ran across the problem of underfull \hbox when I want to typeset a long url(long enough to fill two lines) in the footnote. Here is my MWE:
\documentclass{article}
\usepackage{hyperref}
\usepackage{ragged2e}
\begin{document}
We use this dataset
\footnote{\url{http://archive.ics.uci.edu/ml/datasets/Parkinson+Speech+Dataset+with++Multiple+Types+of+Sound+Recordings\#}}
for experimentation.
\end{document}
After searching the web, this post suggests using \RaggedRight from the ragged2e package.
But I think the \RaggedRightdoes not "really" solve this problem, it just hides the "underfull \hbox" warning.
Below is the produced footnote of the above MWE:
After using the \RaggedRight command, i.e., change from
\footnote{\url{http://archive.ics.uci.edu/ml/datasets/Parkinson+Speech+Dataset+with++Multiple+Types+of+Sound+Recordings\#}}
in the MWE to
\footnote{\RaggedRight\url{http://archive.ics.uci.edu/ml/datasets/Parkinson+Speech+Dataset+with++Multiple+Types+of+Sound+Recordings\#}}
. The warning disappears. But the produced footnote is (in my opinion) the same as before, see the image below:

My question is, how to "really" solve this problem? In my naive thought, why not LaTeX move some charcters from the second line, say the characters "+Multipl", to the empty space in the end of first line. After all, url are just a series of charcters, why not stuff the first line with some charcters from the second line to make full use of first line? Or there are some hidden facts which are very complicated?
Any answers or pointer to answers are appreciated!


\usepackage{microtype}\UseMicrotypeSet [expansion] {alltext}. – Ulrike Fischer Nov 17 '16 at 16:09hyperref.styitself is nearly 9000 lines long. But there's nothing to prevent you from putting the code inbetween the\makeat...commands into your own.styfile that you load afterhyperref.... – jon Nov 17 '16 at 19:00\usepackage{microtype}\UseMicrotypeSet [expansion] {alltext}does not solve the problem. There are still "underfull \hbox" warning. – jdhao Nov 18 '16 at 07:48