]> git.eshelyaron.com Git - emacs.git/commit
* lisp/obsolete/tpu-extras.el: Avoid defadvice
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Mar 2021 15:45:31 +0000 (11:45 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Mar 2021 15:45:31 +0000 (11:45 -0400)
commitbc506441372726341b6d95abb85011dba6d897ea
treeb090286de011b89b8ac0f444c3569afdcf751754
parent28d0654943ca4e66cdcb498c53dc8aaa41fe2fad
* lisp/obsolete/tpu-extras.el: Avoid defadvice

(tpu--respect-bottom-scroll-margin): New function, extracted from
`newline`s defadvice.
(newline, newline-and-indent, do-auto-fill): Delete defadvice.
(tpu-set-scroll-margins): Use advice-add instead of
`ad-enable-advice`+`ad-activate`.
Use an explicit arg instead of `called-interactively-p`.
lisp/obsolete/tpu-extras.el