1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-24 19:03:29 +00:00
emacs/test/lisp
Matthew White 450644e9f7 Add ability to mark/unmark/delete all bookmarks
Thanks to Karl Fogel for pre-commit review.

* lisp/bookmark.el (bookmark-delete-all): New function to delete all
  bookmarks.
  (bookmark-bmenu-mark-all): New function to mark all bookmarks in the
  bookmark list buffer.
  (bookmark-bmenu-unmark-all): New function to unmark all bookmarks in
  the bookmark list buffer.
  (bookmark-bmenu-delete-all): New function to mark for deletion all
  bookmarks in the bookmark list buffer.
  (bookmark-map): Map "D" to `bookmark-delete-all'.
  (bookmark-bmenu-mode-map): New mappping for "M" to
  `bookmark-bmenu-mark-all'.
  (bookmark-bmenu-mode-map): New mappping for "U" to
  `bookmark-bmenu-unmark-all'.
  (bookmark-bmenu-mode-map): New mappping for "D" to
  `bookmark-bmenu-delete-all'.
  (bookmark-bmenu-mark-all): New bookmark menu to
  `bookmark-delete-all'.
  (easy-menu-define): New bookmark menu to `bookmark-bmenu-mark-all'.
  (easy-menu-define): New bookmark menu to
  `bookmark-bmenu-unmark-all'.
  (easy-menu-define): New bookmark menu to
  `bookmark-bmenu-delete-all'.
  (bookmark-bmenu-select): Update docstring to include a reference to
  `bookmark-bmenu-mark-all'.
  (bookmark-bmenu-mode): Update docstring. Add/Update description:
  `bookmark-bmenu-mark-all', `bookmark-bmenu-delete-all',
  `bookmark-bmenu-execute-deletions', and `bookmark-bmenu-unmark-all'.
* test/lisp/bookmark-resources/test-list.bmk: New bookmark file to
  test a list of bookmarks.
