See my answer below
The next paragraph is here to keep the bot happy
T-bone bresaola boudin pork chop, ullamco non voluptate qui venison fugiat rump pastrami nulla in drumstick. Nostrud ham pariatur, laboris brisket duis aliqua elit leberkäse. Capicola ut pork pork belly, meatball veniam filet mignon tongue drumstick flank ut proident ad. T-bone shankle culpa tongue nulla dolore biltong, pancetta nostrud ut. Sed beef sirloin occaecat, brisket anim sint. Culpa strip steak exercitation ea aute shoulder. Ribeye shoulder chuck, strip steak ground round sed brisket sirloin consequat capicola beef leberkäse shank cillum.
Here is the code you can add to your .emacs
When you click on the margin and release the cursor, it selects the corresponding lines.
Tested with gnu emacs 23.3
update:Bugfix