1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00
Commit graph

142499 commits

Author SHA1 Message Date
Ulf Jasper
e381c2f7f0 Add unit tests for icalendar.el
* test/lisp/calendar/icalendar-tests.el (icalendar--parse-vtimezone,
  icalendar--decode-isodatetime): Add testcases.
* test/lisp/calendar/icalendar-tests.el (icalendar--convert-tz-offset,
  icalendar--decode-isoduration): New.
2020-09-02 19:45:54 +02:00
Eric Abrahamsen
410b16f92d Handle different IMAP server responses to COPY and MOVE
* lisp/gnus/nnimap.el (nnimap-request-move-article): Need to examine
different parts of the result.
2020-09-02 09:07:35 -07:00
Stefan Kangas
dd2c37d0e1 Fix OBOE in flyspell-check-previous-highlighted-word
* lisp/textmodes/flyspell.el
(flyspell-check-previous-highlighted-word): Fix off-by-one error when
word is at (point-min).  (Bug#39898)

Suggested by OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>.
2020-09-02 17:31:08 +02:00
Stefan Kangas
615c15fd85 Use lexical-binding in pcmpl-unix.el
* lisp/pcmpl-unix.el: Use lexical-binding.
(pcmpl-ssh-known-hosts, pcmpl-ssh-config-hosts, pcmpl-ssh-hosts):
Adjust for lexical-binding.
2020-09-02 16:37:48 +02:00
Stefan Kangas
a50b8397f4 Use lexical-binding in pcmpl-linux.el and add tests
* lisp/pcmpl-linux.el: Use lexical-binding.
(pcmpl-linux-fs-modules-path-format)
(pcmpl-linux-mtab-file): New constants.
(pcmpl-linux-fs-types, pcmpl-linux-mounted-directories): Use above
new constants.
* test/lisp/pcmpl-linux-resources/fs/ext4/.keep:
* test/lisp/pcmpl-linux-resources/mtab:
* test/lisp/pcmpl-linux-tests.el: New files.
2020-09-02 12:53:02 +02:00
Robert Pluim
2e3ec40293 Strip carriage returns from received password prompts (comint)
* comint.el (comint-password-prompt-regexp): Strip carriage
returns from the received prompt before matching.  (Bug#43003)
2020-09-01 17:01:48 +02:00
Mauro Aranda
0996047476 Improve documentation for custom :options
* doc/lispref/customize.texi (Variable Definitions):
Mention that re-evaluating a defcustom form doesn't reset custom
options (bug#30101).
2020-09-01 17:00:58 +02:00
Robert Pluim
ed8dd99884 Document 'smtp-auth' in auth-source info
* doc/misc/auth.texi (Help for users): Mention 'smtp-auth' key,
add cross-reference to smtpmail.info.
* doc/misc/smtpmail.texi (Authentication): Fix markup.
2020-09-01 16:02:14 +02:00
Lars Ingebrigtsen
d34590e634 Mention C-c C-w in the signature section of the Message manual
* doc/misc/message.texi (Insertion Variables): Mention the C-c C-w
command (bug#43136).  Text suggested by Dan Jacobson.
2020-09-01 15:42:16 +02:00
Lars Ingebrigtsen
b6b7f17221 Remove spurious @ character in smtpmail.texi
* doc/misc/smtpmail.texi (Authentication): Remove a presumably
spurious @ character.
2020-09-01 15:34:32 +02:00
Glenn Morris
f7d14ef23b ; Auto-commit of loaddefs files. 2020-09-01 06:27:54 -07:00
Andrew G Cohen
bdb6d3a943 ; Document choice of smtp authentication method
* doc/misc/smtpmail.texi (Authentication): Document smtp-auth.
* etc/NEWS: Advertise the feature.
2020-09-01 19:41:13 +08:00
Stefan Kangas
2ea34662c2 Use lexical-binding in pong.el
* lisp/play/pong.el: Use lexical-binding.
Remove redundant :group args.
2020-08-31 20:48:59 +02:00
Glenn Morris
2f797124c3 Merge from origin/emacs-27
f20169399d (origin/emacs-27) Fix typo in Introduction to Emacs Lisp
7605060d51 Update Elisp Manual reference to which-function-mode
29708cbde7 Some precisions to bug handling
dddc971f0e CC Mode: Fix processing for when c-multiline-string-start-...
4a73fb9668 Fix description of %-constructs in 'mode-line-format'
2020-08-31 10:45:54 -07:00
Glenn Morris
01b5617731 ; Merge from origin/emacs-27
The following commit was skipped:

df5c669709 Adapt tramp-tests.el, don't merge with master
2020-08-31 10:45:54 -07:00
Glenn Morris
f4b8919216 Merge from origin/emacs-27
da4840af12 Adapt reminder-for-release-blocking-bugs
2020-08-31 10:45:54 -07:00
Glenn Morris
332e5b54b6 ; Merge from origin/emacs-27
The following commits were skipped:

eb77572257 Fix replace-region-contents performance bug
a142bbd288 * admin/admin.el (reminder-for-release-blocking-bugs): New...
4657f08b7e Sync with Tramp 2.4.5-pre
2020-08-31 10:45:54 -07:00
Lars Ingebrigtsen
a0d3d2935f Make quoted-printable-encode-region work in multibyte buffers
* lisp/mail/qp.el (quoted-printable-encode-region): If we're in a
multibyte buffer (that has been encoded with some coding system),
then get-byte will get the correct byte value.
2020-08-31 19:13:30 +02:00
Lars Ingebrigtsen
e63705ab9b Add a new function dom-print
* doc/lispref/text.texi (Document Object Model): Document it.

* lisp/dom.el (dom-print): New function.
2020-08-31 19:13:30 +02:00
Stefan Kangas
04578c1063 * lisp/dired-x.el (dired-omit-mode): Add autoload cookie. 2020-08-31 15:58:01 +02:00
Michael Albinus
36d485dd32 * .gitlab-ci.yml (test-all): Add lib/*.{h,c}. 2020-08-31 13:31:46 +02:00
Stefan Kangas
58d9623795 Fix minibuffer default of ephemeral debbugs group
* lisp/gnus/gnus-group.el (gnus-group--read-bug-ids): Don't read
number in "bug-123" as a negative bug ID; they are always positive.
2020-08-31 11:43:52 +02:00
Stefan Kangas
f20169399d Fix typo in Introduction to Emacs Lisp
* doc/lispintro/emacs-lisp-intro.texi (type-of-animal in detail):
Remove extraneous parenthesis.
2020-08-31 11:34:57 +02:00
Alan Third
31abd9a7cf * .gitlab-ci.yml (test-all): Change .m to .c for standard C files. 2020-08-31 09:19:45 +01:00
Paul Eggert
4830ef2f65 * src/alloc.c (live_symbol_holding): Pacify gcc -Wlogical-op. 2020-08-31 00:15:53 -07:00
Paul Eggert
416195fd43 * src/lisp.h (lisp_h_XPL, XPL): Remove; unused. 2020-08-31 00:05:57 -07:00
Paul Eggert
89350d4878 Use mark_objects elsewhere too
* src/alloc.c (mark_vectorlike, mark_face_cache):
* src/eval.c (mark_specpdl):
* src/fringe.c (mark_fringe_data):
* src/keyboard.c (mark_kboards):
Use mark_objects instead of doing it by hand.
2020-08-31 00:05:57 -07:00
Paul Eggert
7e2f6f8448 Remove mark_maybe_object
* src/alloc.c (mark_maybe_object, mark_maybe_objects): Remove.
(mark_objects): New function.
* src/eval.c (mark_specpdl): Use mark_objects instead of
mark_maybe_objects, since the array now has only valid Lisp objects.
* src/lisp.h (SAFE_ALLOCA_LISP_EXTRA): When allocating a large
array, clear it so that it contains only valid Lisp objects.  This
is simpler and safer, and does not hurt performance significantly
on my usual benchmark as the code is executed so rarely.
2020-08-31 00:05:56 -07:00
Paul Eggert
cf95bb0213 Avoid some false matches in mark_maybe_pointer
This lets Emacs avoid marking some garbage as if it were in use.
On one test platform (RHEL 7.8, Intel Xeon Silver 4116) it
sped up ‘cd lisp; make compile-always’ by a bit over 1%.
* src/alloc.c (live_string_holding, live_cons_holding)
(live_symbol_holding, live_large_vector_holding)
(live_small_vector_holding):
Count only pointers that point to a struct component,
or are a tagged pointer to the start of the struct.
Exception: for non-bool-vector pseudovectors,
count any pointer past the header, since it’s too much
of a pain to write code for every pseudovector.
(live_vector_pointer): New function.
2020-08-31 00:05:56 -07:00
Paul Eggert
aa1b586a1a Omit no-longer-needed stack mark_maybe_object
* src/alloc.c (mark_memory): Do not bother using mark_maybe_object
on the stack, since mark_maybe_pointer now marks everything that
mark_maybe_object would.
2020-08-31 00:05:56 -07:00
Paul Eggert
2ff930d861 Fix GC bug with Lisp floats and --with-wide-int
On --with-wide-int platforms where Lisp_Object can be
put into non-adjacent registers, mark_maybe_pointer failed
to mark a float whose only reference was as a tagged pointer.
* src/alloc.c (live_float_holding): New function,
a generalization of the old live_float_p.
(live_float_p): Use it.
(mark_maybe_pointer): Use live_float_holding, not live_float_p.
2020-08-31 00:05:56 -07:00
Stefan Kangas
7605060d51 Update Elisp Manual reference to which-function-mode
* doc/lispref/modes.texi (Mode Line Top, Mode Line Variables)
Don't refer to obsolete alias for 'which-function-mode'.
(Bug#13716)
2020-08-31 04:39:09 +02:00
Stefan Kangas
886ba068c8 Bind 'n' and 'p' in compilation-mode-map
* lisp/progmodes/compile.el (compilation-mode-map): Bind
'(next|previous)-error-no-select' to 'n' and 'p'.  (Bug#41844)
2020-08-30 21:12:33 +02:00
Stefan Kangas
6593d73928 Use lexical-binding in life.el and add tests
* lisp/play/life.el: Use lexical-binding.
(life--tick): Extract from...
(life): ...here.
(life--max-width, life--max-height): New variables.
(life-mode, life-setup): Use above variables.

* test/lisp/play/life-tests.el: New file.
2020-08-30 21:09:07 +02:00
Stefan Kangas
be2ef629ee Various life.el improvements
* lisp/play/life.el (life): New defgroup.
(life-step-time): New defcustom (lower default from 1 to 0.5).
(life): Use above new variable.  Make prefix arguments set step time
in tenths of a second instead of whole seconds.
(life-expand-plane-if-needed): Rename argument to step-time.

(life-setup): Fix running `M-x life' with existing buffer.

(life-patterns): Add three more classic patterns.
2020-08-30 21:09:07 +02:00
Stefan Kangas
87b4368862 Remove some XEmacs compat code from gamegrid.el
* lisp/play/gamegrid.el (gamegrid-setup-face): Remove XEmacs
compat code.
2020-08-30 21:09:07 +02:00
Stefan Kangas
2c284889e0 * lisp/play/tetris.el: Use lexical-binding. 2020-08-30 21:09:07 +02:00
Lars Ingebrigtsen
9d10a8ca05 Tweak background colours in shr when there's indentation
* lisp/net/shr.el (shr-fill-line): Get the background colour right
for the indentation, too.
2020-08-30 17:03:11 +02:00
Mauro Aranda
34e7617365 Respect :must-match for file types in customization buffers
* lisp/wid-edit.el (file widget): Add a :match and a :validate
function to the 'file widget, to be able to check if the widget
value is an existent file, when required (bug#25678).
2020-08-30 17:03:11 +02:00
João Távora
dd910dd2f8 Place flymake-eldoc-function at the end of eldoc-documentation-functions
Having it placed in the beginning of that hook meant it was mostly
impossible to track the args to a function call while writing it from
scratch, since most compilers issue a diagnostic about incorrect
number of arguments.

See bug#43103.

* lisp/progmodes/flymake.el (flymake-mode): Lower priority of
flymake-eldoc-function.
2020-08-30 14:55:36 +01:00
João Távora
bf018eefa2 ; tiny indentation fix to lisp/progmodes/elisp-mode.el
* lisp/progmodes/elisp-mode.el (elisp-eldoc-var-docstring): Fix
indentation.
2020-08-30 14:55:36 +01:00
Michael Albinus
29708cbde7 Some precisions to bug handling
* admin/admin.el (reminder-for-release-blocking-bugs): Add date to subject.

* admin/notes/bug-triage:
* admin/notes/bugtracker: Minor precisions.
2020-08-30 15:43:58 +02:00
Lars Ingebrigtsen
130bf51c41 Make format-prompt interpret a nil default value as "no default"
* doc/lispref/minibuf.texi (Text from Minibuffer): Document it.

* lisp/help-fns.el (describe-function): Adjust the caller.

* lisp/minibuffer.el (format-prompt): Interpret a nil default
value as "no default".
2020-08-30 15:22:20 +02:00
Lars Ingebrigtsen
6ac270dcd3 Fix compilation warning in snake.el
* lisp/play/snake.el (snake-reset-game): Avoid warning about
unused variable.
2020-08-30 14:16:07 +02:00
Michael Albinus
6803328561 * .gitlab-ci.yml (test-all): Run only when needed. 2020-08-30 14:05:55 +02:00
Stefan Kangas
cb1563f3ca Convert manual rmailmm tests to ert
* test/manual/rmailmm.el: Move from here...
* test/lisp/mail/rmailmm-tests.el: ...to here, and convert to ert.
2020-08-30 02:46:06 +02:00
Stefan Kangas
826192409a Convert unsafep tests to ert
* lisp/emacs-lisp/tcover-unsafep.el: Move from here...
* test/lisp/emacs-lisp/unsafep-tests.el: ...to here, and convert to
use ert instead of tcover.
2020-08-29 23:35:00 +02:00
Stefan Kangas
17291414b1 * lisp/play/snake.el: Use lexical-binding. 2020-08-29 22:47:39 +02:00
Stefan Kangas
2aeff0794a Use lexical-binding in more tests
* test/lib-src/emacsclient-tests.el:
* test/lisp/emacs-lisp/hierarchy-tests.el:
* test/lisp/eshell/eshell-tests.el:
* test/lisp/gnus/gnus-util-tests.el:
* test/lisp/progmodes/js-tests.el:
* test/lisp/textmodes/bibtex-tests.el:
* test/src/editfns-tests.el:
* test/src/fns-tests.el: Use lexical-binding.

* test/lisp/emacs-lisp/hierarchy-tests.el
(hierarchy-leafs-includes-lonely-roots):
* test/src/editfns-tests.el (transpose-test-get-byte-positions):
* test/src/fns-tests.el (fns-tests-func-arity):
Adjust for lexical-binding.
2020-08-29 22:41:51 +02:00
Paul Eggert
e709c187fd Mark failing fileio test on MS-Windows
* test/src/fileio-tests.el (fileio-tests--HOME-trailing-slash):
Expect failure on MS-Windows.
2020-08-29 13:34:40 -07:00