* test/lisp/bookmark-tests.el (bookmark-tests-bookmark-file-list): New
  reference to the bookmark file used for testing a list of bookmarks.
  (bookmark-tests-bookmark-list-0, bookmark-tests-bookmark-list-1,
  bookmark-tests-bookmark-list-2): New cached values for testing a
  list of bookmark.
  (bookmark-tests-cache-timestamp-list): New variable to set
  `bookmark-bookmarks-timestamp'.
  (with-bookmark-test-list): New macro environment to test a list of
  bookmarks.
  (with-bookmark-test-file-list): New macro environment to test a list
  of bookmarks with example.txt.
  (with-bookmark-bmenu-test-list): New macro environment to test
  functions about a list of bookmarks from `bookmark-bmenu-list'.
  (bookmark-tests-all-names-list, bookmark-tests-get-bookmark-list,
  bookmark-tests-get-bookmark-record-list): New functions to test the
  records of the list of bookmarks.
  (bookmark-tests-make-record-list): New function to test the creation
  of a record from example.txt with a list of bookmarks loaded.
  (bookmark-tests-delete-all): New function to test
  `bookmark-delete-all'.
  (bookmark-test-bmenu-any-marks-list): New function to test
  `bookmark-bmenu-any-marks' with a list of bookmarks.
  (bookmark-test-bmenu-mark-all): New function to test
  `bookmark-bmenu-mark-all'.
  (bookmark-test-bmenu-unmark-all): New function to test
  `bookmark-bmenu-unmark-all'.
  (bookmark-test-bmenu-delete-all): New function to test
  `bookmark-bmenu-delete-all'.
2020-08-09 15:13:05 -05:00
..
bookmark-resources Add ability to mark/unmark/delete all bookmarks 2020-08-09 15:13:05 -05:00
calc Calc: GCD(0,x)=GCD(x,0)=|x|, not x (bug#41279) 2020-05-15 20:15:36 +02:00
calendar Add new function decoded-time-period 2020-08-05 10:07:13 +02:00
cedet Use lexical-binding in most semantic tests 2020-04-28 16:11:47 +02:00
custom-resources Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
emacs-lisp Add the new library hierarchy.el 2020-08-09 14:48:22 +02:00
emulation Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
erc Make the erc /ignore command prompt for a timeout 2020-08-05 10:27:40 +02:00
eshell Merge from origin/emacs-27 2020-06-07 09:03:59 -07:00
gnus Mark an mml-sec test as unstable 2020-08-08 12:00:57 +02:00
image Make gravatar-build-url respect dynamically bound variables again 2020-07-31 04:19:03 +02:00
international Merge from origin/emacs-27 2020-06-07 09:03:59 -07:00
mail Merge from origin/emacs-27 2020-06-07 09:03:59 -07:00
net Use lexical-binding in browse-url.el and add tests 2020-08-07 17:37:06 +02:00
nxml Update copyright year to 2020 2020-01-01 00:59:52 +00:00
obsolete Update copyright year to 2020 2020-01-01 00:59:52 +00:00
org Update copyright year to 2020 2020-01-01 00:59:52 +00:00
play Use lexical-binding in animate.el and add tests 2020-05-13 02:06:03 +02:00
progmodes ; Maintainer header updates 2020-07-31 09:09:39 -07:00
saveplace-resources Use lexical-binding in saveplace.el and add tests 2020-08-08 01:40:38 +02:00
so-long-tests Update copyright year to 2020 2020-01-01 00:59:52 +00:00
term Update copyright year to 2020 2020-01-01 00:59:52 +00:00
textmodes Use lexical-binding in po.el and add tests 2020-04-25 09:12:24 +02:00
url Use lexical-binding in most url tests 2020-04-24 20:26:36 +02:00
vc Fix svn tests on Macos 2020-08-04 14:48:38 +02:00
abbrev-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
apropos-tests.el Use lexical-binding in apropos.el and add tests 2020-04-18 18:43:23 +02:00
arc-mode-tests.el Combine archive-int-to-mode and tar-grind-file-mode 2020-05-14 18:43:15 +02:00
auth-source-pass-tests.el * test/lisp/auth-source-pass-tests.el: Test for multiple ports. 2020-01-22 07:37:01 +01:00
auth-source-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
autoinsert-tests.el Evaluate some unnecessarily quoted lambdas 2020-06-21 13:42:14 +01:00
autorevert-tests.el Minor cleanup in {autorevert,filenotify,shadowfile}-tests.el 2020-01-22 11:45:26 +01:00
battery-tests.el Improve battery.el UPower support 2020-06-18 13:11:17 +01:00
bookmark-tests.el Add ability to mark/unmark/delete all bookmarks 2020-08-09 15:13:05 -05:00
buff-menu-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
button-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
char-fold-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
color-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
comint-tests.el Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
custom-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dabbrev-tests.el Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
delim-col-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
descr-text-tests.el Update tests for recent changes 2020-07-08 17:35:54 -07:00
dired-aux-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dired-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dired-x-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
dom-tests.el ; Fix last addition to dom-tests.el 2020-04-30 10:46:54 +01:00
electric-tests.el Add test for bug#39680 2020-05-20 00:15:11 +01:00
elide-head-tests.el Use lexical-binding in elide-head.el and add tests 2020-04-19 08:04:57 +02:00
epg-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
faces-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ffap-tests.el Fix sxhash-equal on bytecodes, markers, etc. 2020-01-07 11:29:42 -08:00
filenotify-tests.el Skip filenotify tests on hydra.nixos.org 2020-03-07 12:17:01 -08:00
files-tests.el Combine archive-int-to-mode and tar-grind-file-mode 2020-05-14 18:43:15 +02:00
files-x-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
font-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
format-spec-tests.el Fix and extend format-spec (bug#41758) 2020-06-18 12:46:21 +01:00
help-fns-tests.el Provide default for describe-keymap prompt 2020-02-04 02:04:20 +01:00
help-mode-tests.el Use lexical-binding in help-mode.el and add tests 2020-05-09 20:01:37 +02:00
help-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
hi-lock-tests.el Fix hi-lock test and add new test for unhighlight (bug#40337) 2020-04-14 02:33:52 +03:00
htmlfontify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ibuffer-tests.el Remove (or double) redundant backslashes in string literals 2020-01-24 23:04:34 +01:00
ido-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
image-file-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
image-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
imenu-tests.el Silence some warnings in tests 2020-06-21 12:50:34 +01:00
info-xref-tests.el Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
isearch-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
jit-lock-tests.el Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
json-tests.el Various json.el improvements 2020-05-22 15:16:13 +01:00
jsonrpc-tests.el ; Fix some typos and doc issues (bug#40695) 2020-04-18 17:10:02 +02:00
kmacro-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ls-lisp-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
makesum-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
man-tests.el Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
md4-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
minibuffer-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
misc-tests.el Use lexical-binding in misc.el and add tests 2020-04-26 00:30:37 +02:00
mouse-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
obarray-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
paren-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
password-cache-tests.el Don’t attempt to modify constant strings 2020-05-16 22:25:07 -07:00
ps-print-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
register-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
replace-tests.el occur: Add bindings for next-error-no-select 2020-05-31 12:31:27 +02:00
rot13-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
saveplace-tests.el Use lexical-binding in saveplace.el and add tests 2020-08-08 01:40:38 +02:00
scroll-lock-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
ses-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
shadowfile-tests.el Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
shell-tests.el Fix shell-tests failures 2020-01-20 15:52:27 +01:00
simple-tests.el Merge from origin/emacs-27 2020-06-07 09:03:59 -07:00
sort-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
soundex-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
startup-tests.el Fix documentation related to 'command-switch-alist'. 2020-05-14 19:29:14 +02:00
subr-tests.el Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
tabify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
tar-mode-tests.el Combine archive-int-to-mode and tar-grind-file-mode 2020-05-14 18:43:15 +02:00
tempo-tests.el Allow tempo-define-template to reassign tags to new templates 2020-02-21 11:15:00 +02:00
term-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thingatpt-tests.el Use lexical-binding in most remaining tests 2020-05-01 13:05:26 +02:00
thread-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
time-stamp-tests.el Merge from origin/emacs-27 2020-01-01 01:08:16 +00:00
timezone-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
version-tests.el Use lexical-binding in version.el and add tests 2020-04-28 23:35:52 +02:00
wdired-tests.el Fix debugging code checked in from wdired-tests 2020-08-04 15:15:45 +02:00
whitespace-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
wid-edit-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xdg-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xml-tests.el Reject invalid characters in XML strings (Bug#41094). 2020-05-23 14:01:17 +02:00
xt-mouse-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00