1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00
emacs/test/lisp
Lele Gaifax 70c3437ae1 Fix copyright-fix-years, use a dash to separate years in a range
Commit 7a46fa9c75, allowing en-dash as
years separator, changed the way the years range is composed taking the
separator from the `sep' variable instead of always using an hardwired
hyphen. Since the code explicitly avoid to touch (that is, extend)
existing ranges, that `sep' variable is almost always a space, or
whatever character precedes the last parsed year, thus generating a
range like "2020 2022" instead of "2020-2022".

* lisp/emacs-lisp/copyright.el (copyright-fix-years): Always use an dash
to separate years in a range.

* test/lisp/emacs-lisp/copyright-tests.el (with-copyright-fix-years-test):
(copyright-fix-years-tests--data):
(text-copyright-fix-years): New test cases (bug#53597).
2022-01-28 15:23:05 +01:00
..
align-resources Add some tests for align.el 2020-12-29 08:38:25 +01:00
bookmark-resources Add ability to mark/unmark/delete all bookmarks 2020-08-09 15:13:05 -05:00
calc Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
calendar Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
cedet Fix test lisp/cedet/semantic/bovine/gcc-tests on macOS (Bug#52431) 2022-01-12 09:08:33 +01:00
custom-resources Avoid saving session customizations in the custom-file 2021-05-10 13:33:32 +02:00
dired-resources/insert-directory Change how Dired displays available space 2021-12-01 23:27:19 +01:00
emacs-lisp Fix copyright-fix-years, use a dash to separate years in a range 2022-01-28 15:23:05 +01:00
emulation Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
epg-resources Move epg.el test data to follow our conventions 2020-10-24 02:36:55 +02:00
erc Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
eshell Fix input of sharp-quoted symbols in Eshell with em-extpipe 2022-01-26 14:16:40 +01:00
faces-resources ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
files-resources Change how Dired displays available space 2021-12-01 23:27:19 +01:00
gnus Tag an mml-sec test 2022-01-25 09:38:50 -08:00
hfy-cmap-resources * test/lisp/hfy-cmap-resources/rgb.txt: Add comment line. 2020-11-12 03:20:39 +01:00
image Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
international Improve detection of suspicious uses of bidi controls 2022-01-22 11:58:05 +02:00
mail Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
mh-e ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
minibuffer-resources Move more test data to follow our conventions 2020-10-23 21:07:26 +02:00
net Adapt tramp-tests 2022-01-26 14:05:30 +01:00
nxml ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
obsolete Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
org ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pcmpl-linux-resources Use lexical-binding in pcmpl-linux.el and add tests 2020-09-02 12:53:02 +02:00
play ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
progmodes ruby-toggle-block-space-before-parameters: New user option 2022-01-21 04:59:39 +02:00
saveplace-resources Use lexical-binding in saveplace.el and add tests 2020-08-08 01:40:38 +02:00
so-long-tests spelling-tests.el: use ert-with-temp-directory 2022-01-14 10:06:21 +01:00
term ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
textmodes Merge from origin/emacs-28 2022-01-27 09:45:49 +01:00
time-resources Add missed file needed by time-tests.el 2020-10-22 18:51:00 +02:00
url ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
vc VC: Fix tests for SCCS and Mtn 2022-01-18 16:42:19 -05:00
xdg-resources Move more test data to follow our conventions 2020-10-23 21:07:26 +02:00
abbrev-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
align-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
allout-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
allout-widgets-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ansi-color-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
apropos-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
arc-mode-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
auth-source-pass-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
auth-source-tests.el Use 'auth-info-password' in tests 2022-01-10 20:52:20 -05:00
autoinsert-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
autorevert-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
battery-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
bookmark-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
buff-menu-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
button-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
calculator-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
char-fold-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
color-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
comint-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
completion-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cus-edit-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
custom-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
dabbrev-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
delim-col-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
descr-text-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
dired-aux-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
dired-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
dired-x-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
dom-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
edmacro-tests.el ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
electric-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
elide-head-tests.el New minor mode elide-head-mode 2022-01-09 11:12:06 +01:00
epg-config-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
epg-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
faces-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ffap-tests.el Skip ffap test on some systems 2022-01-14 12:10:46 +01:00
filenotify-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
files-tests.el (files-tests--with-buffer-offer-save): Turn it into a function 2022-01-10 22:40:55 -05:00
files-x-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
find-cmd-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
font-lock-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
format-spec-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
help-fns-tests.el Avoid infloops in help-fns--analyze-function with aliases 2022-01-13 09:49:19 +01:00
help-mode-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
help-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
hfy-cmap-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
hi-lock-tests.el Fix thinko in previous hi-lock-read-face-name change 2022-01-20 14:53:12 +01:00
htmlfontify-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ibuffer-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ido-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
image-dired-tests.el ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
image-file-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
image-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
imenu-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
info-tests.el ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
info-xref-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
isearch-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
jit-lock-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
json-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
jsonrpc-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
kmacro-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
loadhist-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
lpr-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ls-lisp-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
makesum-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
man-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
md4-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
minibuffer-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
misc-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
mouse-tests.el Prevent further cases of duplicated separators in context menus 2022-01-04 10:18:15 +02:00
mwheel-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
newcomment-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
obarray-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
paren-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
password-cache-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pcmpl-linux-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ps-print-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
register-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
repeat-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
replace-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
rot13-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
saveplace-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
scroll-lock-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ses-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
shadowfile-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
shell-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
simple-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sort-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
soundex-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
startup-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
subr-tests.el Add new function 'readablep' 2022-01-22 15:13:27 +01:00
tab-bar-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tabify-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tar-mode-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
tempo-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
term-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
thingatpt-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
thread-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
thumbs-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
time-stamp-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
time-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
timezone-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
version-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
wdired-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
whitespace-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
wid-edit-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
xdg-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
xml-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
xt-mouse-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00