diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-06-27 17:00:11 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-06-27 17:05:54 +0200 |
commit | cf4ccc58284de50959ea66b1cd2655ab2fa4d15b (patch) | |
tree | 65d6adea4b8aa13347ba7d6579b8fe7d8d3292ad /test/lisp/emacs-lisp/cl-macs-tests.el | |
parent | eca7394bdf2f57632238b2cf66c996b43cca2aef (diff) | |
download | emacs-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