1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 08:00:48 -08:00
emacs/test/lisp
Stephen Berman 22d463ed5c Fix todo-mode commands called on done items separator
The done items separator is not reachable by todo-mode navigation
commands, but it is e.g. by C-n and C-p.  Ensure that invoking
todo-mode commands with point on the separator does not result in
unexpected results, errors or file corruption (bug#32343).

* lisp/calendar/todo-mode.el (todo-insert-item--basic): Make
copying item and inserting item "here" noops when invoked on done
items separator.  Consolidate error handling of these cases.  Also
restrict "here" insertion to valid positions in the current
category, since this is simpler than the previous behavior of
inserting as the first item, which was moreover undocumented,
counterintuitive and superfluous.
(todo-set-item-priority, todo-move-item, todo-item-done)
(todo-item-start, todo-item-end): Make noops when invoked on done
items separator.

* test/lisp/calendar/todo-mode-tests.el: Require ert-x.
(todo-test--insert-item): Add formal parameters of
todo-insert-item--basic.
(todo-test--done-items-separator): New function.
(todo-test-done-items-separator01-bol)
(todo-test-done-items-separator01-eol)
(todo-test-done-items-separator02-bol)
(todo-test-done-items-separator02-eol)
(todo-test-done-items-separator03-bol)
(todo-test-done-items-separator03-eol)
(todo-test-done-items-separator04-bol)
(todo-test-done-items-separator04-eol)
(todo-test-done-items-separator05-bol)
(todo-test-done-items-separator05-eol)
(todo-test-done-items-separator06-bol)
(todo-test-done-items-separator06-eol)
(todo-test-done-items-separator07): New tests.
2018-08-01 14:42:57 +02:00
..
calc Update copyright year to 2018 2018-01-01 00:57:59 -08:00
calendar Fix todo-mode commands called on done items separator 2018-08-01 14:42:57 +02:00
emacs-lisp Merge from origin/emacs-26 2018-07-28 07:50:36 -07:00
emulation Update copyright year to 2018 2018-01-01 00:57:59 -08:00
erc Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eshell esh-opt.el: Add a :parse-leading-options-only argument (Bug#28323) 2018-05-15 19:32:49 -04:00
gnus Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
international Update Unicode data files to version 11.0.0 of Unicode 2018-06-09 15:41:21 +03:00
mail Update copyright year to 2018 2018-01-01 00:57:59 -08:00
net Fix (Bug#32218). Do not merge with master 2018-07-20 10:56:41 +02:00
org Recognize Org as builtin package (bug#30310) 2018-02-02 21:09:09 -05:00
progmodes Merge from origin/emacs-26 2018-07-13 09:28:15 -07:00
textmodes Add Imenu support to CSS mode and its derivatives 2018-05-29 21:24:26 +02:00
url Rewrite `url-domain' to avoid network traffic 2018-05-01 14:26:38 +02:00
vc * test/lisp/vc/vc-tests.el (w32-application-type): Fix declaration. 2018-03-09 16:36:50 -05:00
abbrev-tests.el Preserve special abbrev properties when writing 2018-02-17 08:47:20 -05:00
arc-mode-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
auth-source-pass-tests.el Test checking that auth-source-pass backend is correctly installed 2018-06-05 15:53:33 +02:00
auth-source-tests.el Merge from origin/emacs-26 2018-07-20 10:00:32 -07:00
autorevert-tests.el Use file notification in autorevert also for recreated files 2018-01-20 16:26:02 +01:00
buff-menu-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
char-fold-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
color-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
comint-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
custom-tests.el Fix custom-available-themes file expansion 2018-07-13 11:28:16 -04:00
dabbrev-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
descr-text-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
dired-aux-tests.el Honor dired-create-destination-dirs if copying/renaming >1 files 2018-04-05 12:15:54 +09:00
dired-tests.el Quieten compilation of some test/lisp files 2018-03-09 15:04:59 -05:00
dired-x-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
dom-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
electric-tests.el Mark a specific electric-pair-mode test as an expected failure 2018-06-19 02:53:10 +01:00
epg-tests.el ; Remove tracing for epg-tests (Bug#23561) 2018-07-16 07:12:07 -04:00
faces-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ffap-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
filenotify-tests.el * lisp/subr.el (dotimes): Deprecate RESULT field. (Bug#16206) 2018-04-28 23:20:33 +03:00
files-tests.el Fix selinux test in files-tests.el 2018-06-05 09:43:34 +02:00
files-x-tests.el Fix Bug#32090 2018-07-09 16:03:49 +02:00
help-fns-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
hi-lock-tests.el Quieten compilation of some test/lisp files 2018-03-09 15:04:59 -05:00
htmlfontify-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
ibuffer-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ido-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
imenu-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
info-xref-tests.el ; * test/lisp/info-xref-tests.el: Remove stray line from previous. 2018-03-19 17:08:46 -04:00
isearch-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
jit-lock-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
json-tests.el Fix pretty-printing empty objects as null 2018-06-14 11:01:49 +02:00
jsonrpc-tests.el Adjust previous jsonrpc change 2018-07-03 08:21:56 +01:00
kmacro-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ls-lisp-tests.el Quieten compilation of some test/lisp files 2018-03-09 15:04:59 -05:00
man-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
md4-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
minibuffer-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
mouse-tests.el * test/lisp/mouse-tests.el: Fix tests broken by mouse.el change 2018-01-30 17:37:20 -05:00
obarray-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ps-print-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
register-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
replace-tests.el query-replace undo: Handle when user edits the replacement string 2018-06-03 23:28:30 +09:00
rot13-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ses-tests.el * test/lisp/ses-tests.el: Quieten compilation. 2018-03-15 12:32:50 -04:00
shadowfile-tests.el Merge from origin/emacs-26 2018-07-28 07:50:36 -07:00
shell-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
simple-tests.el * test/lisp/simple-tests.el (simple-tests-async-shell-command-30280): 2018-06-17 10:22:28 -07:00
sort-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
soundex-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
subr-tests.el Add predicate proper-list-p 2018-07-09 19:00:43 -07:00
tar-mode-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
term-tests.el Merge from emacs-26 2018-06-10 18:47:27 -04:00
thingatpt-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
wdired-tests.el Add initial tests for wdired.el 2018-07-29 00:22:02 +02:00
whitespace-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xdg-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
xml-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xt-mouse-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00