• Philipp Stephani's avatar
    Fix a small bug in electric quoting. · f07c325d
    Philipp Stephani authored
    Before this commit, if 'electric-quote-replace-double' is non-nil,
    typing " '" turned into " ‘" even if
    'electric-quote-context-sensitive' was nil.
    
    * lisp/electric.el (electric-quote-post-self-insert-function): Insert
    context-sensitive double quote only if the last character is actually
    a double quote character.
    
    * test/lisp/electric-tests.el
    (electric-quote-replace-double-no-context-single): New unit test.
    f07c325d
electric-tests.el 26.6 KB