• Mattias Engdegård's avatar
    duplicate-line: fix optional argument and add test (bug#46621) · 47374d44
    Mattias Engdegård authored
    The test assumes that the current semantics are intended and desired,
    which may or may not be true, but it's better than not having any at
    all.
    
    * lisp/misc.el (duplicate-line): Don't crash if called with no argument.
    * test/lisp/misc-tests.el (misc--duplicate-line): New test.
    47374d44
misc.el 8.62 KB