summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/cl-macs-tests.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-06-27 17:00:11 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-06-27 17:05:54 +0200
commitcf4ccc58284de50959ea66b1cd2655ab2fa4d15b (patch)
tree65d6adea4b8aa13347ba7d6579b8fe7d8d3292ad /test/lisp/emacs-lisp/cl-macs-tests.el
parenteca7394bdf2f57632238b2cf66c996b43cca2aef (diff)
downloademacs-cf4ccc58284de50959ea66b1cd2655ab2fa4d15b.tar.gz
emacs-cf4ccc58284de50959ea66b1cd2655ab2fa4d15b.tar.bz2
emacs-cf4ccc58284de50959ea66b1cd2655ab2fa4d15b.zip
Speed up duplicate-line by a factor of 2
* lisp/misc.el (duplicate-line): Add the newline to the string to be inserted instead of inserting it separately. This makes duplicate-line as fast as duplicate-dwim with a contiguous region. Both could easily be made faster yet by making the code more complex.
Diffstat (limited to 'test/lisp/emacs-lisp/cl-macs-tests.el')
0 files changed, 0 insertions, 0 deletions