History of 2018-07-02 Smart yanking

17:56 UTC Revision 2 . . . . Marcin BorkowskiCorrect the stupid mistake.
03:04 UTC Revision 1 . . . . Marcin BorkowskiNotice: this is a long, technical post about a useful piece of Emacs Lisp. What it does it allowing to yank text with a space at either end both before and after a space between words and have Emacs adjust things so that you don’t end up with two spaces at one end of the yanked fragment and no space at the other one. If you just want the working code, you may get it from here: https://gist.github.com/mbork/9ee1bd8216424e07342e88739fe65547. If you want to know the gory details, read on.