]> git.eshelyaron.com Git - emacs.git/commit
Fix Bug#21072 and rework `mark-defun'
authorMarcin Borkowski <mbork@mbork.pl>
Fri, 31 Mar 2017 11:06:06 +0000 (13:06 +0200)
committerMarcin Borkowski <mbork@mbork.pl>
Fri, 12 May 2017 09:36:27 +0000 (11:36 +0200)
commit22fc91704be4737865b3715e5278dc78029791bd
treebe0dcd1fb3fa25bbfb01467a8dac6716056da217
parent6d58dda40a0a43d14dffdd995f0cb3dcc329fa4b
Fix Bug#21072 and rework `mark-defun'

* test/lisp/progmodes/elisp-mode-tests.el (mark-defun-test-buffer):
  New variable
(mark-defun-no-arg-region-inactive)
(mark-defun-no-arg-region-active)
(mark-defun-arg-region-active)
(mark-defun-pos-arg-region-inactive)
(mark-defun-neg-arg-region-inactive, mark-defun-bob): Add tests for
the new `mark-defun'.

* lisp/emacs-lisp/lisp.el (beginning-of-defun--in-emptyish-line-p):
  New function.
(beginning-of-defun-comments): New function.
(mark-defun): Fix bug#21072, also rewrite large parts of `mark-defun'
to accept a numerical prefix argument.
doc/emacs/programs.texi
etc/NEWS
lisp/emacs-lisp/lisp.el
test/lisp/emacs-lisp/lisp-tests.el