]> git.eshelyaron.com Git - emacs.git/commit
Handle negative prefix arguments to mark-paragraph correctly
authorH. Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
Thu, 13 Aug 2020 09:51:17 +0000 (11:51 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 13 Aug 2020 09:51:26 +0000 (11:51 +0200)
commiteb090f65ceb0ae8a90829e911694348583135ba5
tree964248036ee1fa764cd81bc1b1481e03927ddb27
parent838a1a313caf9695a518c69b553abc1389b22495
Handle negative prefix arguments to mark-paragraph correctly

* textmodes/paragraph.el (mark-paragraph): Handle negative
arguments correctly (bug#18847).  This makes `M- M-h M-h' do the
correct thing with expanding the region (like other marking
commands) backwards.  Also fix problem at the end of the buffer,
where the numbers of paragraphs left in the buffer is less than
ARG, then paragraphs would also be marked *before* the current
paragraph.  Also clarify the doc string.
lisp/textmodes/paragraphs.el