title: emacs dired-mode: How to "exit" and end up in a shell in the current directory?
body: <p>On Mac OS I can use the terminal, write "cd ", and then drag &amp; drop folders from Finder to the terminal. I then obtain something like "cd /Users/..." which allows me to quickly change to the corresponding directory.
  If I open an emacs shell with M-x shell and drag &amp; drop a folder to it, emacs changes in dired mode and displays me the content of the folder I dropped. How can I "exit" or "quit" dired-mode and obtain a shell having directory changed to the folder I dropped? That would give me something like above and that would be quite useful.</p>