summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix some tests in --without-all buildsStefan Kangas2021-12-213-2/+3
| | | | | | | * test/lisp/image-tests.el (image-type/from-filename): * test/src/image-tests.el (image-tests-init-image-library): * test/src/thread-tests.el (threads-test-bug33073): Fix tests in --without-all builds.
* Silence additional byte-compiler warning in testStefan Kangas2021-12-211-0/+1
| | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el: Silence byte-compiler.
* Add `permission-denied' error to TrampMichael Albinus2021-12-213-5/+15
| | | | | | | | * lisp/net/tramp-compat.el (tramp-permission-denied): New defconst. (tramp-compat-permission-denied): New defsubst. * lisp/net/tramp.el (tramp-handle-access-file): * lisp/net/tramp-archive.el (tramp-archive-handle-copy-file): Use it.
* Fix xg_event_is_scrollbar for grab-related events on XI2Po Lu2021-12-211-0/+6
| | | | | * src/gtkutil.c (xg_event_is_for_scrollbar): Don't return true if event coordinates are outside the frame on XInput 2.
* ; Fix spelling; be consistent with "key binding" (Bug#52674)Stefan Kangas2021-12-2117-53/+52
|
* Don't produce multibyte strings by accident in sasl-scram-rfcMattias Engdegård2021-12-211-2/+4
| | | | | | | * lisp/net/sasl-scram-rfc.el (sasl-scram--client-final-message): The XOR of two unibyte strings should be a unibyte string. This code previously worked by accident because of an overly tolerant base64 encoder (bug#52670), but now causes a test failure.
* ; * src/xterm.c (handle_one_xevent): Fix typo in last change.Po Lu2021-12-211-1/+1
|
* Ignore XI_TouchBegin events on the GTK tool barPo Lu2021-12-211-2/+15
| | | | | * src/xterm.c (handle_one_xevent): Ignore TouchBegin events that target the tool bar.
* Fix gnus subject matching when subject is emptyAndrew G Cohen2021-12-211-14/+14
| | | | | * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Don't try to limit to a matching subject when the simplified subject is empty.
* Revert "Speed up find_field when called from outside a field"Lars Ingebrigtsen2021-12-211-21/+0
| | | | | | This reverts commit 4d8af56c76ee20bc8e1ebdeef5c4100cea005974. This leads to lisp-mode-tests failures
* Remove the `mode-line-percent-position' min width hackLars Ingebrigtsen2021-12-212-1/+16
| | | | | | | * lisp/bindings.el (mode-line-position): Remove hack to get min-width to work on the `mode-line-percent-position' bit. * src/xdisp.c (display_string): Respect min-width in the non-Lisp string case (bug#52332).
* Allow @ characters in heredoc in shell-script-modeLars Ingebrigtsen2021-12-211-1/+1
| | | | | * lisp/progmodes/sh-script.el (defconst): Also allow @ in heredoc (bug#52496).
* Use the new `permission-denied' error to catch multisession errorsLars Ingebrigtsen2021-12-211-1/+1
| | | | | * lisp/emacs-lisp/multisession.el (multisession--read-file-value): Use the new `permission-denied' error to catch file errors on Windows.
* Speed up find_field when called from outside a fieldLars Ingebrigtsen2021-12-211-0/+21
| | | | | | * src/editfns.c (find_field): Speed up the field functions when called from outside a field (bug#52593). (In some cursory tests, this makes the called-from-outside-a-field case about 3x faster.)
* Fix bug#28557Stefan Monnier2021-12-206-51/+46
| | | | | | | | | | | | | | | * test/lisp/emacs-lisp/cconv-tests.el: Remove `:expected-result :failed` from the bug#28557 tests. (cconv-tests-cl-function-:documentation): Account for the presence of the arglist (aka "usage") in the docstring. * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Handle non-constant `:documentation`. * lisp/emacs-lisp/generator.el (iter-lambda): * lisp/emacs-lisp/cconv.el (cconv--convert-funcbody): Use `macroexp-parse-body`.
* Don't drop touch events we're not interested in on GTK3Po Lu2021-12-211-2/+3
| | | | | * src/xterm.c (handle_one_xevent): Allow GTK to handle unwanted TouchBegin events.
* Fix touch event menu bar detectionPo Lu2021-12-211-33/+41
| | | | | * src/xterm.c (handle_one_event): Don't drop menu bar touch events.
* Fix xg_event_is_for_menubar for XI2 eventsPo Lu2021-12-212-3/+17
| | | | | | | * src/gtkutil.c (xg_event_is_for_menubar): Use correct fields for XI2 events. * src/xterm.c (handle_one_event): Drop TouchBegin events we know about.
* eieio-tests.el: Silence last warningsStefan Monnier2021-12-201-1/+4
| | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-tests--dummy): New class. (eieio-test-22-init-forms-dont-match-runnable): Tweak to silence warning.
* * src/xterm.c (handle_one_xevent): Set user time on touch events.Po Lu2021-12-211-0/+3
|
* Ignore all emulated button events (i.e. those from touchscreens)Po Lu2021-12-211-3/+4
| | | | | * src/xterm.c (handle_one_xevent): Ignore all XIPointerEmulated events if the display supports XI 2.2 or later.
* Put AM_V_GEN etc. firstPaul Eggert2021-12-206-21/+20
| | | | | | | | | | | | | | | | | With the recent changes to src/verbose.mk.in, it’s more important to be consistent about putting AM_V_GEN and similar macros at the start of a rule’s recipe, since ‘make’ now outputs the diagnostic before it executes the recipe rather than the shell outputting it. Most of the uses were already this way, but there were a few outliers. Problem reported by Pip Cet. * Makefile.in (${srcdir}/info/dir): * admin/unidata/Makefile.in (${unidir}/charprop.el, ${unifiles}) (${unidir}/emoji-labels.el): * lib/Makefile.in (libgnu.a, libegnu.a): * lisp/Makefile.in (TAGS): * src/Makefile.in (lisp.mk, Emacs): * test/Makefile.in (%.log, $(test_module)): Put AM_V_GEN and similar macros first.
* ; Minor license statement fixesStefan Kangas2021-12-208-46/+50
|
* Make some variable aliases obsoleteStefan Kangas2021-12-207-14/+18
| | | | | | | | | | | | * lisp/progmodes/make-mode.el (makefile-query-one-target-method): * lisp/skeleton.el (skeleton-transformation, skeleton-filter): * lisp/textmodes/artist.el (artist-text-renderer): * lisp/textmodes/bibtex.el (bibtex-autokey-name-case-convert): (bibtex-autokey-titleword-case-convert): * lisp/textmodes/ispell.el (ispell-format-word): * lisp/textmodes/sgml-mode.el (sgml-transformation): * lisp/vc/add-log.el (change-log-time-zone-rule): Make variable aliases obsolete.
* Prefer $(info) to @echoPaul Eggert2021-12-206-56/+56
| | | | | | | | | | | | | | | | | | Have GNU Make output some diagnostics directly, instead of forking and execing a shell to do it. * GNUmakefile (help): * doc/lispref/two-volume.make (vol2.pdf, elisp2med-init) (elisp2-init): * doc/misc/Makefile.in (echo-info, echo-sources): * lib-src/Makefile.in (archlibdir, install, check): * src/verbose.mk.in (AM_V_AR, AM_V_CC, AM_V_CXX, AM_V_CCLD) (AM_V_CXXLD, AM_V_ELC, AM_V_ELN, AM_V_GEN, AM_V_GLOBALS) (AM_V_RC): * test/Makefile.in (subdirs, subdir-targets): Prefer $(info) to @echo. * GNUmakefile (MAKECMDGOALS, configure, Makefile): Prefer $(warning) to @echo >&2. * src/verbose.mk.in (AM_V_ELN): Output target, like the others.
* Fix sloppy base64 acceptance of some multibyte charactersMattias Engdegård2021-12-204-9/+26
| | | | | | | | | | | | The base64 encoding functions incorrectly accepted some multibyte characters; stop doing that (bug#52670). * src/fns.c (base64_encode_1): Reject all multibyte characters. * test/src/fns-tests.el (fns-tests-base64-encode-string) (fns-test-base64url-encode-region) (fns-test-base64url-encode-string): Add tests. * doc/lispref/text.texi (Base 64): Rephrase outdated manual text. * etc/NEWS: Add a notice.
* Fix build in a separate directory (bug#52669)Sam Steingold2021-12-201-1/+1
| | | | * src/lisp.h: Include <globals.h> instead of "globals.h"
* Use defvar-keymap in wdired.elStefan Kangas2021-12-201-35/+31
| | | | | * lisp/wdired.el (wdired-mode-map, wdired-perm-mode-map): Use defvar-keymap.
* Use declare-function instead of defun in eieio-tests.elStefan Kangas2021-12-201-8/+8
| | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Prefer declare-function to defun.
* ; * lisp/emacs-lisp/cl-macs.el (cl--self-tco): fix bootstrappingMattias Engdegård2021-12-201-2/+2
|
* Silence byte-compiler warnings from absent optional featuresMattias Engdegård2021-12-203-0/+9
| | | | | | | | * test/src/inotify-tests.el (inotify-rm-watch): * test/src/lcms-tests.el (lcms-xyz->jch): * test/src/sqlite-tests.el (sqlite-open): Add declarations to prevent byte-compilation warnings when features are absent.
* Body of dynamic let-bindings is not in tail positionMattias Engdegård2021-12-202-4/+26
| | | | | | | | This fixes a known bug in `named-let`. * lisp/emacs-lisp/cl-macs.el (cl--self-tco): Prevent TCO from inside dynamic variable bindings. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels): Add test.
* Add `macroexp--dynamic-variable-p`Mattias Engdegård2021-12-206-21/+244
| | | | | | | | | | | | | | | | | | | | | | | | | This predicate can be used for discriminating between lexically and dynamically bound variables during macro-expansion (only). It is restricted to internal use for the time being. * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): Use macroexpand--all-toplevel. * lisp/emacs-lisp/macroexp.el (macroexp-dynamic-variable-p): New. (macroexp--expand-all): Maintain macroexp--dynvars. (macroexpand-all): Rebind macroexp--dynvars. (macroexpand--all-toplevel): New. (internal-macroexpand-for-load): Use macroexpand--all-toplevel. * src/eval.c (eval_sub): Transfer defvar declarations from Vinternal_interpreter_environment into macroexp--dynvars during lazy macro-expansion. * src/lread.c (readevalloop): Rebind macroexp--dynvars around read-and-evaluate operations. (syms_of_lread): Define macroexp--dynvars. * test/lisp/emacs-lisp/macroexp-resources/vk.el: New file. * test/lisp/emacs-lisp/macroexp-tests.el (macroexp-tests--run-emacs) (macroexp-tests--eval-in-subprocess) (macroexp-tests--byte-compile-in-subprocess) (macroexp--tests-dynamic-variable-p): Add tests.
* Treat base64 string encode/decode as pure functionsMattias Engdegård2021-12-201-0/+2
| | | | | | * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns, pure-fns): Mark base64-decode-string, base64-encode-string and base64url-encode-string as pure and side-effect-free.
* Silence byte-compiler using with-no-warnings in testsStefan Kangas2021-12-202-65/+75
| | | | | | | | | | | | | We could silence the specific warnings by adding support for them to with-suppressed-warnings, but it is almost not worth the complexity for warnings that only show up in one file. In any case, it is not urgent, so leave behind FIXMEs for now. * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-37-obsolete-name-in-constructor, class-c) (eieio-test-01-mix-alloc-initarg, slotattr-class-base): * test/lisp/progmodes/elisp-mode-tests.el (xref-elisp-generic-co-located-default): Silence byte-compiler.
* Silence undefined function warnings in eieio-tests.elStefan Kangas2021-12-201-1/+12
| | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Silence byte-compiler with some function definitions. These are overridden by class definitions further down.
* Prefer skip-unless in one eieio testStefan Kangas2021-12-201-13/+13
| | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-01-mix-alloc-initarg): Use skip-unless to correctly mark the test as skipped.
* Silence byte-compiler in cconv-tests.elStefan Kangas2021-12-201-12/+14
| | | | | | * test/lisp/emacs-lisp/cconv-tests.el (cconv-tests-iter-lambda-:documentation) (cconv-tests-cl-function-:documentation): Silence byte-compiler.
* Merge from origin/emacs-28Stefan Kangas2021-12-201-14/+16
|\ | | | | | | | | 16ed9fad2c ; * doc/lispref/frames.texi (Child Frames): Improve wording. f11b996a3c Clarify description of two mouse dragging parameters (Bug#...
| * ; * doc/lispref/frames.texi (Child Frames): Improve wording.Eli Zaretskii2021-12-191-14/+16
| |
| * Clarify description of two mouse dragging parameters (Bug#52537)Martin Rudalics2021-12-191-14/+14
| | | | | | | | | | * doc/lispref/frames.texi (Child Frames): Clarify description of 'top-visible' and 'bottom-visible' parameters (Bug#52537).
* | * lisp/progmodes/sh-script.el (sh-mode-map): Use defvar-keymap.Stefan Kangas2021-12-191-33/+30
| |
* | ; * lisp/progmodes/sh-script.el (sh-mode-menu): Fix typos.Stefan Kangas2021-12-191-3/+3
| |
* | Further tweaks to emoji person groupsLars Ingebrigtsen2021-12-191-1/+2
| | | | | | | | | | | | * lisp/international/emoji.el (emoji--score): Don't take the bit after the colon into consideration, like in "kiss: person, person, light skin tone, medium-light skin tone".
* | Further tweaks to the emoji segmentationLars Ingebrigtsen2021-12-191-16/+35
| | | | | | | | | | | | * lisp/international/emoji.el (emoji--parse-emoji-test): Ensure that we key off of the "person" variants, even if they come after the gendered variations (which is the case for a handful of glyphs).
* | Further fixes for emojis in the "people" categoriesLars Ingebrigtsen2021-12-191-12/+20
| | | | | | | | | | * lisp/international/emoji.el (emoji--base-name): Get more derived categories right.
* | * lisp/isearch.el: Don't display "Pending" for lax and toggle commands.Juri Linkov2021-12-191-4/+4
| | | | | | | | | | | | | | | | | | * lisp/isearch.el (isearch-message-prefix): Display "Pending" only when isearch-adjusted is 't' (bug#52356). (isearch-define-mode-toggle): Set isearch-adjusted to 'toggle' instead of 't'. (isearch-search-fun-default): Set isearch-adjusted to 'lax' instead of 't'.
* | Move Rmail autoloads to the common loaddefs.elEli Zaretskii2021-12-197-26/+0
| | | | | | | | | | | | | | | | | | | | | | * lisp/mail/rmailsum.el: * lisp/mail/rmailsort.el: * lisp/mail/rmailmsc.el: * lisp/mail/rmailmm.el: * lisp/mail/rmailkwd.el: * lisp/mail/rmailedit.el: * lisp/mail/rmail.el: Remove generated-autoload-file setting and don't require rmail-loaddefs.el
* | Add some very rudimentary field-beginning/end testsLars Ingebrigtsen2021-12-191-0/+13
| |
* | ; Fix last change to filelock-tests.elEli Zaretskii2021-12-191-5/+13
| | | | | | | | | | | | | | * test/src/filelock-tests.el (filelock-tests-file-locked-p-spoiled) (filelock-tests-unlock-spoiled) (filelock-tests-kill-buffer-spoiled): Expect 'permission-denied' only on MS-Windows.